ec72973f by renchao@pashanhoo.com

style:证书预览

1 parent e99f44d5
......@@ -34,7 +34,6 @@
<script>
import config from "./tableSelect";
export default {
props: {
modelValue: null,
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-25 10:33:16
* @LastEditTime: 2023-06-29 16:31:57
-->
<template>
<div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;">
<!-- 表单部分 -->
<el-tabs v-model="activeName" @tab-click="handleClick" v-if="headTabBdcqz.length >1">
<el-tab-pane :label="item.qlr + '(' + item.bdcqzh + ')'" :name="item.bdcqzlx"
v-for="(item, index) in headTabBdcqz" :key="index"></el-tab-pane>
<el-tab-pane :label="item.qlr + (item.bdcqzh !== null ? '(' + item.bdcqzh + ')' : '')" :name="item.bsmBdcqz"
v-for="(item, index) in headTabBdcqz" :key="index">
</el-tab-pane>
</el-tabs>
<div class="no-data" v-if="headTabBdcqz.length == 0">暂无数据</div>
<canvas ref="zs" width="1000" v-show="activeName=='1'" height="700"></canvas>
......@@ -49,7 +50,7 @@
ruleForm: {
bsmBdcqz: '',
szmc: '不动产权证书',
bdcqzlx: '',
bsmBdcqz: '',
szzh: '',
ysxlh: '',
},
......@@ -77,7 +78,7 @@
getSlsqBdcqzList({ bsmSlsq: this.formData.bsmSlsq }).then(res => {
if (res.code == 200) {
if (res.result && res.result.length > 0) {
this.activeName = res.result[0].bdcqzlx
this.activeName = res.result[0].bsmBdcqz
this.bdcqz = res.result[0]
this.headTabBdcqz = res.result
if (this.activeName == 1) {
......@@ -93,7 +94,7 @@
//tab表头切换方法
handleClick (e) {
this.bdcqz = this.headTabBdcqz[e.index - 0]
this.activeName = this.headTabBdcqz.bdcqzlx
this.activeName = this.headTabBdcqz.bsmBdcqz
if (this.activeName == '1') {
this.drawTextOnImage()
} else {
......