refector: 导出作业pdf样式优化

This commit is contained in:
caoqianming 2023-03-27 14:21:08 +08:00
parent 3e85c7771c
commit ec38844851
1 changed files with 6 additions and 6 deletions

View File

@ -117,19 +117,19 @@
<tr class="tableTh tableThS">
<td class="tableTd">序号</td>
<td class="tableTd" style="width:100px">姓名</td>
<td class="tableTd">工作职责</td>
<td class="tableTd" style="width:120px">工作职责</td>
<td class="tableTd" style="flex: auto;">证书</td>
<td class="tableTd">创建时间</td>
<td class="tableTd" style="width:180px">创建时间</td>
</tr>
<tr v-if="workerData.length==0" class="noDataTr"> 无数据</tr>
<tr class="tableTr tableTrS" v-for="(item,index) in workerData" :key="item.id">
<td class="tableTd">{{ index+1 }}</td>
<td class="tableTd" >{{ index+1 }}</td>
<td class="tableTd" style="width:100px">{{ item.worker_.name }}</td>
<td class="tableTd">{{ item.duty }}</td>
<td class="tableTd" style="width:120px">{{ item.duty }}</td>
<td class="tableTd" style="flex: auto;">
<span v-for="cer in item.certificates_" :key="cer.number">{{cer.name}}-{{cer.number }}</span>
</td>
<td class="tableTd">{{ item.create_time }}</td>
<td class="tableTd" style="width:180px">{{ item.create_time }}</td>
</tr>
</table>
<p class="tables-title">气体检测记录</p>
@ -285,7 +285,7 @@
handleExport() {
let exportDiv = document.getElementById('exportDiv') // id
this.pdfDownLoader = new PdfLoader(exportDiv, '作业许可证', 'exportDiv') // fileName -->, question-table -->class
this.pdfDownLoader.outPutPdfFn('许可证');
this.pdfDownLoader.outPutPdfFn(this.form.number);
exportDiv.style.width = "100%"
},