diff --git a/src/components/ViewPDF.vue b/src/components/ViewPDF.vue index 3b4c60000..26f1b456b 100644 --- a/src/components/ViewPDF.vue +++ b/src/components/ViewPDF.vue @@ -3,6 +3,7 @@ import { ref, watch, computed, onUnmounted } from "vue"; import { useQuasar } from "quasar"; import { VuePDF, usePDF } from "@tato30/vue-pdf"; import axios from "axios"; +import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; @@ -28,6 +29,9 @@ const currentObjectUrl = ref(null); // Computed properties for navigation const canGoPrevious = computed(() => page.value > 1); const canGoNext = computed(() => page.value < numOfPages.value); +const pageInfo = computed( + () => `หน้าที่ ${page.value} จาก ${numOfPages.value}` +); /** * Navigate to previous page @@ -160,57 +164,102 @@ onUnmounted(() => { transition-show="slide-up" transition-hide="slide-down" > - - + + + -
- - - - หน้า {{ page }} / {{ numOfPages || "-" }} - - - -
- + -
- + +
+ + + + + {{ pageInfo }} + + + + +
+ + +
+ +
+ + +
+ + + + + {{ pageInfo }} + + + +
- -
- + + +
+
+ +
+
- {