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