Browse Source

需采集信息点无选中类型取消查询信息点

zhangyu 5 years ago
parent
commit
cbcea81329
2 changed files with 22 additions and 21 deletions
  1. 0 1
      src/framework/layout/layout-store.js
  2. 22 20
      src/views/ready/collectsetting/index.vue

+ 0 - 1
src/framework/layout/layout-store.js

@@ -63,7 +63,6 @@ export default {
             storage.set(KEY_MENU_SELECTED, val)
         },
         setprojectId: (state, val) => {
-            debugger
             state.projectId = val
             localStorage.setItem('projectId', val)
             storage.set(KEY_PROJECT_SELECTED, val)

+ 22 - 20
src/views/ready/collectsetting/index.vue

@@ -654,28 +654,30 @@
             },
             //高亮行
             familyActive(name, code) {
-                this.rightLoading = true
                 this.active = name
                 this.code = code
-                let param = {
-                    data: {
-                        Orders: "sort asc,InfoPointCode asc",
-                        PageNumber: 1,
-                        PageSize: 500
-                    },
-                    type: code
-                };
-                this.tabsFalg = false
-                getDataDictionary(param, result => {
-                    this.rightLoading = false
-                    if (result.Result == "success") {
-                        this.tabsFalg = true
-                        this.labelKey = this.arrayCnt(result.Content)
-                    } else {
-                        this.dialogVisible = true;
-                        this.ajaxMsg = "请求出错";
-                    }
-                });
+                if(code) {
+                    let param = {
+                        data: {
+                            Orders: "sort asc,InfoPointCode asc",
+                            PageNumber: 1,
+                            PageSize: 500
+                        },
+                        type: code
+                    };
+                    this.rightLoading = true
+                    this.tabsFalg = false
+                    getDataDictionary(param, result => {
+                        this.rightLoading = false
+                        if (result.Result == "success") {
+                            this.tabsFalg = true
+                            this.labelKey = this.arrayCnt(result.Content)
+                        } else {
+                            this.dialogVisible = true;
+                            this.ajaxMsg = "请求出错";
+                        }
+                    });
+                }
             },
             //处理头部函数
             arrayCnt(arr) {