diff --git a/src/views/xgf/insert/components/corpInfoAdd.vue b/src/views/xgf/insert/components/corpInfoAdd.vue index cabfbd3..70d2d01 100644 --- a/src/views/xgf/insert/components/corpInfoAdd.vue +++ b/src/views/xgf/insert/components/corpInfoAdd.vue @@ -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 diff --git a/src/views/xgf/insert/components/corpInfoEdit.vue b/src/views/xgf/insert/components/corpInfoEdit.vue index 48c2038..b03c93d 100644 --- a/src/views/xgf/insert/components/corpInfoEdit.vue +++ b/src/views/xgf/insert/components/corpInfoEdit.vue @@ -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