bug:因主管部门变多个,造成人员推送失败
parent
710b185f62
commit
9cfd5bd004
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue