|
|
@@ -307,20 +307,8 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item class="full-width" label="行业分类" prop="tags">
|
|
|
- <el-select
|
|
|
- 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"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-form-item class="full-width" label="所属行业" prop="dictKey">
|
|
|
+ <industry-picker @change="changeIndustry" />
|
|
|
</el-form-item>
|
|
|
<el-form-item class="full-width" label="建设内容">
|
|
|
<el-input
|
|
|
@@ -411,10 +399,11 @@ import summaryDialog from '@/views/home/component/summary_dialog.vue'
|
|
|
import { useStore } from '@/store/user.js'
|
|
|
import confing from '@/config/website'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
+import industryPicker from '@/components/industry-picker/index.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'dash',
|
|
|
- components: { BaseButton, formDialog, summaryDialog },
|
|
|
+ components: { BaseButton, formDialog, summaryDialog, industryPicker },
|
|
|
setup() {
|
|
|
const permissions = permissionStore()
|
|
|
const user = useStore()
|
|
|
@@ -1047,6 +1036,9 @@ export default {
|
|
|
if (tmp) {
|
|
|
this.projectForm.createDept = tmp.id
|
|
|
}
|
|
|
+ },
|
|
|
+ changeIndustry(list) {
|
|
|
+ this.projectForm.dictKey = JSON.stringify(list)
|
|
|
}
|
|
|
}
|
|
|
}
|