Browse Source

签章不出现的问题

lishihao 2 năm trước cách đây
mục cha
commit
3cc7b75dc5
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 13 0
      app/public/report/js/jpc_output.js

+ 13 - 0
app/public/report/js/jpc_output.js

@@ -471,6 +471,19 @@ let JpcCanvasOutput = {
                 };
                 img.onerror = function() {
                     console.log('cell.path error: ' + cell.path);
+                    const noCroimg = new Image();
+                    if (cell.path.indexOf(OSS_PATH) < 0 && cell.path[0] !== '/') {
+                        noCroimg.src = OSS_PATH + cell.path;
+                    } else {
+                        noCroimg.src = cell.path;
+                    }
+                    noCroimg.onload = function() {
+                        if (cell.signature_name.indexOf(JV.SIGNATURE_NAME_DUMMY) >= 0) {
+                            private_drawImage(cell, control, noCroimg,moveSignatureTool, (!!cell.isStamp), [1, 1, 1, 1]);
+                        } else {
+                            private_drawImage(cell, control, noCroimg,moveSignatureTool);
+                        }
+                    };
                 }
             }
         }