feat(person): 导入人员时添加uuid唯一标识字段 #91

This commit is contained in:
log1997
2025-12-08 16:31:44 +08:00
parent f93ceb04ec
commit 4017b51458
2 changed files with 43 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
import { v4 as uuidv4 } from 'uuid'
/**
* @description: 处理表格数据添加x,y,id等信息
* @param tableData 表格数据
@@ -32,6 +32,7 @@ export function addOtherInfo(personList: any[]) {
personList[i].prizeTime = [] as string[]
personList[i].prizeId = []
personList[i].isWin = false
personList[i].uuid = uuidv4()
}
return personList