Prechádzať zdrojové kódy

:zap: 清空搜索同时清空全局变量

smallchill 7 rokov pred
rodič
commit
7d48f57e0a

+ 1 - 0
src/views/desk/notice.vue

@@ -187,6 +187,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/flow/follow.vue

@@ -148,6 +148,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/flow/manager.vue

@@ -219,6 +219,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/flow/model.vue

@@ -197,6 +197,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/monitor/log/api.vue

@@ -105,6 +105,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/monitor/log/error.vue

@@ -112,6 +112,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/monitor/log/usual.vue

@@ -104,6 +104,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/resource/oss.vue

@@ -216,6 +216,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/client.vue

@@ -228,6 +228,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/dept.vue

@@ -247,6 +247,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/dict.vue

@@ -189,6 +189,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/menu.vue

@@ -432,6 +432,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/param.vue

@@ -147,6 +147,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/role.vue

@@ -259,6 +259,7 @@
       },
 
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/tenant.vue

@@ -167,6 +167,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/system/user.vue

@@ -326,6 +326,7 @@
           });
       },
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/tool/code.vue

@@ -205,6 +205,7 @@
       },
 
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/work/claim.vue

@@ -146,6 +146,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/work/done.vue

@@ -139,6 +139,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/work/send.vue

@@ -149,6 +149,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/work/start.vue

@@ -152,6 +152,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {

+ 1 - 0
src/views/work/todo.vue

@@ -146,6 +146,7 @@
     },
     methods: {
       searchReset() {
+        this.query = {};
         this.onLoad(this.page);
       },
       searchChange(params) {