fix(inventory): 解决导入SN数据时状态设置时机问题

- 将isImported状态设置移到下一个DOM更新周期后执行
- 确保表格选择操作完成后再更新导入状态
- 避免因状态设置过早导致的UI更新异常
dev_1.0.0
chenhao 2026-01-26 09:57:21 +08:00
parent 5f6f014226
commit dd2a7d99b6
1 changed files with 3 additions and 1 deletions

View File

@ -235,12 +235,14 @@ export default {
this.total = this.snList.length;
this.queryParams.pageNum = 1;
this.queryParams.pageSize = this.total;
this.isImported = true;
this.$nextTick(() => {
if (this.$refs.snTable) {
this.$refs.snTable.clearSelection();
this.$refs.snTable.toggleAllSelection();
this.selectedSnList = this.snList;
this.$nextTick(() => {
this.isImported = true;
});
}
});
}).catch(() => {