duy 1 year ago
parent
commit
b116b19fb7
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/views/measure/systemUnit.vue

+ 14 - 2
src/views/measure/systemUnit.vue

@@ -91,8 +91,11 @@
             </el-table-column>
             <el-table-column
             width="180"
-              prop="nodeName"
-              label="节点类型">
+              prop="nodeType"
+              label="节点类型"
+              :formatter="formatNodeType"
+              >
+            
             </el-table-column>
             <el-table-column
             width="180"
@@ -246,6 +249,15 @@ import {isObjectEmpty} from "@/util/util";
       this.id = id
       // this.getNodeTypelist(id)
     },
+    formatNodeType(row, column, cellValue) {
+      for (let i = 0; i < this.dataTypeList.length; i++) {
+        if (this.dataTypeList[i].dictKey == cellValue) {
+          return this.dataTypeList[i].dictValue;
+        }
+      }
+      return cellValue;
+      //console.log(cellValue)
+    },
     //获取节点类型
     getNodeTypelist (id) {
       if (this.dataTypeList.length > 1) {