Browse Source

plm BMM

master
ruanqi 1 year ago
parent
commit
7b5c6556c1
  1. 8
      src/views/modules/project/projectInfo/com_projectInfo-add-or-update.vue

8
src/views/modules/project/projectInfo/com_projectInfo-add-or-update.vue

@ -622,8 +622,6 @@
this.ownerFlag=false this.ownerFlag=false
}, },
userRollModal(){ userRollModal(){
// console.log(this.dataForm.userRoleList)
// console.log(this.userRoleList)
// this.userRoleList=JSON.parse(JSON.stringify(this.dataForm.userRoleList)); // this.userRoleList=JSON.parse(JSON.stringify(this.dataForm.userRoleList));
this.searchUserRoll() this.searchUserRoll()
@ -651,17 +649,11 @@
} }
} }
let name= ''; let name= '';
console.log("this.dataForm.userRoleList")
console.log(this.dataForm.userRoleList)
console.log("this.userRoleList")
console.log(this.userRoleList)
for (let i = 0; i < this.userRoleList.length; i++) { for (let i = 0; i < this.userRoleList.length; i++) {
this.dataForm.userRoleList=this.dataForm.userRoleList.filter(item => item.username != this.userRoleList[i].username) this.dataForm.userRoleList=this.dataForm.userRoleList.filter(item => item.username != this.userRoleList[i].username)
if(this.userRoleList[i].searchCheck||this.userRoleList[i].updateCheck||this.userRoleList[i].downCheck||this.userRoleList[i].deleteCheck){ if(this.userRoleList[i].searchCheck||this.userRoleList[i].updateCheck||this.userRoleList[i].downCheck||this.userRoleList[i].deleteCheck){
this.dataForm.userRoleList.push(this.userRoleList[i]) this.dataForm.userRoleList.push(this.userRoleList[i])
} }
console.log("this.dataForm.userRoleList")
console.log(this.dataForm.userRoleList)
} }
for (let i = 0; i < this.dataForm.userRoleList.length; i++) { for (let i = 0; i < this.dataForm.userRoleList.length; i++) {
if(this.dataForm.userRoleList[i].searchCheck||this.dataForm.userRoleList[i].updateCheck if(this.dataForm.userRoleList[i].searchCheck||this.dataForm.userRoleList[i].updateCheck

Loading…
Cancel
Save