From 082613d446e29e4ec1c16bfaa52345106a498b23 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 08 Nov 2022 09:03:49 +0800
Subject: [PATCH] 农事操作隐藏后四个,地图模式2d改为3d

---
 src/views/statistics/stock.vue |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/views/statistics/stock.vue b/src/views/statistics/stock.vue
index c8de5a4..ab2555a 100644
--- a/src/views/statistics/stock.vue
+++ b/src/views/statistics/stock.vue
@@ -18,7 +18,6 @@
       @current-change="currentChange"
       @size-change="sizeChange"
       @refresh-change="refreshChange"
-      @on-load="onLoad"
     >
     </avue-crud>
   </basic-container>
@@ -131,7 +130,7 @@
             span: 12,
             hide: true,
             search: true,
-            searchSpan: 6,
+            searchSpan: 7,
             searchLabelWidth: 110,
             searchRange: true,
             searchValue: [this.getStartTime(), this.getEndTime()],
@@ -262,17 +261,17 @@
       // this.query['endTime'] = thisDay;
       return thisDay;
     },
-    initData() {
-      var that = this;
-      //获取农产品数据
-      getStrainList(0).then((res) => {
-        if (res.data.code == 200) {
-          var strainId = that.findObject(that.option.column, "strainId");
-          strainId.dicData = res.data.data;
-        }
-      });
-    }
-    ,
+    // initData() {
+    //   var that = this;
+    //   //获取农产品数据
+    //   getStrainList(0).then((res) => {
+    //     if (res.data.code == 200) {
+    //       var strainId = that.findObject(that.option.column, "strainId");
+    //       strainId.dicData = res.data.data;
+    //     }
+    //   });
+    // }
+    // ,
     //新增
     rowSave(row, done, loading) {
       row["strainType"] = 0;
@@ -370,6 +369,7 @@
       this.query = params;
       this.page.currentPage = 1;
       this.onLoad(this.page, params);
+      this.query={}
       done();
     }
     ,
@@ -408,15 +408,16 @@
           ...this.query,
         };
         values.releaseTimeRange = null;
+        values.farmId = this.$farmId
       }
       pagenum(page.currentPage, page.pageSize, values
       ).then((res) => {
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;
-        // this.data = this.data.filter((e)=>{
-        //   return !(e.bfcknum == e.cgnum == e.dbcknum == e.dbrknum == e.lycknum == e.rknum == 0)
-        // })
+        this.data = this.data.filter((e)=>{
+          return (e.bfcknum == e.cgnum == e.dbcknum == e.dbrknum == e.lycknum == e.rknum == 0)
+        })
         this.loading = false;
         this.selectionClear();
       });

--
Gitblit v1.9.3