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

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

@ -251,7 +251,7 @@ function onClickDelete(id: string) {
}
function redirectToPageDetail(id: string) {
router.push(`/registry-employee/${id}`);
router.push(`/registry-temp/${id}`);
}
/** เพิ่มข้อมูลลูกจ้างชั่วคราว*/

View file

@ -275,13 +275,13 @@ const resetFilter = () => {
//
const clickAdd = () => {
router.push(`/registry-employee/add`);
router.push(`/registry-temp/add`);
};
//
const redirectToPage = (id?: string, status?: string) => {
if (!(status == "REPORT" || status == "DONE")) {
router.push(`/registry-employee/edit/${id}`);
router.push(`/registry-temp/edit/${id}`);
}
};