From 80886742e57d539d1a7ad9601088389477320b37 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 19 Mar 2024 14:54:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=E7=AB=AF=E4=B8=BB?= =?UTF-8?q?=E7=AE=A1=E9=83=A8=E9=97=A8=E5=8F=AF=E4=BB=A5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=97=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../corpinfo/edit/components/corpInfoEdit.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/corpinfo/edit/components/corpInfoEdit.vue b/src/views/corpinfo/edit/components/corpInfoEdit.vue index bca61ea..1127d84 100644 --- a/src/views/corpinfo/edit/components/corpInfoEdit.vue +++ b/src/views/corpinfo/edit/components/corpInfoEdit.vue @@ -45,7 +45,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="暂无数据" @@ -496,7 +500,7 @@ export default { corpName: '', AUDIT_STATE: '', dataForm: { - MAIN_DEPARTMENT: '', + MAIN_DEPARTMENT: null, businessLicenseDate: [], STATE: '', SUPERVISE_CORPINFO_DEPT_NAME: '', @@ -844,6 +848,11 @@ export default { {} ).then((data) => { this.treeData = JSON.parse(data.zTreeNodes) + this.treeData.push({ + id: '0', + name: '无', + nodes: [] + }) resolve() }).catch((e) => { reject() @@ -897,6 +906,11 @@ export default { if (data.pd.COUNTY != '') this.dataForm.POSSESSION.push(data.pd.COUNTY) if (data.pd.VILLAGE != '') this.dataForm.POSSESSION.push(data.pd.VILLAGE) this.AUDIT_STATE = this.dataForm.STATE + 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] + } this.$forceUpdate() resolve() }).catch((e) => {