diff --git a/src/views/xgf/audit/components/edit.vue b/src/views/xgf/audit/components/edit.vue index 6e98470..f7aed95 100644 --- a/src/views/xgf/audit/components/edit.vue +++ b/src/views/xgf/audit/components/edit.vue @@ -32,8 +32,11 @@ :options="treeData" :disabled="true" :normalizer="normalizer" + :flat="true" + :default-expand-level="0" v-model="dataForm.MAIN_DEPARTMENT" placeholder="请选择部门" + multiple no-options-text="暂无数据" no-children-text="暂无数据" style="width: 100%;" @@ -351,7 +354,7 @@ export default { return { COMPANY_AREA: '', dataForm: { - MAIN_DEPARTMENT: '', + MAIN_DEPARTMENT: null, businessLicenseDate: [], SUPERVISE_CORPINFO_DEPT_NAME: '', COMPETENT_DEPT_NAME: '', @@ -681,6 +684,13 @@ export default { this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_START) this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_END) + // 应对相关方主管部门多选 + if (this.dataForm.MAIN_DEPARTMENT.indexOf(']') < 0) { + this.dataForm.MAIN_DEPARTMENT = [this.dataForm.MAIN_DEPARTMENT] + } else { + this.dataForm.MAIN_DEPARTMENT = JSON.parse(this.dataForm.MAIN_DEPARTMENT) + } + resolve() }).catch((e) => { this.$message({