59941756 by renchao@pashanhoo.com

style:证书预览打印

1 parent c47d1fe2
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-30 10:33:52 4 * @LastEditTime: 2023-08-30 17:07:26
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;">
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
13 </el-tabs> 13 </el-tabs>
14 <el-empty description="暂无数据" v-if="headTabBdcqz.length == 0 && noData"></el-empty> 14 <el-empty description="暂无数据" v-if="headTabBdcqz.length == 0 && noData"></el-empty>
15 <div style="width:1180px;"> 15 <div style="width:1180px;">
16 <canvas ref="zs" width="1000" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx==1" height="700"></canvas> 16 <canvas ref="zs" width="1000" v-show="this.bdcqz.bdcqzlx==1" height="700"></canvas>
17 <canvas ref="zm" width="1180" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx!=1" height="780"></canvas> 17 <canvas ref="zm" width="1180" v-show="this.bdcqz.bdcqzlx==2" height="780"></canvas>
18 </div> 18 </div>
19 </div> 19 </div>
20 </template> 20 </template>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
93 this.activeName = res.result[0].bsmBdcqz 93 this.activeName = res.result[0].bsmBdcqz
94 this.bdcqz = res.result[0] 94 this.bdcqz = res.result[0]
95 this.headTabBdcqz = res.result 95 this.headTabBdcqz = res.result
96 if (res.result[0].bdcqzlx == 1) { 96 if (this.bdcqz.bdcqzlx == 1) {
97 this.drawTextOnImage() 97 this.drawTextOnImage()
98 } else { 98 } else {
99 this.drawTextzmImage() 99 this.drawTextzmImage()
...@@ -108,9 +108,8 @@ ...@@ -108,9 +108,8 @@
108 * @param {*} e 108 * @param {*} e
109 * @author: renchao 109 * @author: renchao
110 */ 110 */
111 handleClick (e) { 111 handleClick (tab, event) {
112 this.bdcqz = this.headTabBdcqz[e.index - 0] 112 this.bdcqz = this.headTabBdcqz[tab.index]
113 this.activeName = this.headTabBdcqz.bsmBdcqz
114 if (this.bdcqz.bdcqzlx == 1) { 113 if (this.bdcqz.bdcqzlx == 1) {
115 this.drawTextOnImage() 114 this.drawTextOnImage()
116 } else { 115 } else {
...@@ -461,19 +460,20 @@ ...@@ -461,19 +460,20 @@
461 arr.push(currentLine); 460 arr.push(currentLine);
462 if (i > 0) { 461 if (i > 0) {
463 arr.forEach((line, index) => { 462 arr.forEach((line, index) => {
464 context.fillText(line, 770, 438 + (23 * (i - 1)) + 5 * num + (index * 18)); // 调整行高 463 context.fillText(line, 770, 428 + (23 * (i - 1)) + 5 * num + (index * 14)); // 调整行高
465 }) 464 })
466 } else { 465 } else {
467 arr.forEach((line, index) => { 466 arr.forEach((line, index) => {
468 context.fillText(line, 770, 438 + (23 * (i - 1)) + (index * 18)); // 调整行高 467 context.fillText(line, 770, 428 + (23 * (i - 1)) + (index * 14)); // 调整行高
469 }) 468 })
470 } 469 }
471 } else { 470 } else {
472 if (i > 0) { 471 context.fillText(lines[i] ? lines[i] : '', 770, 440 + 4 * num + (22 * (i - 1)));
473 context.fillText(lines[i] ? lines[i] : '', 770, 450 + 5 * num + (23 * (i - 1))); 472 // if (i > 0) {
474 } else { 473 // context.fillText(lines[i] ? lines[i] : '', 770, 440 + 5 * num + (23 * (i - 1)));
475 context.fillText(lines[i] ? lines[i] : '', 770, 450 + (23 * (i - 1))); 474 // } else {
476 } 475 // context.fillText(lines[i] ? lines[i] : '', 770, 440 + (23 * (i - 1)));
476 // }
477 } 477 }
478 } 478 }
479 // fj 479 // fj
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-29 10:03:25 4 * @LastEditTime: 2023-08-30 16:54:26
5 --> 5 -->
6 <template> 6 <template>
7 <div class="szxx"> 7 <div class="szxx">
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
136 store.dispatch('user/reWorkFresh', false) 136 store.dispatch('user/reWorkFresh', false)
137 if (type == 1) { 137 if (type == 1) {
138 //证书预览 138 //证书预览
139 this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "76%", true); 139 this.$popupDialog("证书证明预览", "workflow/components/dialog/zsyl", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "76%", true);
140 } else { 140 } else {
141 this.$popupDialog("证书证明打印", "workflow/components/dialog/zsdy", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "76%", true); 141 this.$popupDialog("证书证明打印", "workflow/components/dialog/zsdy", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "76%", true);
142 } 142 }
......