|
|
@@ -41,34 +41,34 @@
|
|
|
<div class="flex flex-justify-center">
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
- <span class="title">责任单位:</span>
|
|
|
+ <span class="title">主管单位:</span>
|
|
|
<el-select
|
|
|
- v-model="form.responsible_unit"
|
|
|
+ v-model="form.competent_unit"
|
|
|
placeholder="请选择项目标签"
|
|
|
class="full-width"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in form.tags === 1 ? deptDic : compDic"
|
|
|
- :key="item.dictValue"
|
|
|
- :label="item.dictValue"
|
|
|
- :value="item.dictKey"
|
|
|
+ v-for="item in deptDic"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
- <span class="title">主管单位:</span>
|
|
|
+ <span class="title">责任单位:</span>
|
|
|
<el-select
|
|
|
- v-model="form.competent_unit"
|
|
|
+ v-model="form.responsible_unit"
|
|
|
placeholder="请选择项目标签"
|
|
|
class="full-width"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in deptDic"
|
|
|
- :key="item.dictValue"
|
|
|
- :label="item.dictValue"
|
|
|
- :value="item.dictKey"
|
|
|
+ v-for="item in form.tags === 1 ? deptDic : compDic"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
@@ -96,7 +96,7 @@
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">所属行业:</span>
|
|
|
- <el-input></el-input>
|
|
|
+ <industry-picker placeholde="行业" @change="changeIndustry" />
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
@@ -230,12 +230,14 @@ import wtCard from '@/components/wt-card/index.vue'
|
|
|
import areaPicker from '@/components/area-picker/index.vue'
|
|
|
import mapPicker from '@/views/project/componens/map-picker.vue'
|
|
|
import { useStore } from '@/store/user.js'
|
|
|
+import industryPicker from '@/components/industry-picker/index.vue'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
wtCard,
|
|
|
areaPicker,
|
|
|
- mapPicker
|
|
|
+ mapPicker,
|
|
|
+ industryPicker
|
|
|
},
|
|
|
props: {
|
|
|
info: {
|
|
|
@@ -258,10 +260,8 @@ export default {
|
|
|
this.getCompList()
|
|
|
}
|
|
|
this.getDict('project-situation')
|
|
|
- // fixme需要接口
|
|
|
- this.getChildDict('industry-classification')
|
|
|
},
|
|
|
- immediate: true
|
|
|
+ immediate: false
|
|
|
}
|
|
|
},
|
|
|
setup() {
|
|
|
@@ -296,21 +296,15 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getChildDict(code) {
|
|
|
- this.$api.common.dicChildList({ code }).then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.projectSituation = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
getDepList() {
|
|
|
const local = {
|
|
|
- label: this.user.info.deptName,
|
|
|
- value: this.user.info.deptId
|
|
|
+ label: this.form.competent_unit_name,
|
|
|
+ value: this.form.competent_unit
|
|
|
}
|
|
|
this.deptDic.push(local)
|
|
|
+ console.log(this.deptDic)
|
|
|
this.$api.system
|
|
|
- .getDeptLazy({ parentId: this.user.info.deptId, deptCategory: 3 })
|
|
|
+ .getDeptLazy({ parentId: this.form.competent_unit, deptCategory: 3 })
|
|
|
.then(res => {
|
|
|
if (res.code === 200) {
|
|
|
const tmp = res.data.map(ele => {
|
|
|
@@ -362,6 +356,9 @@ export default {
|
|
|
this.form.longitude = res.longitude
|
|
|
this.form.latitude = res.latitude
|
|
|
this.photoList = list
|
|
|
+ },
|
|
|
+ changeIndustry(tmps) {
|
|
|
+ this.form.dict_value = tmps
|
|
|
}
|
|
|
}
|
|
|
}
|