|
@@ -9,6 +9,7 @@ const gw_id = route.query.gw_id
|
|
|
const detailData = ref({})
|
|
|
const shjl = ref([])
|
|
|
|
|
|
+let pdfHeight = $ref('')
|
|
|
function getData() {
|
|
|
showLoadingToast({
|
|
|
message: '加载中...',
|
|
@@ -31,6 +32,12 @@ function getData() {
|
|
|
scrollEnable: false,
|
|
|
zoomEnable: false,
|
|
|
})
|
|
|
+ pdfh5.on('complete', (status, msg) => {
|
|
|
+ const height = document.getElementsByClassName("pageContainer")[0].style['min-height'];
|
|
|
+ const num = document.getElementsByClassName("pageContainer").length
|
|
|
+ pdfHeight = parseFloat(height) * num + 50
|
|
|
+ });
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
getData()
|
|
@@ -208,7 +215,7 @@ function dialogSubmit() {
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pdfContent" />
|
|
|
+ <div id="pdfContent" :style="{ height: pdfHeight + 'px' }" />
|
|
|
<van-dialog v-model:show="auditDialogShow" title="审核" confirm-button-text="提交" show-cancel-button
|
|
|
:before-close="beforeCloseDialog">
|
|
|
<div class="dialogDiv">
|