Quellcode durchsuchen

修改问题:
修改统计页各地市详情列表,查询条件重置后列表数据与初始列表数据不一致问题;

chengbeibei vor 10 Monaten
Ursprung
Commit
5d48ae7d6d
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      src/views/qcsb/QcSsgqzysytdqkList_tj.vue

+ 4 - 2
src/views/qcsb/QcSsgqzysytdqkList_tj.vue

@@ -261,6 +261,8 @@ export default {
       },
       dictOptions: {},
       superFieldList: [],
+      // 查询条件
+      queryParam: {},
     }
   },
 
@@ -310,7 +312,7 @@ export default {
         this.$message.error("请设置url.list属性!")
         return
       }
-      this.queryParam = this.param
+      this.queryParam = Object.assign(this.queryParam, this.param);
 
       //加载数据 若传入参数1则加载第一页的内容
       if (arg === 1) {
@@ -393,7 +395,7 @@ export default {
     },
     searchReset() {
       this.$refs.JArea.allClear(),
-        this.param={}
+        // this.param={}
         this.queryParam = {}
       this.loadData(1);
     },