dxd 2 лет назад
Родитель
Сommit
8201aacc77
1 измененных файлов с 5 добавлено и 6 удалено
  1. 5 6
      src/views/menu5/cutPage/cutPage.vue

+ 5 - 6
src/views/menu5/cutPage/cutPage.vue

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