【修改】修改dataId为reportId
This commit is contained in:
@@ -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])
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user