主管部门单选变多选

pull/11/head
liujun 2024-03-19 11:39:43 +08:00
parent ab5e191a53
commit 14a067c473
1 changed files with 7 additions and 3 deletions

View File

@ -50,10 +50,13 @@
<el-form-item label="股份主管部门" prop="MAIN_DEPARTMENT"> <el-form-item label="股份主管部门" prop="MAIN_DEPARTMENT">
<Treeselect <Treeselect
:options="treeData" :options="treeData"
:normalizer="normalizer" :normalizer="normalizergfjg"
:flat="true"
:default-expand-level="0"
:props="defaultProps"
v-model="form.MAIN_DEPARTMENT" v-model="form.MAIN_DEPARTMENT"
multiple
placeholder="请选择部门" placeholder="请选择部门"
multiple
no-options-text="暂无数据" no-options-text="暂无数据"
no-children-text="暂无数据" no-children-text="暂无数据"
style="width: 100%;" style="width: 100%;"
@ -353,7 +356,7 @@ export default {
COMPETENT_DEPT_ID: null, COMPETENT_DEPT_ID: null,
MANAGER_DEPARTMENT_ID: null, MANAGER_DEPARTMENT_ID: null,
SUPERVISE_CORPINFO_ID: '', SUPERVISE_CORPINFO_ID: '',
MAIN_DEPARTMENT: '', MAIN_DEPARTMENT: null,
RELEVANT_UNIT_NAME: '', RELEVANT_UNIT_NAME: '',
SOCIAL_CODE: '', SOCIAL_CODE: '',
LOCAL: '', LOCAL: '',
@ -536,6 +539,7 @@ export default {
).then((data) => { ).then((data) => {
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.treeData = this.removeEmptyChildren(treeData) this.treeData = this.removeEmptyChildren(treeData)
console.log(this.treeData)
}).catch((e) => { }).catch((e) => {
}) })
resolve() resolve()