|
|
|
@ -407,7 +407,7 @@ |
|
|
|
this.queryUserRoleListLoading = false |
|
|
|
},5000) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
saveCheckAllIndeterminate(){ |
|
|
|
@ -628,12 +628,10 @@ |
|
|
|
}, |
|
|
|
saveManagerList(){ |
|
|
|
let projectManagerName=''; |
|
|
|
let indexList = []; |
|
|
|
let selectionOwnerList = this.operatorList.filter((item,index) => { |
|
|
|
indexList.push(index) |
|
|
|
return this.projectManagerList.includes(item.operatorId) |
|
|
|
let selectionManagerList = this.operatorList.filter((item) => { |
|
|
|
return this.projectManagerList.includes(item.operatorId); |
|
|
|
}) |
|
|
|
projectManagerName=selectionOwnerList.map(item => item.operatorName).join(';'); |
|
|
|
projectManagerName=selectionManagerList.map(item => item.operatorName).join(';'); |
|
|
|
// for (let i = 0; i < this.projectManagerList.length; i++) { |
|
|
|
// let select= this.operatorList.filter(item => item.operatorId === this.projectManagerList[i]) |
|
|
|
// if(select.length > 0){ |
|
|
|
@ -641,8 +639,8 @@ |
|
|
|
// this.addRollForUsername(select[0].operatorId,select[0].operatorName); |
|
|
|
// } |
|
|
|
// } |
|
|
|
for (let i = 0; i < indexList.length; i++) { |
|
|
|
let row = this.operatorList[indexList[i]] |
|
|
|
for (let i = 0; i < selectionManagerList.length; i++) { |
|
|
|
let row = selectionManagerList[i] |
|
|
|
this.addRollForUsername(row.operatorId,row.operatorName) |
|
|
|
} |
|
|
|
this.dataForm.projectManagerName=projectManagerName |
|
|
|
@ -664,21 +662,14 @@ |
|
|
|
}, |
|
|
|
saveOwnerList(){ |
|
|
|
let projectOwnerName=''; |
|
|
|
let indexList = []; |
|
|
|
let selectionOwnerList = this.operatorList.filter((item,index) => { |
|
|
|
indexList.push(index) |
|
|
|
return this.projectOwnerList.includes(item.operatorId) |
|
|
|
let selectionOwnerList = this.operatorList.filter((item) => { |
|
|
|
return this.projectOwnerList.includes(item.operatorId); |
|
|
|
}) |
|
|
|
|
|
|
|
projectOwnerName=selectionOwnerList.map(item => item.operatorName).join(';'); |
|
|
|
// for (let i = 0; i < this.projectOwnerList.length; i++) { |
|
|
|
// let select= this.operatorList.filter(item => item.operatorId === this.projectOwnerList[i]) |
|
|
|
// if(select.length>0){ |
|
|
|
// projectOwnerName+=select[0].operatorName+';' |
|
|
|
// // this.`addRollForUsername`(select[0].operatorId,select[0].operatorName); |
|
|
|
// } |
|
|
|
// } |
|
|
|
for (let i = 0; i < indexList.length; i++) { |
|
|
|
let row = this.operatorList[indexList[i]] |
|
|
|
|
|
|
|
for (let i = 0; i < selectionOwnerList.length; i++) { |
|
|
|
let row = selectionOwnerList[i] |
|
|
|
this.addRollForUsername(row.operatorId,row.operatorName) |
|
|
|
} |
|
|
|
|
|
|
|
@ -721,7 +712,8 @@ |
|
|
|
username: username, |
|
|
|
}] |
|
|
|
} |
|
|
|
this.dataForm.userRoleName = this.dataForm.userRoleList.map(item => item.userDisplay).join(';'); |
|
|
|
let selectionUserList = this.dataForm.userRoleList.filter(item => item.searchCheck || item.updateCheck || item.downCheck || item.deleteCheck) |
|
|
|
this.dataForm.userRoleName = selectionUserList.map(item => item.userDisplay).join(';'); |
|
|
|
}, |
|
|
|
userRollModal(){ |
|
|
|
this.searchUserRoll() |
|
|
|
|