【修改】修改dataId为reportId

This commit is contained in:
zhoulingpo
2023-05-17 13:48:31 +08:00
parent 12e6b536fb
commit 616ddbd8fb
4 changed files with 46 additions and 13 deletions
+23 -9
View File
@@ -794,15 +794,29 @@ export default {
handleRemove (user, type) {
let delIndex = -1
this.checkedList.map((checkedItem, chkIndex) => {
if (user.USID === checkedItem.USID) {
delIndex = chkIndex
if (type !== 'table') {
this.checkedRow([checkedItem])
if(this.isShowOrg){
this.checkedList.map((checkedItem, chkIndex) => {
if ( user.id === checkedItem.id ) {
delIndex = chkIndex
if (type !== 'table') {
this.checkedRow([checkedItem])
}
return false
}
return false
}
})
})
}else{
this.checkedList.map((checkedItem, chkIndex) => {
if (user.USID === checkedItem.USID ) {
delIndex = chkIndex
if (type !== 'table') {
this.checkedRow([checkedItem])
}
return false
}
})
}
this.checkedList.splice(delIndex, 1)
this.checkedIdList.splice(delIndex, 1)
},
@@ -826,7 +840,7 @@ export default {
if (this.tableData[i].USID == row.USID && !this.isOrg) {
// console.log(this.tableData[i], '666')
this.$refs.orgTable && this.$refs.orgTable.toggleRowSelection(this.tableData[i])
}else if (this.tableData[i].id == row.id&& this.isOrg){
}else if (this.tableData[i].id == row.id && this.isOrg){
this.$refs.orgTable && this.$refs.orgTable.toggleRowSelection(this.tableData[i])
}