hrms-mgt/src/modules/15_development/router.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 ef2351f2c8 ยุทธศาสตร์ => tree
2024-04-10 18:05:05 +07:00

156 lines
3.6 KiB
TypeScript

const mainPage = () => import("@/modules/15_development/views/MainPage.vue");
const mainForm = () =>
import("@/modules/15_development/components/MainTab.vue");
const developmentHistory = () =>
import("@/modules/15_development/views/History.vue");
const employeeHistory = () =>
import("@/modules/15_development/views/EmployeeHistory.vue");
const Scholarship = () =>
import("@/modules/15_development/views/Scholarship.vue");
const historyAdd = () =>
import("@/modules/15_development/components/history/AddPage.vue");
const historyEdit = () =>
import("@/modules/15_development/components/history/AddPage.vue");
const historyEmployeeAdd = () =>
import("@/modules/15_development/components/historyEmployee/AddPage.vue");
const historyEmployeeEdit = () =>
import("@/modules/15_development/components/historyEmployee/AddPage.vue");
const ScholarshipDetail = () =>
import("@/modules/15_development/components/scholarship/DetailView.vue");
// const historyAdd = () =>
// import("@/modules/15_development/components/history/AddPage.vue");
const StrategicView = () =>
import("@/modules/15_development/views/Strategic.vue");
export default [
{
path: "/development",
name: "developmentMain",
component: mainPage,
meta: {
Auth: true,
Key: [1.1],
Role: "development",
},
},
{
path: "/development/add",
name: "developmentAdd",
component: mainForm,
meta: {
Auth: true,
Key: [1.2],
Role: "development",
},
},
{
path: "/development/:id",
name: "developmentDetail",
component: mainForm,
meta: {
Auth: true,
Key: [1.3],
Role: "development",
},
},
{
path: "/development/history",
name: "developmentHistory",
component: developmentHistory,
meta: {
Auth: true,
Key: [1.4],
Role: "development",
},
},
{
path: "/development/employee-history",
name: "developmentEmployeeHistory",
component: employeeHistory,
meta: {
Auth: true,
Key: [1.5],
Role: "development",
},
},
{
path: "/development/scholarship",
name: "developmentScholarship",
component: Scholarship,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
{
path: "/development/scholarship/add",
name: "developmentScholarshipAdd",
component: ScholarshipDetail,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
{
path: "/development/scholarship/:id",
name: "developmentScholarshipid",
component: ScholarshipDetail,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
{
path: "/development/history/add",
name: "developmentHistoryAdd",
component: historyAdd,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
{
path: "/development/history/:id",
name: "developmentHistoryEdit",
component: historyEdit,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
{
path: "/development/employee-history/add",
name: "developmentEmployeeHistoryAdd",
component: historyEmployeeAdd,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
{
path: "/development/employee-history/:id",
name: "developmentEmployeeHistoryEdit",
component: historyEmployeeEdit,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
{
path: "/development/strategic",
name: "developmentStrategic",
component: StrategicView,
meta: {
Auth: true,
Key: [1.6],
Role: "development",
},
},
];