修改bug

This commit is contained in:
康冉冉
2025-09-28 19:02:28 +08:00
parent 3729bdda81
commit c7d6196f46
29 changed files with 96 additions and 59 deletions

View File

@@ -186,11 +186,11 @@
this.ids = this.ids.concat(res.id);
}
}
this.isProcessing = false;
});
this.selectList.forEach(val => {
this.$refs[`tableRef_${this.config.tableKey}`].toggleRowSelection(val,true);
});
this.isProcessing = false;
} else {
this.selectList = selection;
this.ids = selection.map(item => item.id);
@@ -205,6 +205,15 @@
} else {
this.selectAllRows(); // 全选
}
} else {
if (tabAll && tabAll.length > 0) {
this.selectList = tabAll;
this.ids = tabAll.map(tabId => tabId.id);
} else {
// 清空
this.selectList = [];
this.ids = [];
}
}
},
// 提供给父组件调用的方法:返回当前表格的选中数据 资源监控策略和资源监控模块使用