无法展示多个主管部门bug修复
parent
19c0273616
commit
75d82625ac
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue