保存时数据不对
部署生产环境 / 发布版本 (push) Successful in 13s Details
部署生产环境 / 编译发布 (push) Successful in 3m52s Details

This commit is contained in:
yj 2024-06-12 17:01:27 +08:00
parent 337f1b917c
commit cce7d4f389
1 changed files with 28 additions and 4 deletions

View File

@ -2840,16 +2840,40 @@ const changeData = (): any => {
item.from.subjectPoint =
item.tempData[1].point.length == 1 ? item.tempData[1].point[0].customFrom : {};
item.from.examIDPoint = item.tempData[2].point.map((row: any) => {
return row.customFrom;
return {
...row.customFrom,
width: row.width,
height: row.height - 36.16,
top: row.top + 20,
left: row.left,
};
});
item.from.objectiveQuestionsPoint = item.tempData[3].point.map((row: any) => {
return row.customFrom;
return {
...row.customFrom,
width: row.width,
height: row.height - 36.16,
top: row.top + 20,
left: row.left,
};
});
item.from.subjectiveQuestionsPoint = item.tempData[4].point.map((row: any) => {
return row.customFrom;
return {
...row.customFrom,
width: row.width,
height: row.height - 36.16,
top: row.top + 20,
left: row.left,
};
});
item.from.otherPoint = item.tempData[5].point.map((row: any) => {
return row.customFrom;
return {
...row.customFrom,
width: row.width,
height: row.height,
top: row.top + 20,
left: row.left,
};
});
divideByTwoProperties(
item.from.subjectiveQuestionsPoint,