fix: fix and new feature
This commit is contained in:
@@ -11,7 +11,6 @@ export const filterData = (tableData: any[], localRowCount: number, startIndex =
|
||||
tableData[i].y = j;
|
||||
tableData[i].id = i;
|
||||
// 是否中奖
|
||||
tableData[i].isWin = false
|
||||
}
|
||||
|
||||
return tableData
|
||||
@@ -20,11 +19,13 @@ export const filterData = (tableData: any[], localRowCount: number, startIndex =
|
||||
export const addOtherInfo = (personList: any[]) => {
|
||||
const len = personList.length;
|
||||
for (let i = 0; i < len; i++) {
|
||||
personList[i].id = i
|
||||
personList[i].createTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
|
||||
personList[i].updateTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
|
||||
personList[i].prizeName = [] as string[];
|
||||
personList[i].prizeTime = [] as string[];
|
||||
personList[i].prizeId = [];
|
||||
personList[i].isWin = false
|
||||
}
|
||||
|
||||
return personList
|
||||
|
||||
Reference in New Issue
Block a user