fe5df734 by renchao@pashanhoo.com

style:证书类型判断

1 parent e5412641
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-06-30 10:41:06 4 * @LastEditTime: 2023-06-30 14:32:40
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;">
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
12 </el-tab-pane> 12 </el-tab-pane>
13 </el-tabs> 13 </el-tabs>
14 <div class="no-data" v-if="headTabBdcqz.length == 0">暂无数据</div> 14 <div class="no-data" v-if="headTabBdcqz.length == 0">暂无数据</div>
15 <canvas ref="zs" width="1000" v-show="activeName=='1'" height="700"></canvas> 15 <canvas ref="zs" width="1000" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx==1" height="700"></canvas>
16 <canvas ref="zm" width="1180" v-show="activeName!='1'" height="780"></canvas> 16 <canvas ref="zm" width="1180" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx!=1" height="780"></canvas>
17 </div> 17 </div>
18 </template> 18 </template>
19 19
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
57 } 57 }
58 }, 58 },
59 mounted () { 59 mounted () {
60 debugger
60 this.columns = datas.columns(); 61 this.columns = datas.columns();
61 if (this.formData.bdcqz) { 62 if (this.formData.bdcqz) {
62 //从缮证进入 63 //从缮证进入
...@@ -81,7 +82,7 @@ ...@@ -81,7 +82,7 @@
81 this.activeName = res.result[0].bsmBdcqz 82 this.activeName = res.result[0].bsmBdcqz
82 this.bdcqz = res.result[0] 83 this.bdcqz = res.result[0]
83 this.headTabBdcqz = res.result 84 this.headTabBdcqz = res.result
84 if (this.activeName == 1) { 85 if (res.result[0].bdcqzlx == 1) {
85 this.drawTextOnImage() 86 this.drawTextOnImage()
86 } else { 87 } else {
87 this.drawTextzmImage() 88 this.drawTextzmImage()
...@@ -161,12 +162,12 @@ ...@@ -161,12 +162,12 @@
161 // ysxlh 162 // ysxlh
162 context.fillText(this.bdcqz.ysxlh ? this.bdcqz.ysxlh : '', 280, 712); 163 context.fillText(this.bdcqz.ysxlh ? this.bdcqz.ysxlh : '', 280, 712);
163 // djsj 164 // djsj
165 if (this.bdcqz.djsj) {
164 let djsjList = this.bdcqz.djsj.split(' ')[0].split('/') 166 let djsjList = this.bdcqz.djsj.split(' ')[0].split('/')
165
166 context.fillText(djsjList[0] ? djsjList[0] : '', 327, 580); 167 context.fillText(djsjList[0] ? djsjList[0] : '', 327, 580);
167 context.fillText(djsjList[1] ? djsjList[1] : '', 393, 580); 168 context.fillText(djsjList[1] ? djsjList[1] : '', 393, 580);
168 context.fillText(djsjList[2] ? djsjList[2] : '', 443, 580); 169 context.fillText(djsjList[2] ? djsjList[2] : '', 443, 580);
169 170 }
170 context.fillText(this.bdcqz.sjjc ? this.bdcqz.sjjc : '', 620, 125); 171 context.fillText(this.bdcqz.sjjc ? this.bdcqz.sjjc : '', 620, 125);
171 context.fillText(this.bdcqz.djnd ? this.bdcqz.djnd : '', 665, 125); 172 context.fillText(this.bdcqz.djnd ? this.bdcqz.djnd : '', 665, 125);
172 context.fillText(this.bdcqz.sxqc ? this.bdcqz.sxqc : '', 750, 125); 173 context.fillText(this.bdcqz.sxqc ? this.bdcqz.sxqc : '', 750, 125);
......