style:证书预览
Showing
2 changed files
with
7 additions
and
5 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-29 09:22:33 | 4 | * @LastEditTime: 2023-08-29 09:50:32 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | 7 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> |
... | @@ -185,15 +185,16 @@ | ... | @@ -185,15 +185,16 @@ |
185 | that.ruleForm.tmpcontent = document.getElementById("S1").value; | 185 | that.ruleForm.tmpcontent = document.getElementById("S1").value; |
186 | if (that.ruleForm.tmpno == 'zsdy') { | 186 | if (that.ruleForm.tmpno == 'zsdy') { |
187 | LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcqzs2.jpg'>"); | 187 | LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcqzs2.jpg'>"); |
188 | LODOP.SET_SHOW_MODE("BKIMG_PRINT", 1);//打印包含背景图 | ||
189 | LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "B4", 1); | ||
190 | } else if (that.ruleForm.tmpno == 'zmdy') { | 188 | } else if (that.ruleForm.tmpno == 'zmdy') { |
191 | LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcdjzm.jpg'>"); | 189 | LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcdjzm.jpg'>"); |
192 | LODOP.SET_SHOW_MODE("BKIMG_PRINT", 1);//打印包含背景图 | ||
193 | } | 190 | } |
191 | LODOP.SET_SHOW_MODE("BKIMG_PRINT", 1);//打印包含背景图 | ||
194 | that.loadStatus = '2'; | 192 | that.loadStatus = '2'; |
195 | }, 1000); | 193 | }, 1000); |
196 | }; | 194 | }; |
195 | if (['zsdy', 'zmdy'].includes(that.ruleForm.tmpno)) { | ||
196 | LODOP.SET_PRINT_MODE("RESELECT_ORIENT", true); // 设置为横向打印 | ||
197 | } | ||
197 | LODOP.PRINT_DESIGN(); //打印设计或者打印维护需要放到最后 | 198 | LODOP.PRINT_DESIGN(); //打印设计或者打印维护需要放到最后 |
198 | } | 199 | } |
199 | } | 200 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-28 17:18:19 | 4 | * @LastEditTime: 2023-08-29 09:56:47 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;"> | 7 | <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;"> |
... | @@ -124,6 +124,7 @@ | ... | @@ -124,6 +124,7 @@ |
124 | drawTextOnImage () { | 124 | drawTextOnImage () { |
125 | function getByteLen (val) { | 125 | function getByteLen (val) { |
126 | var len = 0; | 126 | var len = 0; |
127 | if (!val) return len; | ||
127 | for (var i = 0; i < val.length; i++) { | 128 | for (var i = 0; i < val.length; i++) { |
128 | var length = val.charCodeAt(i); | 129 | var length = val.charCodeAt(i); |
129 | if (length >= 0 && length <= 128) { | 130 | if (length >= 0 && length <= 128) { | ... | ... |
-
Please register or sign in to post a comment