[update] 选择人员取消全选改成取消当前查询条件下的全选
This commit is contained in:
@@ -221,8 +221,9 @@ export default {
|
|||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
this.checkCurrentAll()
|
this.checkCurrentAll()
|
||||||
} else {
|
} else {
|
||||||
this.dataSourceRight = []
|
const field = 'contactId'
|
||||||
this.selectedRowKeys = []
|
this.dataSourceRight = this.dataSourceRight.filter(item => !this.currentQueryAllData.some(i => i[field] === item[field]))
|
||||||
|
this.selectedRowKeys = JSON.parse(JSON.stringify(this.dataSourceRight)).map(item => item[field])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkCurrentAll () {
|
checkCurrentAll () {
|
||||||
|
|||||||
@@ -251,8 +251,9 @@ export default {
|
|||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
this.checkCurrentAll()
|
this.checkCurrentAll()
|
||||||
} else {
|
} else {
|
||||||
this.dataSourceRight = []
|
const field = 'id'
|
||||||
this.selectedRowKeys = []
|
this.dataSourceRight = this.dataSourceRight.filter(item => !this.currentQueryAllData.some(i => i[field] === item[field]))
|
||||||
|
this.selectedRowKeys = JSON.parse(JSON.stringify(this.dataSourceRight)).map(item => item[field])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkCurrentAll () {
|
checkCurrentAll () {
|
||||||
|
|||||||
@@ -322,8 +322,9 @@ export default {
|
|||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
this.checkCurrentAll()
|
this.checkCurrentAll()
|
||||||
} else {
|
} else {
|
||||||
this.dataSourceRight = []
|
const field = 'userId'
|
||||||
this.selectedRowKeys = []
|
this.dataSourceRight = this.dataSourceRight.filter(item => !this.currentQueryAllData.some(i => i[field] === item[field]))
|
||||||
|
this.selectedRowKeys = JSON.parse(JSON.stringify(this.dataSourceRight)).map(item => item[field])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkCurrentAll () {
|
checkCurrentAll () {
|
||||||
|
|||||||
@@ -269,8 +269,9 @@ export default {
|
|||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
this.checkCurrentAll()
|
this.checkCurrentAll()
|
||||||
} else {
|
} else {
|
||||||
this.dataSourceRight = []
|
const field = 'id'
|
||||||
this.selectedRowKeys = []
|
this.dataSourceRight = this.dataSourceRight.filter(item => !this.currentQueryAllData.some(i => i[field] === item[field]))
|
||||||
|
this.selectedRowKeys = JSON.parse(JSON.stringify(this.dataSourceRight)).map(item => item[field])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkCurrentAll () {
|
checkCurrentAll () {
|
||||||
|
|||||||
Reference in New Issue
Block a user