From 26787f5c4ed058dcc9f507677e759a56b1ffb62f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 18 Sep 2023 16:08:05 +0700 Subject: [PATCH] fetch Stat --- src/modules/07_insignia/components/2_Manage/Tab1.vue | 9 +++++++++ .../07_insignia/components/2_Manage/listManage.vue | 1 + 2 files changed, 10 insertions(+) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 30c53cb21..70b60f8e5 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -211,6 +211,9 @@ const props = defineProps({ requestStatus: { type: String, }, + fecthStat: { + type: Function, + }, }); onMounted(async () => { @@ -449,6 +452,9 @@ const savaReasonReject = (reason: string) => { $q, async () => { await listreject(rowid.value, reason); + if (props.fecthStat) { + await props.fecthStat(DataStore.roundId); + } }, "ยืนยันการย้ายข้อมูล", "ต้องการยืนยันการย้ายข้อมูลนี้หรือไม่ ?" @@ -492,6 +498,9 @@ const savaReasonDelete = (reason: string) => { $q, async () => { await listdelete(rowid.value, reason); + if (props.fecthStat) { + await props.fecthStat(DataStore.roundId); + } }, "ยืนยันการลบออกข้ออมูล", "ต้องการยืนยันการลบข้อมูลนี้หรือไม่ ?" diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index ddc28e172..5635074c4 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -419,6 +419,7 @@ const requestSendNote = async () => { :roundName="roundName" :fecthInsigniaByOc="fecthInsigniaByOc" :request-status="requestStatus" + :fecthStat="fecthStat" />