Browse Source

组织报错

feature
是小王呀\24601 1 year ago
parent
commit
a86a70ebbd
  1. 13
      src/views/modules/base/organization/organization.vue

13
src/views/modules/base/organization/organization.vue

@ -1778,14 +1778,19 @@ export default {
},
//
async updatePeoDo () {
const targetAgencyIds = this.peoForm.manageScopes.map(innerArray => innerArray[innerArray.length - 1]);
const manageScopeArra=[]
if(this.peoForm.manageScopes){
const targetAgencyIds =this.peoForm.manageScopes?this.peoForm.manageScopes.map(innerArray => innerArray[innerArray.length - 1]):this.peoForm.manageScopes;
// Set
const result = new Set();
// level agencyId
this.extractLevelAndAgencyId(this.orgOptions[0], targetAgencyIds, result);
// Set
manageScopeArray = Array.from(result);
console.log(this.peoForm,"查看");
}
const manageScopeArray = Array.from(result);
const url = "/gov/org/staff/editstaff";
let params = {
staffId: this.userStaffId,
@ -2072,7 +2077,6 @@ export default {
this.gridTableFlag = false;
this.agencyTableFlag = false;
this.departmentTableFlag = false;
this.selDeptType = row.deptType;
this.getDepartmentStaffListData();
this.assembleBreadcrumbArr(row.departmentId, "department");
@ -2254,7 +2258,7 @@ export default {
this.peoForm.post = data.workType;
this.peoForm.idCard = data.idCard;
this.peoForm.manageOrgIds = data.manageOrgIdStr?data.manageOrgIdStr.split(','):[];
this.peoForm.orgLevels = data.orgLevels;
this.peoForm.orgLevels = data.manageLevelStr;
this.manageOrgIds = data.manageOrgIdStr;
//
let existedRoleArr = [];
@ -2264,6 +2268,7 @@ export default {
}
});
this.peoForm.newRoles = existedRoleArr;
} else {
this.$message.error(msg);
}

Loading…
Cancel
Save