1
0
tangning 1 день назад
Родитель
Сommit
e2de2446a4
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      src/view/case/photos/canvas-photo-editor.js
  2. 2 2
      src/view/material/sceneImg.vue

+ 2 - 2
src/view/case/photos/canvas-photo-editor.js

@@ -1621,12 +1621,12 @@ export class CanvasPhotoEditor {
           // PDF 位置
           let x, y, w, h;
           if (paperType === "a4") {
-            [x, y, w, h] = [0 + 28, 0, pdfW-28, pdfH];
+            [x, y, w, h] = [0 + 28, 0, pdfW, pdfH];
           } else if (paperType === "a3") {
             w = ((pdfW / 2) - 28); h = pdfH; x = (idxInSheet * w)+56; y = 0;
           } else {
             w = pdfW / 4; h = pdfH;
-            x = idxInSheet * w;
+            x = idxInSheet * (pdfW / 4);
             y = 0;
           }
 

+ 2 - 2
src/view/material/sceneImg.vue

@@ -234,8 +234,8 @@
                   :icon="Download"
                   >下载</el-button
                 >
-                <!-- style="display: none;" -->
-                <el-button class="newbut" :icon="Edit" @click="openAIdrawCase"
+                <!--  -->
+                <el-button style="display: none;" class="newbut" :icon="Edit" @click="openAIdrawCase"
                   >AI制卷</el-button
                 >
               </div>