[update 标准解读流程] 快照回显、导入覆盖
This commit is contained in:
+2
@@ -581,6 +581,8 @@ export default {
|
||||
}
|
||||
// 前端存储,没有id的数据,前端加上uuid
|
||||
const data = info.file.response.result || []
|
||||
// 删除之前的数据,覆盖重新导入的
|
||||
this.processAllDelIds.push(...this.dataSource.map(item => item[this.rowKey]))
|
||||
this.dataSource = data.map(item => {
|
||||
// 导入的时候生成前端id,不用索引防止禁用出错
|
||||
item.id = randomUUID()
|
||||
|
||||
Reference in New Issue
Block a user