no message
This commit is contained in:
parent
d5ee366ea2
commit
995a09c1f5
4 changed files with 59 additions and 12 deletions
|
|
@ -422,10 +422,15 @@ import { VuePDF, usePDF } from "@tato30/vue-pdf";
|
|||
import type { PDFDocumentLoadingTask } from "pdfjs-dist/types/src/display/api";
|
||||
import type { QForm } from "quasar";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRoute } from "vue-router";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai } = mixin;
|
||||
const route = useRoute();
|
||||
|
||||
const orderId_params = route.params.orderid;
|
||||
const dialog = ref<boolean>(false);
|
||||
|
||||
// onUnmounted(() => {
|
||||
|
|
@ -433,8 +438,15 @@ const dialog = ref<boolean>(false);
|
|||
// myEventHandler(e);
|
||||
// });
|
||||
// });
|
||||
|
||||
const orderId = ref<string>("");
|
||||
onMounted(async () => {
|
||||
console.log(orderId_params);
|
||||
if (orderId_params !== undefined) {
|
||||
orderId.value == orderId_params.toString();
|
||||
}
|
||||
|
||||
fetchAttachment(orderId.value);
|
||||
|
||||
// window.addEventListener("resize", (e: any) => {
|
||||
// myEventHandler(e);
|
||||
// });
|
||||
|
|
@ -447,6 +459,15 @@ onMounted(async () => {
|
|||
}, 1000);
|
||||
});
|
||||
|
||||
const fetchAttachment = async (orderId: string) => {
|
||||
console.log(123);
|
||||
await http
|
||||
.get(config.API.attachmentOrder("08db94be-f7c6-43e2-83eb-3c5cef3a91c7"))
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
});
|
||||
};
|
||||
|
||||
// const myEventHandler = (e: any) => {
|
||||
// console.log("e", e.target.innerWidth);
|
||||
// if (vuePDFRef !== null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue