|
|
@ -578,38 +578,38 @@ |
|
|
username:this.userRoleForm.username, |
|
|
username:this.userRoleForm.username, |
|
|
userDisplay:this.userRoleForm.userDisplay, |
|
|
userDisplay:this.userRoleForm.userDisplay, |
|
|
} |
|
|
} |
|
|
|
|
|
this.userRoleList = [] |
|
|
searchUserRoll(inData3).then(({data}) => { |
|
|
searchUserRoll(inData3).then(({data}) => { |
|
|
this.userRoleList=data.rows; |
|
|
this.userRoleList=data.rows; |
|
|
|
|
|
|
|
|
for (let j = 0; j <this.userRoleList.length?this.userRoleList.length:-1 ; j++) { |
|
|
|
|
|
let checkData=this.dataForm.userRoleList.filter(item => item.username === this.userRoleList[j].username) |
|
|
|
|
|
if(checkData.length>0){ |
|
|
|
|
|
this.userRoleList[j].deleteCheck=checkData[0].deleteCheck |
|
|
|
|
|
this.userRoleList[j].deleteFlag=checkData[0].deleteFlag |
|
|
|
|
|
this.userRoleList[j].downCheck=checkData[0].downCheck |
|
|
|
|
|
this.userRoleList[j].downFlag=checkData[0].downFlag |
|
|
|
|
|
this.userRoleList[j].searchCheck=checkData[0].searchCheck |
|
|
|
|
|
this.userRoleList[j].searchFlag=checkData[0].searchFlag |
|
|
|
|
|
this.userRoleList[j].updateCheck=checkData[0].updateCheck |
|
|
|
|
|
this.userRoleList[j].checkAll=checkData[0].checkAll |
|
|
|
|
|
}else { |
|
|
|
|
|
this.userRoleList[j].deleteCheck=false |
|
|
|
|
|
this.userRoleList[j].deleteFlag='N' |
|
|
|
|
|
this.userRoleList[j].downCheck=false |
|
|
|
|
|
this.userRoleList[j].downFlag='N' |
|
|
|
|
|
this.userRoleList[j].searchCheck=false |
|
|
|
|
|
this.userRoleList[j].searchFlag='N' |
|
|
|
|
|
this.userRoleList[j].updateCheck=false |
|
|
|
|
|
this.userRoleList[j].checkAll=false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
for (let i = 0; i <this.userRoleList.length ; i++) { |
|
|
|
|
|
if(this.userRoleList[i].username===this.$store.state.user.name){ |
|
|
|
|
|
this.userRoleList[i].checkAll=true; |
|
|
|
|
|
// this.changeAll(this.userRoleList[i]) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// for (let j = 0; j <this.userRoleList.length?this.userRoleList.length:-1 ; j++) { |
|
|
|
|
|
// let checkData=this.dataForm.userRoleList.filter(item => item.username === this.userRoleList[j].username) |
|
|
|
|
|
// if(checkData.length>0){ |
|
|
|
|
|
// this.userRoleList[j].deleteCheck=checkData[0].deleteCheck |
|
|
|
|
|
// this.userRoleList[j].deleteFlag=checkData[0].deleteFlag |
|
|
|
|
|
// this.userRoleList[j].downCheck=checkData[0].downCheck |
|
|
|
|
|
// this.userRoleList[j].downFlag=checkData[0].downFlag |
|
|
|
|
|
// this.userRoleList[j].searchCheck=checkData[0].searchCheck |
|
|
|
|
|
// this.userRoleList[j].searchFlag=checkData[0].searchFlag |
|
|
|
|
|
// this.userRoleList[j].updateCheck=checkData[0].updateCheck |
|
|
|
|
|
// this.userRoleList[j].checkAll=checkData[0].checkAll |
|
|
|
|
|
// }else { |
|
|
|
|
|
// this.userRoleList[j].deleteCheck=false |
|
|
|
|
|
// this.userRoleList[j].deleteFlag='N' |
|
|
|
|
|
// this.userRoleList[j].downCheck=false |
|
|
|
|
|
// this.userRoleList[j].downFlag='N' |
|
|
|
|
|
// this.userRoleList[j].searchCheck=false |
|
|
|
|
|
// this.userRoleList[j].searchFlag='N' |
|
|
|
|
|
// this.userRoleList[j].updateCheck=false |
|
|
|
|
|
// this.userRoleList[j].checkAll=false |
|
|
|
|
|
// } |
|
|
|
|
|
// |
|
|
|
|
|
// } |
|
|
|
|
|
// for (let i = 0; i <this.userRoleList.length ; i++) { |
|
|
|
|
|
// if(this.userRoleList[i].username===this.$store.state.user.name){ |
|
|
|
|
|
// this.userRoleList[i].checkAll=true; |
|
|
|
|
|
// // this.changeAll(this.userRoleList[i]) |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
// this.userRollModal(); |
|
|
// this.userRollModal(); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -722,9 +722,7 @@ |
|
|
userRollModal(){ |
|
|
userRollModal(){ |
|
|
// this.userRoleList=JSON.parse(JSON.stringify(this.dataForm.userRoleList)); |
|
|
// this.userRoleList=JSON.parse(JSON.stringify(this.dataForm.userRoleList)); |
|
|
this.searchUserRoll() |
|
|
this.searchUserRoll() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.userRoleFlag=true |
|
|
|
|
|
|
|
|
this.userRoleFlag=true |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
saveUserList(){ |
|
|
saveUserList(){ |
|
|
|