แก้ไขเมนูทะเบียนประวัติ

This commit is contained in:
Warunee Tamkoo 2024-08-09 11:45:58 +07:00
parent 00e74f9e77
commit f0a6b8d71e
14 changed files with 50 additions and 28 deletions

View file

@ -253,7 +253,9 @@ function filterFn(val: string, update: Function) {
*/
function clickRedirect(id: string) {
const url =
employeeClass.value === "officer" ? "registry-person" : "registry-employee";
employeeClass.value === "officer"
? "registry-officer"
: "registry-employee";
router.push(`${url}/${id}`);
}

View file

@ -193,7 +193,7 @@ function onClickHistory() {
*/
function onClickViewDetail(id: string) {
if (empType.value === "officer") {
router.push(`/registry-person/${id}`);
router.push(`/registry-officer/${id}`);
} else {
router.push(`/registry-employee/${id}`);
}
@ -203,7 +203,7 @@ function onClickViewDetail(id: string) {
* function redirect ไปหนารายการคำรองขอแกไขขอม
*/
function redirectToPagePetition() {
router.push(`/registry-person/request-edit`);
router.push(`/registry-officer/request-edit`);
}
watch(