Explorar el Código

签章不出现的问题

lishihao hace 2 años
padre
commit
3cc7b75dc5
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  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);
+                        }
+                    };
                 }
             }
         }