fix(测试跟踪): 修复取消记住跨页选择的记录前一页的数据不能删除问题

--bug=1021992 --user=郭雨琦
This commit is contained in:
guoyuqi 2023-01-16 19:43:06 +08:00 committed by xiaomeinvG
parent da5438e42c
commit 3cfc98b003
2 changed files with 10 additions and 0 deletions

View File

@ -209,6 +209,11 @@ export default {
}, },
selectCountChange(value) { selectCountChange(value) {
this.$emit('selectCountChange', value); this.$emit('selectCountChange', value);
if (this.$refs.apitable) {
this.$emit('setSelectRow', this.$refs.apitable.getSelectRows());
} else {
this.$emit('setSelectRow', new Set());
}
}, },
getColor(flag, method) { getColor(flag, method) {
return this.methodColorMap.get(method); return this.methodColorMap.get(method);

View File

@ -229,6 +229,11 @@ export default {
methods: { methods: {
selectCountChange(value) { selectCountChange(value) {
this.$emit('selectCountChange', value) this.$emit('selectCountChange', value)
if (this.$refs.apitable) {
this.$emit('setSelectRow', this.$refs.apitable.getSelectRows());
} else {
this.$emit('setSelectRow', new Set());
}
}, },
getColor(flag, method) { getColor(flag, method) {
return this.methodColorMap.get(method); return this.methodColorMap.get(method);