bug:因主管部门变多个,造成人员推送失败

pull/11/head
liujun 2024-03-20 16:08:56 +08:00
parent 710b185f62
commit 9cfd5bd004
1 changed files with 11 additions and 1 deletions

View File

@ -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({