แก้ไขเมนูทะเบียนประวัติ
This commit is contained in:
parent
00e74f9e77
commit
f0a6b8d71e
14 changed files with 50 additions and 28 deletions
|
|
@ -348,7 +348,7 @@ const addData = async () => {
|
|||
|
||||
// ปุ่ม back
|
||||
const clickBack = () => {
|
||||
router.push("/registry-employee");
|
||||
router.push("/registry-temp");
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ const DetailView = defineAsyncComponent(
|
|||
|
||||
export default [
|
||||
{
|
||||
path: "/registry-employee",
|
||||
path: "/registry-temp",
|
||||
name: "registry-employee",
|
||||
component: Main,
|
||||
meta: {
|
||||
|
|
@ -28,7 +28,7 @@ export default [
|
|||
},
|
||||
},
|
||||
{
|
||||
path: "/registry-employee/:id",
|
||||
path: "/registry-temp/:id",
|
||||
name: "registry-employeeId",
|
||||
component: DetailView,
|
||||
meta: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useRegistryEmp = defineStore("registry-employee", () => {
|
||||
export const useRegistryEmp = defineStore("registryEmployeeTemp", () => {
|
||||
/**
|
||||
* function คำนวณหาอายุ
|
||||
* @param birthDate วันเกิด
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ function onClickDelete(id: string) {
|
|||
}
|
||||
|
||||
function redirectToPageDetail(id: string) {
|
||||
router.push(`/registry-employee/${id}`);
|
||||
router.push(`/registry-temp/${id}`);
|
||||
}
|
||||
|
||||
/** เพิ่มข้อมูลลูกจ้างชั่วคราว*/
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue