From 0d9cb4906684631f299ed867e14340ebef92a552 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Thu, 11 Apr 2024 10:09:22 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B9=82=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3/=E0=B8=AB?= =?UTF-8?q?=E0=B8=A5=E0=B8=B1=E0=B8=81=E0=B8=AA=E0=B8=B9=E0=B8=95=E0=B8=A3?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9D=E0=B8=B6=E0=B8=81=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/15_development/views/MainPage.vue | 111 ++++++++++++++++-- 1 file changed, 103 insertions(+), 8 deletions(-) diff --git a/src/modules/15_development/views/MainPage.vue b/src/modules/15_development/views/MainPage.vue index 60d658f35..3bdd4608d 100644 --- a/src/modules/15_development/views/MainPage.vue +++ b/src/modules/15_development/views/MainPage.vue @@ -4,6 +4,7 @@ import { useQuasar, type QTableProps } from "quasar"; import { useRouter } from "vue-router"; import http from "@/plugins/http"; import config from "@/app.config"; +import DialogHeader from "@/components/DialogHeader.vue"; import genReportXLSX from "@/plugins/genreportxlsx"; @@ -24,6 +25,10 @@ const $q = useQuasar(); const router = useRouter(); const { showLoader, hideLoader, messageError } = useCounterMixin(); +const modal = ref(false); +const projectName = ref(""); +const orgName = ref(""); +const year = ref(0); /** หัวตาราง */ const rows = ref([]); // ข้อมูลรายการ const columns = ref([ @@ -123,6 +128,9 @@ function onClickAddOrView(status: boolean = false, id: string = "") { status ? router.push(`/development/${id}`) : router.push("/development/add"); } +function onAdd() { + modal.value = true; +} /** * function updatePagination * @param newPagination ข้อมูล Pagination ใหม่ @@ -164,6 +172,18 @@ function onDownload() { }); } +function closeDialog() { + modal.value = false; + year.value = 0; + orgName.value = ""; + projectName.value = ""; +} + +/** dialog submit */ +function onSubmit() { + router.push("/development/add"); +} + onMounted(() => { fetchListProject(); }); @@ -232,14 +252,7 @@ onMounted(() => { @update:model-value="fetchListProjectNew" /> - + เพิ่ม @@ -381,6 +394,88 @@ onMounted(() => { + + + + + + + +
+
+ + + + + +
+
+ +
+
+ +
+
+
+ + + + +
+
+