主管部门单选变多选
parent
9f501ce25b
commit
ab5e191a53
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue