ปรับโครงสร้างเมนู, เพิ่มเมนูในทะเบียนประวัติ

This commit is contained in:
Warunee Tamkoo 2023-08-10 17:58:18 +07:00
parent 6fbc73300c
commit 054802c8b7
26 changed files with 1337 additions and 250 deletions

View file

@ -17,8 +17,8 @@ const EditDetail = defineAsyncComponent(
export default [
{
path: "/registryEmployee",
name: "registryEmployee",
path: "/registry-employee",
name: "registry-employee",
component: Main,
meta: {
Auth: true,
@ -37,7 +37,7 @@ export default [
// },
// },
{
path: "/registryEmployee/add",
path: "/registry-employee/add",
name: "registryEmployeeAdd",
component: Detail,
meta: {
@ -47,7 +47,7 @@ export default [
},
},
{
path: "/registryEmployee/edit/:id",
path: "/registry-employee/edit/:id",
name: "registryEmployeeEdit",
component: EditDetail,
meta: {

View file

@ -1343,7 +1343,7 @@ const modalOpenClose = () => {
};
const next = (id: string) => {
router.push(`/registryEmployee/${id}`);
router.push(`/registry-employee/${id}`);
};
const resetFilter = () => {
@ -1381,13 +1381,13 @@ const clickClose = async () => {
const clickAdd = () => {
// modal.value = true;
router.push(`/registryEmployee/add`);
router.push(`/registry-employee/add`);
// router.push(`/placement/detail`);
};
//
const redirectToPage = (id?: string) => {
router.push(`/registryEmployee/edit/${id}`);
router.push(`/registry-employee/edit/${id}`);
};
const editDetail = async (row: any) => {
await getPosition(row.id);

View file

@ -1112,7 +1112,7 @@ const saveData = async () => {
};
const clickBack = () => {
router.push({ name: "registryEmployee" });
router.push("/registry-employee");
};
const getClass = (val: boolean) => {