From 61906a670528a3c573b69ead9073ccd406443d67 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 27 Nov 2023 16:50:14 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=AA?= =?UTF-8?q?=E0=B8=B7=E0=B8=9A=E0=B8=AA=E0=B8=A7=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/Form.vue | 29 ++++++++++++------- .../interface/request/investigateFact.ts | 2 +- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index b433b459c..31a93624a 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -309,9 +309,10 @@ watch(props.data, async () => { formData.investigationStatusResult = props.data.investigationStatusResult; formData.investigationCauseText = props.data.investigationCauseText; formData.result = props.data.result; - - investigateFactStore.rowsAdd = props.data.persons - rows.value = props.data.directors + formData.disciplineInvestigateDocs = props.data.disciplineInvestigateDocs; + + investigateFactStore.rowsAdd = props.data.persons; + rows.value = props.data.directors; } }); @@ -332,6 +333,7 @@ function uploadFileRelevant() { }) .finally(async () => { hideLoader(); + formData.evidenceFiles = null; }); } @@ -352,6 +354,7 @@ function uploadFile() { }) .finally(async () => { hideLoader(); + formData.documentFile = null; }); } @@ -586,6 +589,7 @@ onMounted(async () => { outlined hide-bottom-space dense + lazy-rules ref="investigationDetailRef" :rules="[(val) => !!val || `${'กรุณาเลือกลักษณะการสืบสวน'}`]" v-model="formData.investigationDetail" @@ -1105,11 +1109,6 @@ onMounted(async () => { dense v-model="formData.evidenceFiles" label="เอกสารที่เกี่ยวข้องกับการสืบสวน" - lazy-rules - :rules="[ - (val) => - !!val || 'กรุณาเลือกไฟล์เอกสารที่เกี่ยวข้องกับการสืบสวน', - ]" hide-bottom-space >