瀏覽代碼

建筑分区树筛选修复

lv.wenbin 11 月之前
父節點
當前提交
ca21fb4909
共有 1 個文件被更改,包括 10 次插入7 次删除
  1. 10 7
      ems-ui/src/views/basecfg/zoning/index.vue

+ 10 - 7
ems-ui/src/views/basecfg/zoning/index.vue

@@ -210,13 +210,9 @@ export default {
       queryParams: {
         pageNum: 1,
         pageSize: 10,
+        areaCode: null,
         bldgCode: null,
-        zoningCode: null,
         zoningName: null,
-        floor: null,
-        roomNo: null,
-        bldgLdArea: null,
-        usageDetail: null,
         tagCodeList: null
       },
       // 表单参数
@@ -266,7 +262,14 @@ export default {
     },
     // 节点单击事件
     handleNodeClick(data) {
-      this.queryParams.bldgCode = data.id;
+      if ('Area' === data.tier) {
+        this.queryParams.areaCode = data.id;
+        this.queryParams.bldgCode = null;
+      } else if ('Building' === data.tier) {
+        this.queryParams.areaCode = null;
+        this.queryParams.bldgCode = data.id;
+      }
+
       this.handleQuery();
     },
     // 取消按钮
@@ -285,7 +288,7 @@ export default {
         roomNo: null,
         bldgLdArea: null,
         usageDetail: null,
-        tagCodes: null
+        tagCodeList: null
       };
       this.resetForm("form");
     },