From e9724c99dae805661fc96fd99515c550e81c0a39 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 06 Sep 2022 15:11:58 +0800
Subject: [PATCH] 修复切换农场后查询条件还是别的农场的页码

---
 src/views/land/cs.vue           |    1 +
 src/views/stock/stockmanage.vue |    1 +
 src/views/wel/land.vue          |    2 +-
 src/views/land/landAdd.vue      |    4 +++-
 src/views/land/landUpdate.vue   |    2 +-
 5 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/views/land/cs.vue b/src/views/land/cs.vue
index 0e0d4a9..ab2696e 100644
--- a/src/views/land/cs.vue
+++ b/src/views/land/cs.vue
@@ -144,6 +144,7 @@
         '$farmId': {
             handler (newName, oldName) {
                 // this.farm.id = newName
+                this.page.currentPage = 1
                 //地块页面
                 setTimeout(() => {
                     this.onLoad()
diff --git a/src/views/land/landAdd.vue b/src/views/land/landAdd.vue
index 6664737..1310bcb 100644
--- a/src/views/land/landAdd.vue
+++ b/src/views/land/landAdd.vue
@@ -4,7 +4,7 @@
     :modal-append-to-body="false"
     :append-to-body="true"
     :close-on-click-modal="false"
-    width="80%"
+    width="60%"
     :visible.sync="visible"
     top="10vh"
   >
@@ -299,6 +299,8 @@
           that.$emit("refreshOnLoad");
           that.$refs.form.resetFields();
           that.form.landUnit = "0";
+          console.log(that.$parent,11)
+          that.$parent.onLoad()
           that.visible = false;
           this.$message({
             type: "success",
diff --git a/src/views/land/landUpdate.vue b/src/views/land/landUpdate.vue
index 428d827..a5f3600 100644
--- a/src/views/land/landUpdate.vue
+++ b/src/views/land/landUpdate.vue
@@ -4,7 +4,7 @@
     :modal-append-to-body="false"
     :append-to-body="true"
     :close-on-click-modal="false"
-    width="80%"
+    width="60%"
     top="10vh"
     :visible.sync="visible"
   >
diff --git a/src/views/stock/stockmanage.vue b/src/views/stock/stockmanage.vue
index d71c359..b06b1dd 100644
--- a/src/views/stock/stockmanage.vue
+++ b/src/views/stock/stockmanage.vue
@@ -734,6 +734,7 @@
   watch: {
       '$farmId':{
       handler (newName, oldName) {
+          this.page.currentPage = 1
           this.farm.id = newName
           //地块页面
           this.onLoad(this.page)
diff --git a/src/views/wel/land.vue b/src/views/wel/land.vue
index 204f4bc..48fd992 100644
--- a/src/views/wel/land.vue
+++ b/src/views/wel/land.vue
@@ -4,7 +4,7 @@
     :modal-append-to-body="false"
     :append-to-body="true"
     :close-on-click-modal="false"
-    width="80%"
+    width="60%"
     top="10vh"
     :visible.sync="visible"
   >

--
Gitblit v1.9.3