浏览代码

1. 优化

MONSTER-ygh 8 月之前
父节点
当前提交
49c59cb754

+ 4 - 0
src/views/distribution/recordMr/index.vue

@@ -400,6 +400,10 @@ export default {
 
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
     },
     openQuery(key) {
       this.$set(this.queryShow,key,true)

+ 4 - 0
src/views/finance/Statements/StatementsIndex.vue

@@ -492,6 +492,10 @@ export default {
     },
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
     },
     openQuery(key) {
       this.$set(this.queryShow,key,true)

+ 4 - 0
src/views/finance/flowingWaterMr/index.vue

@@ -406,6 +406,10 @@ export default {
 
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
     },
     openQuery(key) {
       this.$set(this.queryShow,key,true)

+ 4 - 0
src/views/finance/refundMr/index.vue

@@ -260,6 +260,10 @@ export default {
 
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
     },
     openQuery(key) {
       this.$set(this.queryShow,key,true)

+ 4 - 0
src/views/order/groupBuyingMr/index.vue

@@ -1079,6 +1079,10 @@ export default {
     },
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
     },
     openQuery(key) {
       this.$set(this.queryShow,key,true)

+ 4 - 0
src/views/order/orderMr/index.vue

@@ -813,6 +813,10 @@ export default {
 
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
     },
     openQuery(key) {
       this.$set(this.queryShow,key,true)

+ 15 - 1
src/views/order/viewers/index.vue

@@ -481,7 +481,11 @@ export default {
           this.dataList = response.data.rows;
           this.total = response.data.total;
           this.loading = false;
-        });
+        }).catch(()=>{
+          this.dataList = []
+          this.total = 0
+          this.loading = false;
+        })
     },
     // 取消按钮
     cancel() {
@@ -1036,6 +1040,16 @@ export default {
         this.$refs.tkRuleForm.resetFields()
       }
       this.getList();
+    },
+    clearQuery(key) {
+      this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
+    },
+    openQuery(key) {
+      this.$set(this.queryShow,key,true)
     }
   },
   beforeDestroy() {

+ 4 - 0
src/views/venue/schedulingMr/index.vue

@@ -432,6 +432,10 @@ export default {
 
     clearQuery(key) {
       this.$set(this.queryShow,key,false)
+      this.$set(this.queryParams,key,'')
+      if(key == 'performDate') {
+        this.$set(this.queryParams,'performTimeId','')
+      }
     },
     openQuery(key) {
       this.$set(this.queryShow,key,true)