hrms-mgt/src/modules/15_development/router.ts

169 lines
4.1 KiB
TypeScript
Raw Normal View History

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");
2024-08-01 15:25:48 +07:00
// const historyAdd = () =>
// import("@/modules/15_development/components/history/AddPage.vue");
2024-04-10 18:05:05 +07:00
const historyEdit = () =>
import("@/modules/15_development/components/history/AddPage.vue");
2024-08-01 15:25:48 +07:00
// const historyEmployeeAdd = () =>
// import("@/modules/15_development/components/historyEmployee/AddPage.vue");
2024-04-10 18:05:05 +07:00
const historyEmployeeEdit = () =>
import("@/modules/15_development/components/historyEmployee/AddPage.vue");
const ScholarshipDetail = () =>
import("@/modules/15_development/components/scholarship/DetailView.vue");
2024-04-02 16:04:35 +07:00
// const historyAdd = () =>
// import("@/modules/15_development/components/history/AddPage.vue");
// const StrategicView = () =>
// import("@/modules/15_development/views/Strategic.vue");
2024-07-30 18:07:41 +07:00
const RecordPage = () =>
import("@/modules/15_development/views/RecordPage.vue");
export default [
{
path: "/development",
name: "developmentMain",
component: mainPage,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_PROJECT",
Role: "STAFF",
},
},
{
path: "/development/add",
name: "developmentAdd",
component: mainForm,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_PROJECT",
Role: "STAFF",
},
},
{
path: "/development/:id",
name: "developmentDetail",
component: mainForm,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_PROJECT",
Role: "STAFF",
},
},
{
2024-08-01 15:25:48 +07:00
path: "/development/record/:id",
name: "developmentRecordPage",
component: RecordPage,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_PROJECT",
Role: "STAFF",
},
},
{
2024-08-01 15:25:48 +07:00
path: "/development/history",
name: "developmentHistory",
component: developmentHistory,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_HISTORY_OFFICER",
Role: "STAFF",
},
},
{
2024-08-01 15:25:48 +07:00
path: "/development/history/:id",
name: "developmentHistoryEdit",
component: historyEdit,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_HISTORY_OFFICER",
Role: "STAFF",
},
},
{
2024-08-01 15:25:48 +07:00
path: "/development/employee-history",
name: "developmentEmployeeHistory",
component: employeeHistory,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_HISTORY_EMP",
Role: "STAFF",
},
},
{
2024-08-01 15:25:48 +07:00
path: "/development/employee-history/:id",
name: "developmentEmployeeHistoryEdit",
component: historyEmployeeEdit,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_HISTORY_EMP",
Role: "STAFF",
},
},
{
2024-08-01 15:25:48 +07:00
path: "/development/scholarship",
name: "developmentScholarship",
component: Scholarship,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_SCHOLARSHIP",
Role: "STAFF",
},
},
2024-04-04 12:38:48 +07:00
{
2024-08-01 15:25:48 +07:00
path: "/development/scholarship/add",
name: "developmentScholarshipAdd",
component: ScholarshipDetail,
2024-04-04 12:38:48 +07:00
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_SCHOLARSHIP",
Role: "STAFF",
2024-04-04 12:38:48 +07:00
},
},
2024-07-30 18:07:41 +07:00
{
2024-08-01 15:25:48 +07:00
path: "/development/scholarship/:id",
name: "developmentScholarshipid",
component: ScholarshipDetail,
2024-07-30 18:07:41 +07:00
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_DEV_SCHOLARSHIP",
Role: "STAFF",
2024-07-30 18:07:41 +07:00
},
},
2024-08-01 15:25:48 +07:00
// {
// path: "/development/history/add",
// name: "developmentHistoryAdd",
// component: historyAdd,
// 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/strategic",
// name: "developmentStrategic",
// component: StrategicView,
// meta: {
// Auth: true,
// Key: [1.6],
// Role: "development",
// },
// },
];