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(() => { + + + + + + + +
+
+ + + + + +
+
+ +
+
+ +
+
+
+ + + + +
+
+