Prechádzať zdrojové kódy

wanda-adm:feat > 修复系统台账问题

shaun-sheep 4 rokov pred
rodič
commit
27716243ed

+ 1 - 1
src/views/maintain/device/index.vue

@@ -97,7 +97,7 @@
 import { Component, Vue, Watch } from "vue-property-decorator";
 import { AdmMultiTable, AdmSearch, dataForm, Pagination, Statistics } from '../components/index'
 import { allDevice, BeatchQueryParam, dictInfo } from "@/api/equipComponent";
-import { queryCount, queryEquip, createEquip, updateEquip } from "@/api/datacenter";
+import { createEquip, queryCount, queryEquip, updateEquip } from "@/api/datacenter";
 import { UserModule } from "@/store/modules/user";
 import deviceGraph from "./components/deviceGraph"
 import tools from "@/utils/maintain"

+ 15 - 15
src/views/maintain/system/index.vue

@@ -345,22 +345,22 @@ export default class extends Vue {
                     item = { ...item, classification: this.systemLabel };
                     return item;
                 });
+                this.getBatch(this.tableData);
             });
-            // 动态信息点
-            this.codeToDataSource = {};
-            this.all.forEach((item) => {
-                if (item.dataSource) {
-                    try {
-                        this.codeToDataSource[item.code] = {};
-                        item.dataSource.forEach((dic) => {
-                            this.codeToDataSource[item.code][dic.code] = dic.name;
-                        });
-                    } catch (e) {
-                        console.log(e);
-                    }
-                }
-            });
-            this.getBatch(this.tableData);
+            // // 动态信息点
+            // this.codeToDataSource = {};
+            // this.all.forEach((item) => {
+            //     if (item.dataSource) {
+            //         try {
+            //             this.codeToDataSource[item.code] = {};
+            //             item.dataSource.forEach((dic) => {
+            //                 this.codeToDataSource[item.code][dic.code] = dic.name;
+            //             });
+            //         } catch (e) {
+            //             console.log(e);
+            //         }
+            //     }
+            // });
         } else {
             console.log("void");
         }