|
@@ -151,13 +151,15 @@
|
|
|
>
|
|
|
<template #action="{ row }">
|
|
|
<el-link
|
|
|
- v-if="AppTheme === 'light'" class="mylink" type="primary"
|
|
|
+ v-if="AppTheme === 'light'" v-loading="row.consultLoading" class="mylink"
|
|
|
+ type="primary"
|
|
|
@click.stop="consultFileClick(row, 1)"
|
|
|
>
|
|
|
查阅案卷
|
|
|
</el-link>
|
|
|
<el-button
|
|
|
- v-else size="small" type="primary"
|
|
|
+ v-else v-loading="row.consultLoading" size="small"
|
|
|
+ type="primary"
|
|
|
@click.stop="consultFileClick(row, 1)"
|
|
|
>
|
|
|
查阅案卷
|
|
@@ -340,7 +342,7 @@
|
|
|
<div class="hc-carry-spot-checks-pdf">
|
|
|
<!-- <HcPdf src="https://bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload/20221212/ce9799c7d18efc03efefd6f242439f2e.pdf"/> -->
|
|
|
<div v-loading="pdfLoading" class="relative h-full w-full">
|
|
|
- <hc-pdfs :url="pdfUrl" />
|
|
|
+ <hc-pdfs v-if="isShowPdf" :url="pdfUrl" />
|
|
|
</div>
|
|
|
<el-tooltip :disabled="!isBubble" content="展开/收起 右侧目录" placement="top">
|
|
|
<div class="hc-csc-pdf-btn" @click="onCarryDataShow">
|
|
@@ -395,8 +397,8 @@
|
|
|
v-if="tabTypeKey === 'tab1'" :column="cscTableColumn1" :datas="cscTableData1"
|
|
|
:is-arr-index="false" :loading="cscTableLoading" is-new
|
|
|
>
|
|
|
- <template #name="{ row }">
|
|
|
- <div :class="row.id === checkId ? 'bg-orange-400' : 'text-hover'" @click="changePdf(row)">
|
|
|
+ <template #name="{ row, index }">
|
|
|
+ <div :class="row.id === checkId ? 'bg-orange-400' : 'text-hover'" @click="changePdf(row, index)">
|
|
|
{{ row?.fileName }}
|
|
|
</div>
|
|
|
</template>
|
|
@@ -1176,9 +1178,13 @@ const consultFileClick = async (row, type) => {
|
|
|
|
|
|
if (type === 1) {
|
|
|
//查阅案卷
|
|
|
+ row.consultLoading = true
|
|
|
+
|
|
|
getArchivesAutoView(row.id)
|
|
|
fileInfo.value = row
|
|
|
await getArchiveFileListData()
|
|
|
+ //查阅案卷
|
|
|
+ row.consultLoading = false
|
|
|
isCarrySpotChecksDrawer.value = true
|
|
|
// const url = await viewPdf(row.id, row)
|
|
|
// pdfUrl.value = url
|
|
@@ -1206,13 +1212,19 @@ const fileInfo = ref({
|
|
|
time: '',
|
|
|
pageN: 0,
|
|
|
})//案卷信息
|
|
|
+const isShowPdf = ref(true)
|
|
|
+const changePdf = (row, index) => {
|
|
|
|
|
|
-const changePdf = (row) => {
|
|
|
- console.log(row, 'row')
|
|
|
if (pdfLoading.value === true) {
|
|
|
pdfLoading.value = false
|
|
|
}
|
|
|
+ isShowPdf.value = false
|
|
|
+ setTimeout(() => {
|
|
|
+ isShowPdf.value = true
|
|
|
+ }, 100)
|
|
|
pdfUrl.value = row['pdfFileUrl'] || ''
|
|
|
+
|
|
|
+
|
|
|
checkId.value = row.id
|
|
|
isFile.value = 2
|
|
|
getmetaInfo(checkId.value)
|