|
@@ -447,7 +447,6 @@ export default {
|
|
};
|
|
};
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
this.list = this.formatResData(this.list);
|
|
this.list = this.formatResData(this.list);
|
|
this.list.push({
|
|
this.list.push({
|
|
order: this.paperInfo.questions.length + 1,
|
|
order: this.paperInfo.questions.length + 1,
|
|
@@ -544,7 +543,6 @@ export default {
|
|
if (ques[ques.length - 1].ele.length <= 0) {
|
|
if (ques[ques.length - 1].ele.length <= 0) {
|
|
ques.pop();
|
|
ques.pop();
|
|
}
|
|
}
|
|
- debugger
|
|
|
|
var req = {
|
|
var req = {
|
|
id: this.paperInfo.id,
|
|
id: this.paperInfo.id,
|
|
pid: this.paperInfo.id,
|
|
pid: this.paperInfo.id,
|
|
@@ -686,7 +684,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
// 添加单张截图
|
|
// 添加单张截图
|
|
if (!that.isMaterial) {
|
|
if (!that.isMaterial) {
|
|
- debugger;
|
|
|
|
// 不是材料正常添加逻辑
|
|
// 不是材料正常添加逻辑
|
|
if (that.curBoxIndex == "answerBox") {
|
|
if (that.curBoxIndex == "answerBox") {
|
|
that.addAnswerImg();
|
|
that.addAnswerImg();
|
|
@@ -770,6 +767,7 @@ export default {
|
|
y: cropData.top / this.imgSize - standardPoint.y,
|
|
y: cropData.top / this.imgSize - standardPoint.y,
|
|
w: cropData.width / this.imgSize,
|
|
w: cropData.width / this.imgSize,
|
|
h: cropData.height / this.imgSize,
|
|
h: cropData.height / this.imgSize,
|
|
|
|
+ page: this.curLeftIndex,
|
|
};
|
|
};
|
|
if (imgType) {
|
|
if (imgType) {
|
|
// 切割材料
|
|
// 切割材料
|
|
@@ -779,10 +777,10 @@ export default {
|
|
img: this.myCropper
|
|
img: this.myCropper
|
|
.getCroppedCanvas({ width: 1310 })
|
|
.getCroppedCanvas({ width: 1310 })
|
|
.toDataURL("image/jpeg"),
|
|
.toDataURL("image/jpeg"),
|
|
|
|
+ // page: this.curLeftIndex,
|
|
point: point,
|
|
point: point,
|
|
imgType: imgType,
|
|
imgType: imgType,
|
|
});
|
|
});
|
|
- debugger;
|
|
|
|
} else {
|
|
} else {
|
|
// 正常切题
|
|
// 正常切题
|
|
this.list[this.curBoxIndex].id = 0;
|
|
this.list[this.curBoxIndex].id = 0;
|
|
@@ -792,7 +790,7 @@ export default {
|
|
img: this.myCropper
|
|
img: this.myCropper
|
|
.getCroppedCanvas({ width: 1310 })
|
|
.getCroppedCanvas({ width: 1310 })
|
|
.toDataURL("image/jpeg"),
|
|
.toDataURL("image/jpeg"),
|
|
- page: this.curLeftIndex,
|
|
|
|
|
|
+ // page: this.curLeftIndex,
|
|
point: point,
|
|
point: point,
|
|
imgType: imgType,
|
|
imgType: imgType,
|
|
});
|
|
});
|
|
@@ -806,6 +804,7 @@ export default {
|
|
y: cropData.top / this.imgSize - standardPoint.y,
|
|
y: cropData.top / this.imgSize - standardPoint.y,
|
|
w: cropData.width / this.imgSize,
|
|
w: cropData.width / this.imgSize,
|
|
h: cropData.height / this.imgSize,
|
|
h: cropData.height / this.imgSize,
|
|
|
|
+ page:this.curLeftIndex
|
|
};
|
|
};
|
|
this.answerList[0].id = 0;
|
|
this.answerList[0].id = 0;
|
|
this.answerList[0].ele = [
|
|
this.answerList[0].ele = [
|
|
@@ -814,7 +813,7 @@ export default {
|
|
img: this.myCropper
|
|
img: this.myCropper
|
|
.getCroppedCanvas({ width: 1310 })
|
|
.getCroppedCanvas({ width: 1310 })
|
|
.toDataURL("image/jpeg"),
|
|
.toDataURL("image/jpeg"),
|
|
- page: this.curLeftIndex,
|
|
|
|
|
|
+ // page: this.curLeftIndex,
|
|
point: point,
|
|
point: point,
|
|
},
|
|
},
|
|
];
|
|
];
|