From 75d82625acc06758260269a8f60fb8af01fc0ebc Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 21 Mar 2024 16:35:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=B1=95=E7=A4=BA=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E4=B8=BB=E7=AE=A1=E9=83=A8=E9=97=A8bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/relevantunits/audit/components/edit.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/relevantunits/audit/components/edit.vue b/src/views/relevantunits/audit/components/edit.vue index 96ea974..f538e5c 100644 --- a/src/views/relevantunits/audit/components/edit.vue +++ b/src/views/relevantunits/audit/components/edit.vue @@ -32,7 +32,11 @@ :options="treeData" :disabled="true" :normalizer="normalizer" + :flat="true" + :default-expand-level="0" + :props="defaultProps" v-model="dataForm.MAIN_DEPARTMENT" + multiple placeholder="请选择部门" no-options-text="暂无数据" no-children-text="暂无数据" @@ -373,7 +377,7 @@ export default { return { COMPANY_AREA: '', dataForm: { - MAIN_DEPARTMENT: '', + MAIN_DEPARTMENT: null, LICENSE_START: '', LICENSE_END: '', SUPERVISE_CORPINFO_DEPT_NAME: '', @@ -693,6 +697,11 @@ export default { if (this.dataForm.COMPANY_AREA) { this.COMPANY_AREA = this.dataForm.COMPANY_AREA.replaceAll(',', ' / ') } + if (this.dataForm.MAIN_DEPARTMENT.indexOf('[') > -1) { + this.dataForm.MAIN_DEPARTMENT = JSON.parse(this.dataForm.MAIN_DEPARTMENT) + } else { + this.dataForm.MAIN_DEPARTMENT = [this.dataForm.MAIN_DEPARTMENT] + } resolve() }).catch((e) => { this.$message({