scorpio 2 年之前
父节点
当前提交
5f720420c5
共有 1 个文件被更改,包括 16 次插入20 次删除
  1. 16 20
      src/views/home/component/dash.vue

+ 16 - 20
src/views/home/component/dash.vue

@@ -293,16 +293,16 @@
             </el-form-item>
             <el-form-item class="full-width" label="行业分类" prop="tags">
               <el-select
-                  v-model="projectForm.dictKey"
-                  clearable
-                  placeholder="选择行业分类"
-                  style="width: 100%"
+                v-model="projectForm.dictKey"
+                clearable
+                placeholder="选择行业分类"
+                style="width: 100%"
               >
                 <el-option
-                    v-for="item in industryList"
-                    :key="item.dictKey"
-                    :label="item.dictValue"
-                    :value="item.dictKey"
+                  v-for="item in industryList"
+                  :key="item.dictKey"
+                  :label="item.dictValue"
+                  :value="item.dictKey"
                 />
               </el-select>
             </el-form-item>
@@ -480,10 +480,15 @@ export default {
             width: 180
           },
           {
-            label: '子项目数量',
-            prop: 'lot',
+            label: '行业分类',
+            prop: 'dict_key',
             width: 120,
-            hide: true
+            dicUrl:
+              '/api/blade-system/dict-biz/dictionary?code=industry-classification',
+            props: {
+              label: 'dictValue',
+              value: 'dictKey'
+            }
           },
           {
             label: '是否入库',
@@ -597,17 +602,14 @@ export default {
   },
   created() {
     this.dev = sessionStorage.getItem('dev') === 'true'
-    const index = this.option.column.findIndex(sub => sub.prop === 'lot')
     const indexLabel = this.option.column.findIndex(
       sub => sub.prop === 'unit_name'
     )
     this.dataType = localStorage.getItem('data-type')
     if (this.user.info.viewStage === 1) {
       // 发改
-      this.option.column[index].hide = true
       this.option.column[indexLabel].label = '责任单位'
     } else {
-      this.option.column[index].hide = false
       this.option.column[indexLabel].label = '责任股(科)室'
     }
     this.$bus.on('serach', (res, type) => {
@@ -744,12 +746,6 @@ export default {
           this.tagsList = res.data
         }
       })
-      this.$api.common.dicList({code: 'industry-classification'}).then(res => {
-        if (res.code === 200) {
-          this.industryList = res.data
-        }
-      })
-
     },
     report(res) {
       if (res.is_report === 1) {