bug处理
parent
30d952c795
commit
b210efdb5c
|
@ -139,10 +139,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bbg">接受交底人</td>
|
<td class="bbg">接受交底人</td>
|
||||||
<td colspan="10">
|
<td colspan="10">
|
||||||
<div v-if="pd.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
<div v-for="item in imgList" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -176,13 +176,13 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr v-if="imgList1.length>0">
|
||||||
<td colspan="6">
|
<td colspan="10">
|
||||||
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
||||||
<div style="text-align: right">
|
<div v-for="item in imgList1" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -208,6 +208,8 @@ export default {
|
||||||
pd: [], // 存放字段参数
|
pd: [], // 存放字段参数
|
||||||
measuresList: [],
|
measuresList: [],
|
||||||
gasList: [],
|
gasList: [],
|
||||||
|
imgList: [],
|
||||||
|
imgList1: [],
|
||||||
otherProtectiveMeasures: []
|
otherProtectiveMeasures: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -248,6 +250,8 @@ export default {
|
||||||
this.pd = data.pd // 参数map
|
this.pd = data.pd // 参数map
|
||||||
this.measuresList = data.measuresList // 参数map
|
this.measuresList = data.measuresList // 参数map
|
||||||
this.gasList = data.gasList // 参数map
|
this.gasList = data.gasList // 参数map
|
||||||
|
this.imgList = data.imgList
|
||||||
|
this.imgList1 = data.imgList1
|
||||||
this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
||||||
this.pd.AUDIT_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
this.pd.AUDIT_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
||||||
this.pd.APPROVE_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
|
this.pd.APPROVE_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
<td class="bbg">关联的其他特殊作业及安全作业票编号</td>
|
<td class="bbg">关联的其他特殊作业及安全作业票编号</td>
|
||||||
<td colspan="5">{{ pd.SPECIAL_WORK }}</td>
|
<td colspan="5">{{ pd.SPECIAL_WORK }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr/>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bbg">风险辨识结果</td>
|
<td class="bbg">风险辨识结果</td>
|
||||||
<td colspan="5">{{ pd.HAZARD_IDENTIFICATION }}</td>
|
<td colspan="5">{{ pd.HAZARD_IDENTIFICATION }}</td>
|
||||||
|
@ -83,7 +84,7 @@
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
||||||
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -127,10 +128,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bbg">接受交底人</td>
|
<td class="bbg">接受交底人</td>
|
||||||
<td colspan="10">
|
<td colspan="10">
|
||||||
<div v-if="pd.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
<div v-for="item in imgList" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -174,19 +175,19 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="pd.ACCEPT_USER_SIGNER_PATH">
|
<tr v-if="imgList1.length>0">
|
||||||
<td colspan="6">
|
<td colspan="10">
|
||||||
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
||||||
<div style="text-align: right">
|
<div v-for="item in imgList1" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="ui-height" />-->
|
<div style="padding-top: 100px"/>
|
||||||
<div class="ui-foot">
|
<div class="ui-foot">
|
||||||
<!-- <el-button v-print="'#printTest'" v-if="pd.APPLY_STATUS==4">打 印</el-button>-->
|
<!-- <el-button v-print="'#printTest'" v-if="pd.APPLY_STATUS==4">打 印</el-button>-->
|
||||||
<el-button icon="el-icon-arrow-left" @click="goBack">返 回</el-button>
|
<el-button icon="el-icon-arrow-left" @click="goBack">返 回</el-button>
|
||||||
|
@ -204,6 +205,8 @@ export default {
|
||||||
HOISTING_ID: this.$parent.HOISTING_ID, // 主键ID
|
HOISTING_ID: this.$parent.HOISTING_ID, // 主键ID
|
||||||
pd: [], // 存放字段参数
|
pd: [], // 存放字段参数
|
||||||
measuresList: [],
|
measuresList: [],
|
||||||
|
imgList: [],
|
||||||
|
imgList1: [],
|
||||||
otherProtectiveMeasures: []
|
otherProtectiveMeasures: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -269,6 +272,8 @@ export default {
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.pd = data.pd // 参数map
|
this.pd = data.pd // 参数map
|
||||||
|
this.imgList = data.imgList
|
||||||
|
this.imgList1 = data.imgList1
|
||||||
this.measuresList = this.handleStr(data.measuresList) // 参数map
|
this.measuresList = this.handleStr(data.measuresList) // 参数map
|
||||||
this.pd.LEADER_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
this.pd.LEADER_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
||||||
this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
||||||
|
@ -299,6 +304,4 @@ export default {
|
||||||
img
|
img
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 100%
|
height: 100%
|
||||||
.app-container
|
|
||||||
margin-bottom: 50px
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div>
|
<div>
|
||||||
<div id="printTest" class="app-container print-work">
|
<div id="printTest" class="app-container print-work">
|
||||||
<el-page-header content="审批表详情" class="no-print" @back="goBack"/>
|
<el-page-header content="审批表详情" class="no-print" @back="goBack"/>
|
||||||
<table class="table-ui">
|
<div v-for="pdf in 2" :key="pdf" :name="pdf === 2 ? 'pdf-box' : ''" class="pdf-content">
|
||||||
<thead>
|
<table :class="['table-ui','table-ui' + pdf]">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="6" style="border: none">
|
<td colspan="6" style="border: none">
|
||||||
<div class="level-title mt-20">
|
<div class="level-title mt-20">
|
||||||
|
@ -12,7 +12,6 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bbg">作业申请单位</td>
|
<td class="bbg">作业申请单位</td>
|
||||||
<td>{{ pd.APPLY_DEPARTMENT_NAME }}</td>
|
<td>{{ pd.APPLY_DEPARTMENT_NAME }}</td>
|
||||||
|
@ -60,7 +59,7 @@
|
||||||
<td class="bbg">关联的其他特殊作业及安全作业票编号</td>
|
<td class="bbg">关联的其他特殊作业及安全作业票编号</td>
|
||||||
<td colspan="5">{{ pd.SPECIAL_WORK }}</td>
|
<td colspan="5">{{ pd.SPECIAL_WORK }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr/><tr>
|
||||||
<td class="bbg">风险辨识结果</td>
|
<td class="bbg">风险辨识结果</td>
|
||||||
<td colspan="5">{{ pd.HAZARD_IDENTIFICATION }}</td>
|
<td colspan="5">{{ pd.HAZARD_IDENTIFICATION }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -81,7 +80,7 @@
|
||||||
<td>{{ index + 1 }}</td>
|
<td>{{ index + 1 }}</td>
|
||||||
<td>{{ item.PROTECTIVE_MEASURES }}</td>
|
<td>{{ item.PROTECTIVE_MEASURES }}</td>
|
||||||
<td>
|
<td>
|
||||||
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
||||||
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -90,7 +89,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="pd.LEADER_USER_MEASURES || pd.CONFIRM_USER_MEASURES || pd.AUDIT_USER_MEASURES || pd.APPROVE_USER_MEASURES">
|
<tr v-if="pd.LEADER_USER_MEASURES || pd.CONFIRM_USER_MEASURES || pd.AUDIT_USER_MEASURES || pd.APPROVE_USER_MEASURES">
|
||||||
<td>{{ measuresList.length + 1 }}</td>
|
<td>{{ measuresList.length + 1 }}</td>
|
||||||
<td colspan="2">
|
<td colspan="3">
|
||||||
<div v-if="pd.LEADER_USER_MEASURES" style="display: flex;justify-content: space-between;">
|
<div v-if="pd.LEADER_USER_MEASURES" style="display: flex;justify-content: space-between;">
|
||||||
<span>其他安全措施:{{ pd.LEADER_USER_MEASURES }}</span>
|
<span>其他安全措施:{{ pd.LEADER_USER_MEASURES }}</span>
|
||||||
<span>编制人:{{ pd.LEADER_USER_NAME }}</span>
|
<span>编制人:{{ pd.LEADER_USER_NAME }}</span>
|
||||||
|
@ -125,10 +124,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bbg">接受交底人</td>
|
<td class="bbg">接受交底人</td>
|
||||||
<td colspan="10">
|
<td colspan="10">
|
||||||
<div v-if="pd.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
<div v-for="item in imgList" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -172,22 +171,23 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr v-if="imgList1.length>0">
|
||||||
<td colspan="6">
|
<td colspan="10">
|
||||||
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
||||||
<div style="text-align: right">
|
<div v-for="item in imgList1" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div style="padding-top: 100px"/>
|
<div style="padding-top: 100px"/>
|
||||||
<!-- <div class="ui-height" />-->
|
|
||||||
<div class="ui-foot">
|
<div class="ui-foot">
|
||||||
<el-button v-print="'#printTest'" icon="el-icon-printer" type="primary">打 印</el-button>
|
<!-- <el-button v-print="'#printTest'" icon="el-icon-printer" type="primary">打 印</el-button>-->
|
||||||
|
<el-button type="primary" icon="el-icon-printer" @click="handle2PDF">PDF导出</el-button>
|
||||||
<el-button icon="el-icon-arrow-left" @click="goBack">返 回</el-button>
|
<el-button icon="el-icon-arrow-left" @click="goBack">返 回</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -196,6 +196,8 @@
|
||||||
<script>
|
<script>
|
||||||
import { requestFN } from '@/utils/request'
|
import { requestFN } from '@/utils/request'
|
||||||
import dateformat from '@/utils/dateformat'
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import JsPDF from 'jspdf'
|
||||||
|
import html2Canvas from 'html2canvas'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -203,6 +205,8 @@ export default {
|
||||||
HOISTING_ID: this.$parent.HOISTING_ID, // 主键ID
|
HOISTING_ID: this.$parent.HOISTING_ID, // 主键ID
|
||||||
pd: [], // 存放字段参数
|
pd: [], // 存放字段参数
|
||||||
measuresList: [],
|
measuresList: [],
|
||||||
|
imgList: [],
|
||||||
|
imgList1: [],
|
||||||
otherProtectiveMeasures: []
|
otherProtectiveMeasures: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -210,6 +214,85 @@ export default {
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handle2PDF() {
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '正在生成,请稍候...',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
const elements = document.querySelectorAll('div[name="pdf-box"]')
|
||||||
|
console.log(elements)
|
||||||
|
this.html2pdf(this.pd.CHECK_NO + '审批表详情', elements, loading)
|
||||||
|
},
|
||||||
|
|
||||||
|
html2pdf(filename, els, loading) {
|
||||||
|
const flagArr = []
|
||||||
|
for (let i = 0, len = els.length; i < len; i++) {
|
||||||
|
flagArr.push(0)
|
||||||
|
}
|
||||||
|
console.log(flagArr)
|
||||||
|
runself(0)
|
||||||
|
const pdf = new JsPDF('', 'pt', 'a4') // A4纸,纵向
|
||||||
|
function runself(index) {
|
||||||
|
const html = els[index]
|
||||||
|
html2Canvas(html, {
|
||||||
|
allowTaint: true,
|
||||||
|
taintTest: false,
|
||||||
|
logging: false,
|
||||||
|
useCORS: true,
|
||||||
|
scale: 2 // 按比例增加分辨率
|
||||||
|
}).then(canvas => {
|
||||||
|
// eslint-disable-next-line one-var
|
||||||
|
var ctx = canvas.getContext('2d'),
|
||||||
|
a4w = 532.28, a4h = 781.89, // A4大小,210mm x 297mm,四边各保留10mm的边距,显示区域190x277 pt:592.28 * 841.89
|
||||||
|
renderedHeight = 0
|
||||||
|
const allTrs = html.querySelectorAll('tr')
|
||||||
|
while (renderedHeight < canvas.height) {
|
||||||
|
let imgHeight = Math.floor(a4h * canvas.width / a4w) // 按A4显示比例换算一页图像的像素高度
|
||||||
|
for (let i = 0; i < allTrs.length; i++) {
|
||||||
|
const tr = allTrs[i]
|
||||||
|
const trHeight = tr.offsetHeight + tr.offsetTop
|
||||||
|
console.log('offsetHeight:' + tr.offsetHeight + 'offsetTop:' + tr.offsetTop + 'offsetParent:' + tr.offsetParent.offsetTop)
|
||||||
|
if (trHeight * 2 > (imgHeight + renderedHeight)) {
|
||||||
|
const btr = allTrs[i - 1]
|
||||||
|
const btrHeight = btr.offsetHeight + btr.offsetTop
|
||||||
|
console.log('i:' + (i - 1) + 'btrHeight:' + btrHeight)
|
||||||
|
imgHeight = btrHeight * 2 - renderedHeight
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var page = document.createElement('canvas')
|
||||||
|
page.width = canvas.width
|
||||||
|
page.height = Math.min(imgHeight, canvas.height - renderedHeight)// 可能内容不足一页
|
||||||
|
|
||||||
|
// 用getImageData剪裁指定区域,并画到前面创建的canvas对象中
|
||||||
|
page.getContext('2d').putImageData(ctx.getImageData(0, renderedHeight, canvas.width, Math.min(imgHeight, canvas.height - renderedHeight)), 0, 0)
|
||||||
|
pdf.addImage(page.toDataURL('image/jpeg', 1.0), 'JPEG', 30, 30, a4w, Math.min(a4h, a4w * page.height / page.width)) // 添加图像到页面,保留10mm边距
|
||||||
|
|
||||||
|
renderedHeight += imgHeight
|
||||||
|
if (renderedHeight < canvas.height) {
|
||||||
|
pdf.addPage()// 如果后面还有内容,添加一个空页
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (index < els.length - 1) {
|
||||||
|
pdf.addPage()
|
||||||
|
}
|
||||||
|
return 1
|
||||||
|
}).then(item => {
|
||||||
|
flagArr[index] = item
|
||||||
|
if (flagArr.every(f => f === 1)) {
|
||||||
|
pdf.save(filename)
|
||||||
|
}
|
||||||
|
index++
|
||||||
|
if (index < els.length) {
|
||||||
|
runself(index)
|
||||||
|
} else {
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
handleStr(measuresList) {
|
handleStr(measuresList) {
|
||||||
for (let i = 0; i < measuresList.length; i++) {
|
for (let i = 0; i < measuresList.length; i++) {
|
||||||
// 将字符串转成数组
|
// 将字符串转成数组
|
||||||
|
@ -268,6 +351,8 @@ export default {
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.pd = data.pd // 参数map
|
this.pd = data.pd // 参数map
|
||||||
|
this.imgList = data.imgList
|
||||||
|
this.imgList1 = data.imgList1
|
||||||
this.measuresList = this.handleStr(data.measuresList)// 参数map
|
this.measuresList = this.handleStr(data.measuresList)// 参数map
|
||||||
this.pd.LEADER_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
this.pd.LEADER_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
||||||
this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
||||||
|
@ -299,3 +384,27 @@ export default {
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 100%
|
height: 100%
|
||||||
</style>
|
</style>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.table-ui td{
|
||||||
|
line-height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-content[name=pdf-box]{
|
||||||
|
position: absolute;
|
||||||
|
left: -999999px;
|
||||||
|
.level-title {
|
||||||
|
h1{
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.level-code{
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
td{
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.bbg {
|
||||||
|
width: 180px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue