From e5c91bcbeda2676678482a4b11e3d5a3932473b6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 22 Nov 2023 18:05:59 +0700 Subject: [PATCH] =?UTF-8?q?form=20=E0=B8=AA=E0=B8=B7=E0=B8=9A=E0=B8=AA?= =?UTF-8?q?=E0=B8=A7=E0=B8=99=E0=B8=84=E0=B8=A7=E0=B8=B2=E0=B8=A1=E0=B8=9C?= =?UTF-8?q?=E0=B8=B4=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/1_Complaint/EditPage.vue | 22 +- .../components/1_Complaint/Popup.vue | 205 ++++++++++++++++++ .../components/2_InvestigateFacts/Form.vue | 118 +++++++++- .../store/InvestigateFactStore.ts | 2 +- 4 files changed, 329 insertions(+), 18 deletions(-) create mode 100644 src/modules/11_discipline/components/1_Complaint/Popup.vue diff --git a/src/modules/11_discipline/components/1_Complaint/EditPage.vue b/src/modules/11_discipline/components/1_Complaint/EditPage.vue index ca49efa96..129b9603e 100644 --- a/src/modules/11_discipline/components/1_Complaint/EditPage.vue +++ b/src/modules/11_discipline/components/1_Complaint/EditPage.vue @@ -1,6 +1,7 @@ + + + diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index be5ff6298..939201bf7 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -2,7 +2,10 @@ import { useRouter, useRoute } from "vue-router"; import { onMounted, ref, watch, reactive, computed } from "vue"; import { useQuasar } from "quasar"; +import Dialogbody from "@/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue"; +import Table from "@/modules/11_discipline/components/3_InvestigateDisciplinary/DirectorTable.vue"; import { useCounterMixin } from "@/stores/mixin"; +import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore"; import { useInvestigateFactStore } from "@/modules/11_discipline/store/InvestigateFactStore"; import type { FormData, @@ -18,6 +21,7 @@ const investigateFactStore = useInvestigateFactStore(); const mixin = useCounterMixin(); const { filterFnOptionsType } = investigateFactStore; const { date2Thai, dialogConfirm } = mixin; +const investigateDis = useInvestigateDisStore(); const complaintsOptions = ref([]); const isUpdate = ref(false); @@ -50,6 +54,8 @@ const props = defineProps({ }, }); +const filter = ref(""); + /** ข้อมูล v-model ของฟอร์ม */ const formData = reactive({ complaint: "", @@ -87,9 +93,13 @@ const objectInvestigate: MyObjectInvestigateRef = { causeText: causeTextRef, }; +const rows = ref([]); const statusStep = computed(() => { return route.name === "/discipline-disciplinaryEdit" ? true : false; }); +const initialPagination = ref({ + rowsPerPage: 0, +}); /*** ฟังก์ชั่นสำหรับ validate ฟอร์ม */ function validateForm() { @@ -157,6 +167,20 @@ async function fetchDataDetail() { formData.causeText = props.data.results; } } + +const modal = ref(false); +const filterKeyword2 = ref(""); +const type = ref(""); +/** เปิด dialog */ +function onClickOpenPopup() { + modal.value = true; + filterKeyword2.value = ""; +} +/** ฟังชั่นปิด dialog */ +function clickClose() { + modal.value = false; +} + onMounted(async () => { await fetchDataDetail(); console.log(route.name); @@ -310,7 +334,7 @@ watch(props.data, async () => { > วันที่สืบสวน { " :rules="[ (val) => - !!val || `${'กรุณาเลือกวันที่เริ่มการสอบสวน'}`, + !!val || `${'กรุณาเลือกวันที่เริ่มการสืบสวน'}`, ]" - :label="`${'วันที่เริ่มการสอบสวน'}`" + :label="`${'วันที่เริ่มการสืบสวน'}`" >