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

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

@ -348,7 +348,7 @@ const addData = async () => {
// back
const clickBack = () => {
router.push("/registry-employee");
router.push("/registry-temp");
};
</script>

View file

@ -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: {

View file

@ -1,6 +1,6 @@
import { defineStore } from "pinia";
export const useRegistryEmp = defineStore("registry-employee", () => {
export const useRegistryEmp = defineStore("registryEmployeeTemp", () => {
/**
* function
* @param birthDate

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}`);
}
};