ソースを参照

处理拖拽表格时切换主表导致数据筛选异常的问题

lph 1 年間 前
コミット
7c37108ad4

+ 5 - 1
zkqy-ui/src/views/tableMange/components/DataFilterPanel.vue

@@ -118,13 +118,16 @@ export default {
           return item.fieldName == "del_flag";
         });
         console.log(is_has_del_flag);
-        if (!this.tableData.length && is_has_del_flag) {
+        if (is_has_del_flag) {
           let { fieldName, tableName } = is_has_del_flag;
+          this.tableData = [];
           this.tableData.push({
             fieldName: tableName + "." + fieldName,
             condition: "=",
             refValue: 0,
           });
+        } else {
+          this.tableData = [];
         }
       },
       deep: true,
@@ -142,6 +145,7 @@ export default {
   },
   computed: {
     myTableFieldList() {
+      console.log(this.tableFieldList);
       return this.tableFieldList;
     },
     myFilterDataEcho() {