แก้เงื่อนไข redirect ต่างๆ

This commit is contained in:
AnandaTon 2023-09-08 11:14:26 +07:00
parent e8524c9782
commit 6ec6e7bd12
3 changed files with 155 additions and 162 deletions

View file

@ -105,7 +105,7 @@
</div>
</div>
</div>
<q-card bordered class="row col-12 text-dark q-mt-sm">
<q-card bordered class="row col-12 text-dark q-mt-sm" v-if="routeName != 'AddLeave'">
<div class="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
<div class="q-pl-sm text-weight-bold text-dark">ผลการพจารณาของผงคบบญชา</div>
</div>
@ -137,7 +137,7 @@
</div>
</q-card>
<q-card bordered class="row col-12 text-dark q-mt-sm">
<q-card bordered class="row col-12 text-dark q-mt-sm" v-if="routeName != 'AddLeave'">
<div class="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
<div class="q-pl-sm text-weight-bold text-dark">ผลการพจารณาของผอำนาจ</div>
</div>
@ -232,6 +232,10 @@ const dataDetail = ref<any>({
fullname: "",
})
const clickBack = () => {
router.push(`/leave`)
}
const statusOrder = (val: boolean) => {
switch (val) {
case true:
@ -312,6 +316,7 @@ const cancelResing = () => {
if (route.params.id !== undefined) {
id.value = route.params.id.toString()
deleteResting(id.value)
clickBack()
}
})
.onCancel(() => {})