Kaynağa Gözat

带气封堵查询 列表dict

wangzhe 1 yıl önce
ebeveyn
işleme
8ab9fc3861
1 değiştirilmiş dosya ile 17 ekleme ve 3 silme
  1. 17 3
      src/views/zdsz/engineeringAirWall/index.vue

+ 17 - 3
src/views/zdsz/engineeringAirWall/index.vue

@@ -80,7 +80,11 @@
     <el-table v-loading="loading" :data="comprehensiveList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center"/>
       <el-table-column label="工程名称" align="center" prop="enginName"/>
-      <!--<el-table-column label="工程类型" align="center" prop="enginType"/>-->
+      <el-table-column label="工程类型" align="center" prop="enginType">
+        <template slot-scope="scope">
+          <span>{{ parseDict(scope.row.enginType, 'air_wall_node') }}</span>
+        </template>
+      </el-table-column>
       <!--<el-table-column label="工程分类" align="center" prop="enginClassification"/>-->
       <!--<el-table-column label="现场负责人" align="center" prop="sceneHead"/>-->
       <!--<el-table-column label="设计负责人" align="center" prop="designHead"/>-->
@@ -392,6 +396,8 @@ export default {
       },
       nodeDetailVisible: false, // 施工信息dialog
       MaterVisible: false, // 用料信息dialog
+      // 字典
+      dicts: {},
       // 表单参数
       form: {
         files: [], // 附件
@@ -498,6 +504,14 @@ export default {
     });
   },
   methods: {
+      parseDict(dictValue, dictionary) {
+        const dict = this.dict.type[dictionary]
+        for(let i = 0; i < dict.length; i++){
+          if(dict[i].value == dictValue){
+            return dict[i].label
+          }
+        }
+      },
     filesUpload(url){
       console.log('upload successfully')
       this.form.files = url
@@ -733,8 +747,8 @@ export default {
     getUrl(url) {
       this.zEngineeringNodeBo.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.$refs.obsImageUpload.fileList ? this.$refs.obsImageUpload.fileList.map(e => e.url) : [];
     },
-    /** 查询市政工程|工业工程列表 */
-    getList(val) {
+    /** 查询带气封堵施工列表 */
+    getList() {
       this.loading = true;
       getEngineeAirWallList(this.searchParams).then(res => {
         this.comprehensiveList = res.rows;