fetch Stat

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-18 16:08:05 +07:00
parent 3d862e21e8
commit 26787f5c4e
2 changed files with 10 additions and 0 deletions

View file

@ -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);
}
},
"ยืนยันการลบออกข้ออมูล",
"ต้องการยืนยันการลบข้อมูลนี้หรือไม่ ?"

View file

@ -419,6 +419,7 @@ const requestSendNote = async () => {
:roundName="roundName"
:fecthInsigniaByOc="fecthInsigniaByOc"
:request-status="requestStatus"
:fecthStat="fecthStat"
/>
</q-tab-panel>
<q-tab-panel name="reject" class="q-pa-none">