|
|
@ -1672,15 +1672,14 @@ export default { |
|
|
|
|
|
|
|
|
// 添加人员 |
|
|
// 添加人员 |
|
|
async submitPeoDo () { |
|
|
async submitPeoDo () { |
|
|
|
|
|
if(this.peoForm.manageScopes){ |
|
|
const targetAgencyIds = this.peoForm.manageScopes.map(innerArray => innerArray[innerArray.length - 1]); |
|
|
const targetAgencyIds = this.peoForm.manageScopes.map(innerArray => innerArray[innerArray.length - 1]); |
|
|
|
|
|
|
|
|
// 用于存储提取结果的 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); |
|
|
|
|
|
var manageScopeArray = Array.from(result); |
|
|
const manageScopeArray = Array.from(result); |
|
|
} |
|
|
const url = "/gov/org/staff/addstaffv2"; |
|
|
const url = "/gov/org/staff/addstaffv2"; |
|
|
const { |
|
|
const { |
|
|
peoForm: { orgType }, |
|
|
peoForm: { orgType }, |
|
|
|