From 0427e2328b2a747dffd8f42b60cca7f7c2432488 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 17 Aug 2022 10:10:36 +0800
Subject: [PATCH] 添加种养品后整个页面刷新
---
src/views/wel/index.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index f9d49b9..fea2589 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -174,7 +174,7 @@
<!-- 圈地 -->
<land v-if="landVisible" ref="land"></land>
<!-- 种养品 -->
- <plant v-if="plantVisible" ref="plant" @refreshOnLoad="onLoad"></plant>
+ <plant v-if="plantVisible" ref="plant" @refreshOnLoad="refreshAll"></plant>
<!-- 农事操作 -->
<farming v-if="farmingVisible" ref="farming"></farming>
<!-- 农资入库 -->
@@ -273,6 +273,16 @@
this.farmList = this.farmList.concat(res.data.data)
});
},
+ refreshAll(){
+ this.getCountStatis ()
+ //本年农事操作记录
+ this.getFarmingCount()
+ //本年农事操作记录,分组
+ this.getFarmingStatis()
+ this.StockCount()
+ //当前农场种养品种
+ this.onLoad()
+ },
//农场下拉框change事件
farmChange(data) {
this.farm.id = data
@@ -326,6 +336,7 @@
},
//获取种植中的种养品
onLoad () {
+ console.log(11111111111)
var params = {
status: 1,
}
--
Gitblit v1.9.3