From 6a7d3e15c56dfca608df71a50b7225ec113d63da Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 9 Jan 2024 17:30:16 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=94=E0=B8=B9=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=83=E0=B8=99=E0=B8=97=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=20=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=9A=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/1_Complaint/Form.vue | 41 ++++++++++++++----- .../components/2_InvestigateFacts/Form.vue | 39 ++++++++++++++---- .../3_InvestigateDisciplinary/Form.vue | 38 +++++++++++++---- .../components/4_Result/Form.vue | 37 +++++++++++++---- 4 files changed, 119 insertions(+), 36 deletions(-) diff --git a/src/modules/11_discipline/components/1_Complaint/Form.vue b/src/modules/11_discipline/components/1_Complaint/Form.vue index acfcc043c..4b15bff2c 100644 --- a/src/modules/11_discipline/components/1_Complaint/Form.vue +++ b/src/modules/11_discipline/components/1_Complaint/Form.vue @@ -15,6 +15,7 @@ import { useDisciplineMainStore } from "@/modules/11_discipline/store/main"; import config from "@/app.config"; import http from "@/plugins/http"; +import PopupPersonal from "@/components/Dialogs/PopupPersonal.vue"; import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue"; const $q = useQuasar(); @@ -24,6 +25,8 @@ const channelOptions = ref([]); const mixin = useCounterMixin(); const mainStore = useDisciplineMainStore(); const complainstStore = useComplainstDataStore(); +const modalPersonal = ref(false); +const personId = ref(""); /**ชั่งฟังเพิ่มข้อมูล ลง ตาราง */ const modal = ref(false); @@ -159,7 +162,7 @@ function validateForm() { } } if (hasError.every((result) => result === true)) { - countNum.value = 1 + countNum.value = 1; onSubmit(); } else { console.log("ไม่ผ่าน "); @@ -247,7 +250,7 @@ watch(props.data, async () => { formData.status = props.data.status; formData.result = props.data.result; formData.persons = mainStore.rowsAdd; - }else if (countNum.value === 2){ + } else if (countNum.value === 2) { fileList.value = props.data.disciplineComplaintDocs; } } @@ -273,7 +276,7 @@ function upLoadFileDoc() { .put(config.API.complaintFileUpload(formData.id), Data) .then((res) => { success($q, "อัพโหลดไฟล์สำเร็จ"); - countNum.value = 2 + countNum.value = 2; props.getData(); }) .catch((e) => { @@ -339,6 +342,15 @@ function inputEdit(val: boolean) { }; } +function onclickViewinfo(id: string) { + modalPersonal.value = true; + personId.value = id; +} + +function updatemodalPersonal(modal: boolean) { + modalPersonal.value = modal; +} + onMounted(() => { mainStore.rowsAdd = []; getListChannel(); @@ -521,15 +533,16 @@ onMounted(() => {