From d0eff1d615e956dec983e30eaf643668d7a1673d Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 24 Aug 2023 09:11:44 +0700 Subject: [PATCH] no message --- src/api/07_insignia/api.insignia.ts | 1 + .../components/3_result/fileUpload.vue | 22 +++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/api/07_insignia/api.insignia.ts b/src/api/07_insignia/api.insignia.ts index ae391cfb6..7ef069369 100644 --- a/src/api/07_insignia/api.insignia.ts +++ b/src/api/07_insignia/api.insignia.ts @@ -26,6 +26,7 @@ export default { insigniaDashboard: (insigniaPeriodId: string) => `${insignia}/request/dashboard/${insigniaPeriodId}`, // record noteround: () => `${insignia}/request/note`, + requestDocNote: (id:string) => `${insignia}/request/note/doc/${id}`, }; diff --git a/src/modules/07_insignia/components/3_result/fileUpload.vue b/src/modules/07_insignia/components/3_result/fileUpload.vue index b0cf3c634..d745109a8 100644 --- a/src/modules/07_insignia/components/3_result/fileUpload.vue +++ b/src/modules/07_insignia/components/3_result/fileUpload.vue @@ -2,18 +2,16 @@ import { ref, onMounted } from "vue"; import type { QTableProps } from "quasar"; +import http from "@/plugins/http"; +import config from "@/app.config"; + const fileUpload = ref(null); const reason = ref(""); const documentTitle = ref(""); const filterKeyword = ref(""); const filterDoc = ref(null); - const props = defineProps({ - saveData: { - type: Function, - default: () => console.log("not function"), - }, -}); + const visibleColumnsReference = ref([ "no", "fileName", @@ -64,13 +62,23 @@ const rows2 = ref([ file: "", }, ]); + const props = defineProps({ roundId: { type: String, }, }); -onMounted(() => { + +const getRequest = async () => { + await http + .get(config.API.requestDocNote(props.roundId as string)) + .then((res:any) =>{ + console.log(res) + }) +} +onMounted(async() => { console.log(props.roundId); + await getRequest() }); const resetFilterRef = () => { filterKeyword.value = "";