主管部门单选变多选

pull/11/head
liujun 2024-03-19 09:32:54 +08:00
parent 9f501ce25b
commit ab5e191a53
2 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,7 @@
:normalizer="normalizer"
v-model="form.MAIN_DEPARTMENT"
placeholder="请选择部门"
multiple
no-options-text="暂无数据"
no-children-text="暂无数据"
style="width: 100%;"
@ -446,6 +447,7 @@ export default {
this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',')
}
this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE)
this.form.MAIN_DEPARTMENT = JSON.stringify(this.form.MAIN_DEPARTMENT)
requestFN(
'/relevantunits/saveCorpInfo',
this.form

View File

@ -52,6 +52,7 @@
:options="treeData"
:normalizer="normalizer"
v-model="form.MAIN_DEPARTMENT"
multiple
placeholder="请选择部门"
no-options-text="暂无数据"
no-children-text="暂无数据"
@ -483,6 +484,11 @@ export default {
} else {
this.form.CORP_TYPE = [this.form.CORP_TYPE]
}
if (this.form.MAIN_DEPARTMENT.indexOf('[') > -1) {
this.form.MAIN_DEPARTMENT = JSON.parse(this.form.MAIN_DEPARTMENT)
} else {
this.form.MAIN_DEPARTMENT = [this.form.MAIN_DEPARTMENT]
}
var sz = this.form.SELECT_FORM
var cdi = this.form.COMPETENT_DEPT_ID
var mdi = this.form.MANAGER_DEPARTMENT_ID