From 2a54cb193ea5464fec4fb95b9264f7213cfd089b Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 14 Sep 2022 08:46:31 +0800
Subject: [PATCH] 地块编辑优化

---
 src/views/land/landUpdate.vue |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/views/land/landUpdate.vue b/src/views/land/landUpdate.vue
index a5f3600..4ab99a1 100644
--- a/src/views/land/landUpdate.vue
+++ b/src/views/land/landUpdate.vue
@@ -142,9 +142,31 @@
   watch: {
     landUrl: {
       handler(newVal, oldVal) {
-        this.$refs.form.submit();
+        if (newVal) {
+          this.$refs.form.submit()
+        }
       },
     },
+    "form.landName": {
+        handler (newVal, oldVal) {
+            this.landUrl = ""
+        },
+    },
+    "form.landType": {
+        handler (newVal, oldVal) {
+            this.landUrl = ""
+        },
+    },
+    "form.landArea": {
+        handler (newVal, oldVal) {
+            this.landUrl = ""
+        },
+    },
+    "form.landUnit": {
+        handler (newVal, oldVal) {
+            this.landUrl = ""
+        },
+    },
   },
   computed: {
     ...mapGetters(["userInfo", "permission", "polygons", "drawMapUrlBase"]),

--
Gitblit v1.9.3