|
@ -1823,14 +1823,18 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 人员修改 |
|
|
// 人员修改 |
|
|
async updatePeoDo () { |
|
|
async updatePeoDo () { |
|
|
const targetAgencyIds = this.peoForm.manageScopes.map(innerArray => innerArray[innerArray.length - 1]); |
|
|
if(this.peoForm.manageScopes){ |
|
|
|
|
|
const targetAgencyIds =this.peoForm.manageScopes?this.peoForm.manageScopes.map(innerArray => innerArray[innerArray.length - 1]):this.peoForm.manageScopes; |
|
|
// 用于存储提取结果的 Set 对象 |
|
|
// 用于存储提取结果的 Set 对象 |
|
|
const result = new Set(); |
|
|
const result = new Set(); |
|
|
// 调用递归函数提取 level 与 agencyId 组合成的字符串 |
|
|
// 调用递归函数提取 level 与 agencyId 组合成的字符串 |
|
|
this.extractLevelAndAgencyId(this.orgOptions[0], targetAgencyIds, result); |
|
|
this.extractLevelAndAgencyId(this.orgOptions[0], targetAgencyIds, result); |
|
|
// 将 Set 对象转换为数组 |
|
|
// 将 Set 对象转换为数组 |
|
|
|
|
|
var manageScopeArray = Array.from(result); |
|
|
|
|
|
console.log(this.peoForm,"查看"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const manageScopeArray = Array.from(result); |
|
|
|
|
|
const url = "/gov/org/staff/editstaff"; |
|
|
const url = "/gov/org/staff/editstaff"; |
|
|
let params = { |
|
|
let params = { |
|
|
staffId: this.userStaffId, |
|
|
staffId: this.userStaffId, |
|
@ -2118,7 +2122,6 @@ export default { |
|
|
this.gridTableFlag = false; |
|
|
this.gridTableFlag = false; |
|
|
this.agencyTableFlag = false; |
|
|
this.agencyTableFlag = false; |
|
|
this.departmentTableFlag = false; |
|
|
this.departmentTableFlag = false; |
|
|
|
|
|
|
|
|
this.selDeptType = row.deptType; |
|
|
this.selDeptType = row.deptType; |
|
|
this.getDepartmentStaffListData(); |
|
|
this.getDepartmentStaffListData(); |
|
|
this.assembleBreadcrumbArr(row.departmentId, "department"); |
|
|
this.assembleBreadcrumbArr(row.departmentId, "department"); |
|
@ -2303,7 +2306,7 @@ export default { |
|
|
this.peoForm.post = data.workType; |
|
|
this.peoForm.post = data.workType; |
|
|
this.peoForm.idCard = data.idCard; |
|
|
this.peoForm.idCard = data.idCard; |
|
|
this.peoForm.manageOrgIds = data.manageOrgIdStr?data.manageOrgIdStr.split(','):[]; |
|
|
this.peoForm.manageOrgIds = data.manageOrgIdStr?data.manageOrgIdStr.split(','):[]; |
|
|
this.peoForm.orgLevels = data.orgLevels; |
|
|
this.peoForm.orgLevels = data.manageLevelStr; |
|
|
this.manageOrgIds = data.manageOrgIdStr; |
|
|
this.manageOrgIds = data.manageOrgIdStr; |
|
|
// 已有的权限(角色) |
|
|
// 已有的权限(角色) |
|
|
let existedRoleArr = []; |
|
|
let existedRoleArr = []; |
|
@ -2313,6 +2316,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
this.peoForm.newRoles = existedRoleArr; |
|
|
this.peoForm.newRoles = existedRoleArr; |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(msg); |
|
|
this.$message.error(msg); |
|
|
} |
|
|
} |
|
|