diff --git a/src/views/relevantunits/insert/components/corpInfoAdd.vue b/src/views/relevantunits/insert/components/corpInfoAdd.vue index 1855965..6aaef9f 100644 --- a/src/views/relevantunits/insert/components/corpInfoAdd.vue +++ b/src/views/relevantunits/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%;" @@ -504,6 +505,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/relevantunits/insert/components/corpInfoEdit.vue b/src/views/relevantunits/insert/components/corpInfoEdit.vue index 913e1dd..34d423f 100644 --- a/src/views/relevantunits/insert/components/corpInfoEdit.vue +++ b/src/views/relevantunits/insert/components/corpInfoEdit.vue @@ -53,6 +53,7 @@ :normalizer="normalizer" v-model="form.MAIN_DEPARTMENT" placeholder="请选择部门" + multiple no-options-text="暂无数据" no-children-text="暂无数据" style="width: 100%;" @@ -154,9 +155,6 @@ - - - -
保存 @@ -484,6 +479,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 @@ -561,6 +561,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( '/xgf/corp/editCorpInfo', this.form