tangning 5 일 전
부모
커밋
7d5c37845d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/view/case/photos/canvas-photo-editor.js

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

@@ -457,7 +457,6 @@ export class CanvasPhotoEditor {
     const mouseY = (e.clientY - rect.top - this.drawOffsetY) / this.scale
     const PhotoIndex = this.getPhotoPositionInPage(e)
     console.log('indexingLineList', this.indexingLineList)
-    console.log('indexing', this.indexing, PhotoIndex, isLine)
     if (PhotoIndex.itemIndex == -1) {
       ElMessage.error("请选中对应的图片进行标引操作!");
       return
@@ -918,7 +917,7 @@ export class CanvasPhotoEditor {
         }
         ctx.fillStyle = photoId?'#fff':'#D9D9D9'; // 黄色
         // 绘制填充矩形
-        ctx.fillRect(pageX + layout.x, itemY, this.rqWidth, layout.height);
+        ctx.fillRect(pageX + layout.x, itemY, layout.width, layout.height);
         // 说明文字占位框
         if (this._selectedPageItem && this._selectedPageItem.pageIndex === pageIndex && this._selectedPageItem.index === itemIndex) {
           ctx.strokeStyle = this.selectedPageColor