Browse Source

修改搜索

chenrui  3 years ago
parent
commit
40af1a88ec

+ 7 - 0
src/views/systemManagement/EditSystem/index.vue

@@ -260,6 +260,13 @@ export default {
     this.getDetial(this.editId);
   },
   components: { Dialog },
+  watch: {
+    keyWords() {
+      if (this.keyWords.length == 0) {
+        this.getDetial(this.editId);
+      }
+    },
+  },
   methods: {
     queryData() {
       const search = this.keyWords;

+ 11 - 0
src/views/systemManagement/addSystem/index.vue

@@ -260,6 +260,17 @@ export default {
       return this.loading || this.noMore;
     },
   },
+  watch: {
+    keyWords() {
+      if (this.keyWords.length == 0) {
+        this.getUserList({
+          QueryName: this.keyWords,
+          PageSize: this.PageSize,
+          PageIndex: this.pageNum,
+        });
+      }
+    },
+  },
   methods: {
     isValidIP: function (ip) {
       let reg =