Просмотр исходного кода

元素数据类型解析显示

gangyj 2 лет назад
Родитель
Сommit
6bd05098ff
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      src/views/manager/projectinfo/tree.vue

+ 13 - 0
src/views/manager/projectinfo/tree.vue

@@ -972,6 +972,7 @@
           prop="eType"
           prop="eType"
           label="数据类型"
           label="数据类型"
           width="120"
           width="120"
+          :formatter="eTypeFormatter"
         >
         >
         </el-table-column>
         </el-table-column>
         <el-table-column
         <el-table-column
@@ -1928,6 +1929,18 @@ export default {
       })
       })
     },
     },
 
 
+    //解析元素数据类型
+    eTypeFormatter(row){
+      let text = '';
+      for (let i = 0; i < this.dataTypeList.length; i++) {
+        if(this.dataTypeList[i].dictKey == row.eType){
+          text = this.dataTypeList[i].dictValue;
+          break;
+        }
+      }
+      return text;
+    },
+
     getDeptCategorylist () {
     getDeptCategorylist () {
       if (this.deptCategorylist.length > 1) {
       if (this.deptCategorylist.length > 1) {
         return;
         return;