Refactoring code module 11_discipline
This commit is contained in:
parent
202fbf27b6
commit
9653ae78cb
58 changed files with 1021 additions and 1305 deletions
|
|
@ -1,12 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, onMounted } from "vue";
|
||||
import { VuePDF, usePDF } from "@tato30/vue-pdf";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRoute } from "vue-router";
|
||||
import { useQuasar } from "quasar";
|
||||
import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
|
||||
import { VuePDF, usePDF } from "@tato30/vue-pdf";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useReportDataStore } from "@/modules/11_discipline/store/ReportStore";
|
||||
|
||||
import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
|
||||
|
||||
const date = ref<Date>();
|
||||
const dateEnd = ref<Date>();
|
||||
const route = useRoute();
|
||||
|
|
@ -17,7 +18,6 @@ const mixin = useCounterMixin();
|
|||
const { date2Thai } = mixin;
|
||||
const { filterFnOptionsType } = store;
|
||||
|
||||
const $q = useQuasar();
|
||||
const ocSelect = ref<string>("");
|
||||
const government = ref<string>("");
|
||||
const fault = ref<string>();
|
||||
|
|
@ -32,16 +32,6 @@ function backHistory() {
|
|||
window.history.back();
|
||||
}
|
||||
|
||||
/** แสดงรายงาน */
|
||||
function showDocument(url: any) {
|
||||
const pdfData = usePDF(url);
|
||||
|
||||
setTimeout(() => {
|
||||
pdfSrc.value = pdfData.pdf.value;
|
||||
numOfPages.value = pdfData.pages.value;
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
/** ไปหน้าต่อไปของรายงาน */
|
||||
function nextPage() {
|
||||
if (page.value < numOfPages.value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue