智慧农业后台管理页面
guoshilong
2022-08-17 0427e2328b2a747dffd8f42b60cca7f7c2432488
添加种养品后整个页面刷新
1 files modified
13 ■■■■■ changed files
src/views/wel/index.vue 13 ●●●●● patch | view | raw | blame | history
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,
            }