Procházet zdrojové kódy

签章交互问题

Tony Kang před 3 roky
rodič
revize
f1688fa696

+ 6 - 5
app/public/report/js/jpc_output.js

@@ -450,11 +450,12 @@ let JpcCanvasOutput = {
                 };
             } else if (cell.path) {
                 const img = new Image();
-                if (cell.path.indexOf(OSS_PATH) < 0) {
-                    img.src = OSS_PATH + cell.path;
-                } else {
-                    img.src = cell.path;
-                }
+                img.src = cell.path;
+                // if (cell.path.indexOf(OSS_PATH) < 0) {
+                //     img.src = OSS_PATH + cell.path;
+                // } else {
+                //     img.src = cell.path;
+                // }
                 img.crossOrigin = 'anonymous';
                 img.onload = function() {
                     private_drawImage(cell, control, img, (!!cell.isStamp));

+ 3 - 3
app/public/report/js/rpt_signature.js

@@ -666,6 +666,9 @@ let rptSignatureHelper = {
             if (page.signature_cells) {
                 const adHocScells = [];
                 for (const sCell of page.signature_cells) {
+                    sCell.path = null;
+                    sCell.pre_path = null;
+                    sCell.pic = null;
                     for (const role_rel of currRoleRelList) {
                         if (role_rel.signature_name === sCell.signature_name) {
                             // 处理签章
@@ -673,9 +676,6 @@ let rptSignatureHelper = {
                                 role_rel.sign_output = [];
                                 role_rel.sign_output.push(NORMAL_SIGN_STR);
                             }
-                            sCell.path = null;
-                            sCell.pre_path = null;
-                            sCell.pic = null;
                             for (const signType of role_rel.sign_output) {
                                 switch (signType) {
                                     case NORMAL_SIGN_STR: