diff --git a/src/pages/mediation-page/components/LayoutContentNew.vue b/src/pages/mediation-page/components/LayoutContentNew.vue index b4544e8..59df121 100644 --- a/src/pages/mediation-page/components/LayoutContentNew.vue +++ b/src/pages/mediation-page/components/LayoutContentNew.vue @@ -231,6 +231,7 @@ + 刷新 新增沟通记录 0) { _this.deptInfo.id = this.addOrEditAreaConfig.data.id - if(this.deptInfo.directorIds.length == 0){_this.deptInfo.directorId =''} + if(this.deptInfo.directorIds.length == 0){_this.deptInfo.directorId ='[]'} else{_this.deptInfo.directorId ='['+ this.deptInfo.directorIds.toString()+']'} systemManageApi.updateDeptById(_this.deptInfo).then(res => { this.$message({ diff --git a/src/pages/system-management/area-management/components/addOrEditDeptDialog.vue b/src/pages/system-management/area-management/components/addOrEditDeptDialog.vue index cabd1e2..94db94f 100644 --- a/src/pages/system-management/area-management/components/addOrEditDeptDialog.vue +++ b/src/pages/system-management/area-management/components/addOrEditDeptDialog.vue @@ -139,7 +139,7 @@ import systemManageApi from "@/services/systemManage"; if(Object.keys(this.addOrEditDeptConfig.data).length>0 && this.addOrEditDeptConfig.data.pid != 0) { _this.deptInfo.id = this.addOrEditDeptConfig.data.id - if(this.deptInfo.directorIds.length == 0){_this.deptInfo.directorId =''} + if(this.deptInfo.directorIds.length == 0){_this.deptInfo.directorId ='[]'} else{_this.deptInfo.directorId ='['+ this.deptInfo.directorIds.toString()+']'} systemManageApi.updateDeptById(_this.deptInfo).then(res => { this.$message({