From 6af0f7f1b8bdd4e11ce02cca6a3d7c04c088010e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 1 Apr 2024 17:24:54 +0700 Subject: [PATCH] =?UTF-8?q?popup=20=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=9C=E0=B8=B4=E0=B8=94=E0=B8=8A?= =?UTF-8?q?=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/BasicInfo.vue | 21 ++- .../components/DialogSelectAgency.vue | 151 ++++++++++++++++++ 2 files changed, 169 insertions(+), 3 deletions(-) create mode 100644 src/modules/15_development/components/DialogSelectAgency.vue diff --git a/src/modules/15_development/components/BasicInfo.vue b/src/modules/15_development/components/BasicInfo.vue index 90022418a..ab7f6ee68 100644 --- a/src/modules/15_development/components/BasicInfo.vue +++ b/src/modules/15_development/components/BasicInfo.vue @@ -4,6 +4,8 @@ import { useQuasar } from "quasar"; import type { FormBasicinfo } from "@/modules/15_development/interface/request/Main"; +import DialogSelectAgency from "@/modules/15_development/components/DialogSelectAgency.vue"; + import { useCounterMixin } from "@/stores/mixin"; const $q = useQuasar(); @@ -11,7 +13,7 @@ const { showLoader, hideLoader, dialogConfirm } = useCounterMixin(); const formData = reactive({ year: new Date().getFullYear(), - org: "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานครกองบริหารทั้วไป", + org: "", projectName: "", reason: "", objective: "", @@ -25,6 +27,14 @@ function onSubmit() { dialogConfirm($q, () => {}); } +const modalDialogSelect = ref(false); +function selectAgency() { + modalDialogSelect.value = true; +} +function updateAgency(name: string) { + formData.org = name; +} + onMounted(() => { console.log("ข้อมูลเบื้องต้น"); }); @@ -66,14 +76,14 @@ onMounted(() => {
- diff --git a/src/modules/15_development/components/DialogSelectAgency.vue b/src/modules/15_development/components/DialogSelectAgency.vue new file mode 100644 index 000000000..516fc1855 --- /dev/null +++ b/src/modules/15_development/components/DialogSelectAgency.vue @@ -0,0 +1,151 @@ + + + +