แก้ไขเมนูทะเบียนประวัติ
This commit is contained in:
parent
00e74f9e77
commit
f0a6b8d71e
14 changed files with 50 additions and 28 deletions
|
|
@ -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}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue