Browse Source

adm:feat> 删除系统台账的系统分类

onlyh 3 years ago
parent
commit
82e58689c8

+ 4 - 2
public/systemConf.js

@@ -4,10 +4,12 @@
  *
  */
 
- var __systemConf = {
+var __systemConf = {
     // 平面图跳转地址
     planJumpUrl: "http://192.168.64.18:9989/persagyPlan/home",
+    // planJumpUrl: "http://192.168.0.72:9989/persagyPlan/home",
     // 拓扑图跳转地址
     topoJumpUrl: "http://192.168.64.18:9989/persagyTopo/home",
+    // topoJumpUrl: "http://192.168.0.72:9989/persagyTopo/home",
 }
-window.__systemConf = __systemConf
+window.__systemConf = __systemConf

+ 11 - 10
src/views/maintain/system/index.vue

@@ -237,10 +237,10 @@ export default class extends Vue {
             await dictQuery(param).then((res: any) => {
                 const { basicInfos, dictStages } = this.informationArrangement(res.content);
                 // 添加系统分类
-                dictStages.map((item: any) => {
-                    item = { ...item, classification: this.systemLabel };
-                    return item;
-                });
+                // dictStages.map((item: any) => {
+                //     item = { ...item, classification: this.systemLabel };
+                //     return item;
+                // });
                 this.systemHeaders = {
                     basicInfos: {
                         name: "基础信息台账",
@@ -280,7 +280,8 @@ export default class extends Vue {
 
     //信息点重组
     informationArrangement(arr: []): any {
-        let basicInfos = [{ path: "classification", aliasName: "系统分类" }],
+        // let basicInfos = [{ path: "classification", aliasName: "系统分类" }],
+        let basicInfos = [],
             dictStages: any[] = [];
         this.all = arr;
         arr.forEach((item: any) => {
@@ -352,12 +353,12 @@ export default class extends Vue {
                     },
                 };
                 this.paginationList.total = res[1].total;
-                tableData = res[1].content; // 主体数据
+                this.tableData = res[1].content; // 主体数据
                 // 添加系统分类
-                this.tableData = tableData.map((item) => {
-                    item = { ...item, classification: this.systemLabel };
-                    return item;
-                });
+                // this.tableData = tableData.map((item) => {
+                //     item = { ...item, classification: this.systemLabel };
+                //     return item;
+                // });
                 this.getBatch(this.tableData);
             });
         } else {

+ 13 - 12
src/views/scene/tiepoint/components/systemTab/index.vue

@@ -188,12 +188,12 @@ export default class SystemTab extends Vue {
                     },
                 };
                 this.paginationList.total = res[1]?.total ? res[1].total : 0;
-                tableData = res[1]?.content ? res[1].content : []; // 主体数据
+                this.tableData = res[1]?.content ? res[1].content : []; // 主体数据
                 // 添加系统分类
-                this.tableData = tableData.map((item: any) => {
-                    item = { ...item, classification: this.systemLabel };
-                    return item;
-                });
+                // this.tableData = tableData.map((item: any) => {
+                //     item = { ...item, classification: this.systemLabel };
+                //     return item;
+                // });
             });
         } else {
             //系统类型为空
@@ -221,15 +221,15 @@ export default class SystemTab extends Vue {
 
             const res = await querySystem(params);
             if (res.result === "success") {
-                let tableData: any[] = [];
+                // let tableData: any[] = [];
                 this.loading = false;
                 this.paginationList.total = res?.total ? res.total : 0;
-                tableData = res?.content ? res.content : []; // 主体数据
+                this.tableData = res?.content ? res.content : []; // 主体数据
                 // 添加系统分类
-                this.tableData = tableData.map((item: any) => {
-                    item = { ...item, classification: this.systemLabel };
-                    return item;
-                });
+                // this.tableData = tableData.map((item: any) => {
+                //     item = { ...item, classification: this.systemLabel };
+                //     return item;
+                // });
             }
         } else {
             //系统类型为空
@@ -241,7 +241,8 @@ export default class SystemTab extends Vue {
      * 信息点重组
      */
     private informationArrangement(arr: []): any {
-        let basicInfos = [{ path: "classification", aliasName: "系统分类" }],
+        // let basicInfos = [{ path: "classification", aliasName: "系统分类" }],
+        let basicInfos = [],
             dictStages: any[] = [];
         this.all = arr;
         arr.forEach((item: any) => {