|
@@ -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) {
|