保存时数据不对
This commit is contained in:
parent
337f1b917c
commit
cce7d4f389
|
|
@ -2840,16 +2840,40 @@ const changeData = (): any => {
|
||||||
item.from.subjectPoint =
|
item.from.subjectPoint =
|
||||||
item.tempData[1].point.length == 1 ? item.tempData[1].point[0].customFrom : {};
|
item.tempData[1].point.length == 1 ? item.tempData[1].point[0].customFrom : {};
|
||||||
item.from.examIDPoint = item.tempData[2].point.map((row: any) => {
|
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) => {
|
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) => {
|
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) => {
|
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(
|
divideByTwoProperties(
|
||||||
item.from.subjectiveQuestionsPoint,
|
item.from.subjectiveQuestionsPoint,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue