From ab5e191a5375b363003e4fb9288475414f427b0b Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 19 Mar 2024 09:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E7=AE=A1=E9=83=A8=E9=97=A8=E5=8D=95?= =?UTF-8?q?=E9=80=89=E5=8F=98=E5=A4=9A=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/insert/components/corpInfoAdd.vue | 2 ++ src/views/xgf/insert/components/corpInfoEdit.vue | 6 ++++++ 2 files changed, 8 insertions(+) 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