From e022451d75bcab7a201a005ac45fdf454d4a9d4e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 3 Apr 2024 17:51:00 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?/=E0=B8=AB=E0=B8=A5=E0=B8=B1=E0=B8=81=E0=B8=AA=E0=B8=B9?= =?UTF-8?q?=E0=B8=95=E0=B8=A3=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9D=E0=B8=B6?= =?UTF-8?q?=E0=B8=81=E0=B8=AD=E0=B8=9A=E0=B8=A3=E0=B8=A1=20=3D>=20?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=80?= =?UTF-8?q?=E0=B8=9A=E0=B8=B7=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B8=95=E0=B9=89?= =?UTF-8?q?=E0=B8=99,=E0=B9=80=E0=B8=9B=E0=B9=89=E0=B8=B2=E0=B8=AB?= =?UTF-8?q?=E0=B8=A1=E0=B8=B2=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/15_development/api.development.ts | 1 + .../15_development/components/BasicInfo.vue | 190 ++++++------ .../15_development/components/MainTab.vue | 109 ++++++- .../15_development/components/Target.vue | 285 ++++++++++++++---- .../15_development/interface/request/Main.ts | 75 ++++- .../15_development/store/developmentStore.ts | 93 +++++- src/modules/15_development/views/MainPage.vue | 8 +- .../15_development/views/Scholarship.vue | 2 - 8 files changed, 588 insertions(+), 175 deletions(-) diff --git a/src/api/15_development/api.development.ts b/src/api/15_development/api.development.ts index 619a66198..e0a8521fc 100644 --- a/src/api/15_development/api.development.ts +++ b/src/api/15_development/api.development.ts @@ -4,4 +4,5 @@ const development = `${env.API_URI}/development`; export default { /** รายการโครงการ*/ developmentMain: `${development}/main`, + developmentMainById: (id: string) => `${development}/main/${id}`, }; diff --git a/src/modules/15_development/components/BasicInfo.vue b/src/modules/15_development/components/BasicInfo.vue index 90d4dceeb..1da06b539 100644 --- a/src/modules/15_development/components/BasicInfo.vue +++ b/src/modules/15_development/components/BasicInfo.vue @@ -7,8 +7,10 @@ import type { FormBasicinfo } from "@/modules/15_development/interface/request/M import DialogSelectAgency from "@/modules/15_development/components/DialogSelectAgency.vue"; import { useCounterMixin } from "@/stores/mixin"; +import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore"; const $q = useQuasar(); +const store = useDevelopmentDataStore(); const { showLoader, hideLoader, dialogConfirm } = useCounterMixin(); const formData = reactive({ @@ -19,14 +21,6 @@ const formData = reactive({ objective: "", }); -const options = ref([ - "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานครกองบริหารทั้วไป", - "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานคร", -]); -function onSubmit() { - dialogConfirm($q, () => {}); -} - const modalDialogSelect = ref(false); function selectAgency() { modalDialogSelect.value = true; @@ -34,111 +28,99 @@ function selectAgency() { function updateAgency(name: string) { formData.org = name; } - -onMounted(() => { - console.log("ข้อมูลเบื้องต้น"); -});