ลูกจ้างประจำ
This commit is contained in:
parent
119a1b47e4
commit
c7bbe78fc7
7 changed files with 118 additions and 34 deletions
|
|
@ -186,7 +186,12 @@ function onClickViewDetail(id: string) {
|
|||
|
||||
/** function redirect ไปหน้ารายการคำร้องขอแก้ไขข้อมูล*/
|
||||
function redirectToPagePetition() {
|
||||
router.push(`/registry-officer/request-edit`);
|
||||
|
||||
if (empType.value === "officer") {
|
||||
router.push(`/registry-officer/request-edit`);
|
||||
} else {
|
||||
router.push(`/registry-employee/request-edit`);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -205,7 +210,7 @@ watch(
|
|||
<div class="col-12 row q-pb-sm q-col-gutter-sm items-center">
|
||||
<div class="row q-gutter-sm">
|
||||
<q-btn
|
||||
v-if="empType === 'officer' && checkPermission($route)?.attrIsUpdate"
|
||||
v-if="empType === 'officer' || empType === 'perm' && checkPermission($route)?.attrIsUpdate"
|
||||
color="primary"
|
||||
label="รายการคำร้องขอแก้ไข"
|
||||
@click="redirectToPagePetition()"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue