|
@@ -11,7 +11,7 @@
|
|
v-if="needToShowPdf"
|
|
v-if="needToShowPdf"
|
|
v-show="visible"
|
|
v-show="visible"
|
|
class="midPopUp"
|
|
class="midPopUp"
|
|
- @click="visible = false"
|
|
|
|
|
|
+ @click="reset"
|
|
style="z-index: 999999999999 !important"
|
|
style="z-index: 999999999999 !important"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
@@ -56,13 +56,14 @@
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
style="font-size: 20px; margin-right: 20px"
|
|
style="font-size: 20px; margin-right: 20px"
|
|
- @click="visible = false"
|
|
|
|
|
|
+ @click="reset"
|
|
link
|
|
link
|
|
>关闭</el-button
|
|
>关闭</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<el-scrollbar
|
|
<el-scrollbar
|
|
|
|
+ ref="scrollbar"
|
|
style="height: calc(90vh - 40px); width: 90vw; padding: 0px 20px"
|
|
style="height: calc(90vh - 40px); width: 90vw; padding: 0px 20px"
|
|
>
|
|
>
|
|
<VuePdfEmbed
|
|
<VuePdfEmbed
|
|
@@ -160,6 +161,12 @@ const props = defineProps({
|
|
default: 0,
|
|
default: 0,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
+const scrollbar = ref(null);
|
|
|
|
+const reset = () => {
|
|
|
|
+ scrollbar.value.setScrollTop(0);
|
|
|
|
+ visible.value = false;
|
|
|
|
+ loading.value = true;
|
|
|
|
+};
|
|
const loading = ref(true);
|
|
const loading = ref(true);
|
|
const pageLength = ref(0);
|
|
const pageLength = ref(0);
|
|
const pageStatus = ref(true);
|
|
const pageStatus = ref(true);
|