From 9bf53d26896123651ef354ddfd6490cd0e185fee Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 8 Jan 2024 09:45:03 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=A7=E0=B8=B4?= =?UTF-8?q?=E0=B8=99=E0=B8=B1=E0=B8=A2=20=E0=B8=AD=E0=B8=B1=E0=B8=9E?= =?UTF-8?q?=E0=B9=84=E0=B8=9F=E0=B8=A5=E0=B9=8C=20=E0=B9=80=E0=B9=80?= =?UTF-8?q?=E0=B8=A5=E0=B9=89=E0=B8=A7=20=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=80=E0=B9=80=E0=B8=81=E0=B9=89?= =?UTF-8?q?=E0=B9=84=E0=B8=82=E0=B8=AB=E0=B8=B2=E0=B8=A2/=E0=B9=80?= =?UTF-8?q?=E0=B9=80=E0=B8=81=E0=B9=89=E0=B8=9F=E0=B8=B4=E0=B8=A5=E0=B9=80?= =?UTF-8?q?=E0=B8=95=E0=B8=AD=E0=B8=A3=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/AddPersonal.vue | 26 +-- .../components/1_Complaint/Form.vue | 75 +++++---- .../components/2_InvestigateFacts/Form.vue | 105 ++++++------ .../3_InvestigateDisciplinary/Form.vue | 152 +++++++++++------- .../4_Result/DialogSendToCommand.vue | 78 ++++----- .../components/4_Result/Form.vue | 8 + .../components/PopupSendToNext.vue | 5 +- .../11_discipline/components/UploadFile.vue | 16 +- 8 files changed, 275 insertions(+), 190 deletions(-) diff --git a/src/components/Dialogs/AddPersonal.vue b/src/components/Dialogs/AddPersonal.vue index 922414f8f..29789e049 100644 --- a/src/components/Dialogs/AddPersonal.vue +++ b/src/components/Dialogs/AddPersonal.vue @@ -75,10 +75,11 @@ const props = defineProps({ type: Function, default: () => console.log("not function"), required: true, - },selecetSwitch:{ - type:String, - default:'multiple' - } + }, + selecetSwitch: { + type: String, + default: "multiple", + }, }); /**ส่งค่ากลับหน้าหลัก */ @@ -147,16 +148,18 @@ async function searchInput() { } } - /** update เมื่อเปลี่ยน option */ function updateSelect() { search.value = ""; } -watch(()=>props.selectedData,()=>{ - if(props.selectedData){ - selected.value = props.selectedData +watch( + () => props.selectedData, + () => { + if (props.selectedData) { + selected.value = props.selectedData; + } } -}) +);