fix(inventory): 解决导入SN数据时状态设置时机问题
- 将isImported状态设置移到下一个DOM更新周期后执行 - 确保表格选择操作完成后再更新导入状态 - 避免因状态设置过早导致的UI更新异常dev_1.0.0
parent
5f6f014226
commit
dd2a7d99b6
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue