2023-06-01 12:54:58 +07:00
|
|
|
/**
|
|
|
|
|
* Router เครื่องราชอิสริยาภรณ์ (insignia)
|
|
|
|
|
*/
|
|
|
|
|
|
2023-07-17 15:58:26 +07:00
|
|
|
const ReportView = () =>
|
|
|
|
|
import("../07_insignia/components/report/ReportView.vue");
|
|
|
|
|
const report_01 = () =>
|
|
|
|
|
import("../07_insignia/components/report/Report_01.vue");
|
2023-08-28 11:27:08 +07:00
|
|
|
const report_02 = () =>
|
|
|
|
|
import("../07_insignia/components/report/Report_02.vue");
|
2023-07-17 17:00:50 +07:00
|
|
|
const RecordInsignia = () =>
|
2023-08-22 16:22:37 +07:00
|
|
|
import("@/modules/07_insignia/views/ResultPage.vue");
|
2023-07-17 10:38:48 +07:00
|
|
|
const insigniaProposals = () =>
|
2023-09-20 19:51:57 +07:00
|
|
|
import("@/modules/07_insignia/components/1_Proposals/listProposals.vue");
|
2023-07-17 10:38:48 +07:00
|
|
|
const roundAdd = () =>
|
2023-09-20 19:51:57 +07:00
|
|
|
import("@/modules/07_insignia/components/1_Proposals/addProposals.vue");
|
2023-08-04 13:48:56 +07:00
|
|
|
const listMange = () =>
|
2023-09-20 19:51:57 +07:00
|
|
|
import("@/modules/07_insignia/components/2_Manage/listManage.vue");
|
2023-08-04 13:48:56 +07:00
|
|
|
const listAllocate = () =>
|
2023-08-26 15:59:09 +07:00
|
|
|
import("@/modules/07_insignia/components/4_Allocate/Main.vue");
|
|
|
|
|
const allocateOrdList = () =>
|
|
|
|
|
import("@/modules/07_insignia/components/4_Allocate/OrgList.vue");
|
2023-09-19 14:58:16 +07:00
|
|
|
|
2023-08-28 11:27:08 +07:00
|
|
|
// ยืม - คืนเครื่องราช
|
2023-08-25 15:07:08 +07:00
|
|
|
const insigniaBorrow = () =>
|
|
|
|
|
import("@/modules/07_insignia/components/5_Borrow/Main.vue");
|
2023-06-01 12:54:58 +07:00
|
|
|
export default [
|
|
|
|
|
{
|
2024-08-01 15:25:48 +07:00
|
|
|
path: "/insignia/round",
|
2023-07-17 16:03:00 +07:00
|
|
|
name: "insigniaProposals",
|
|
|
|
|
component: insigniaProposals,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_ROUND",
|
|
|
|
|
Role: "STAFF",
|
2023-07-17 16:03:00 +07:00
|
|
|
},
|
|
|
|
|
},
|
2024-08-13 17:50:46 +07:00
|
|
|
// {
|
|
|
|
|
// path: "/insignia/round/:id",
|
|
|
|
|
// name: "roundAddEdit",
|
|
|
|
|
// component: roundAdd,
|
|
|
|
|
// meta: {
|
|
|
|
|
// Auth: true,
|
|
|
|
|
// Key: "SYS_INSIGNIA_ROUND",
|
|
|
|
|
// Role: "STAFF",
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: "/insignia/round/add",
|
|
|
|
|
// name: "roundAdd",
|
|
|
|
|
// component: roundAdd,
|
|
|
|
|
// meta: {
|
|
|
|
|
// Auth: true,
|
|
|
|
|
// Key: "SYS_INSIGNIA_ROUND",
|
|
|
|
|
// Role: "STAFF",
|
|
|
|
|
// },
|
|
|
|
|
// },
|
2023-07-17 17:00:50 +07:00
|
|
|
|
2023-07-17 14:56:08 +07:00
|
|
|
{
|
2023-07-17 17:00:50 +07:00
|
|
|
path: "/insignia/record",
|
|
|
|
|
name: "insigniaRecord",
|
|
|
|
|
component: RecordInsignia,
|
2023-07-17 14:18:31 +07:00
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_RECORD",
|
|
|
|
|
Role: "STAFF",
|
2023-07-17 14:56:08 +07:00
|
|
|
},
|
|
|
|
|
},
|
2023-07-17 14:18:31 +07:00
|
|
|
{
|
2023-07-17 16:00:29 +07:00
|
|
|
path: "/insignia/report",
|
2023-07-17 17:00:50 +07:00
|
|
|
name: "insigniaReport",
|
2023-07-17 16:00:29 +07:00
|
|
|
component: ReportView,
|
2023-07-17 14:56:08 +07:00
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_REPORT",
|
|
|
|
|
Role: "STAFF",
|
2023-07-17 14:56:08 +07:00
|
|
|
},
|
|
|
|
|
},
|
2023-07-17 14:18:31 +07:00
|
|
|
{
|
2023-07-17 16:00:29 +07:00
|
|
|
path: "/insignia/report/report-01",
|
|
|
|
|
name: "report-report-01",
|
|
|
|
|
component: report_01,
|
2023-07-17 14:18:31 +07:00
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_REPORT",
|
|
|
|
|
Role: "STAFF",
|
2023-07-17 14:18:31 +07:00
|
|
|
},
|
|
|
|
|
},
|
2023-08-28 11:27:08 +07:00
|
|
|
{
|
2023-09-26 13:09:48 +07:00
|
|
|
path: "/insignia/report/report/:type",
|
|
|
|
|
name: "report-report",
|
2023-08-28 11:27:08 +07:00
|
|
|
component: report_02,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_REPORT",
|
|
|
|
|
Role: "STAFF",
|
2023-08-28 11:27:08 +07:00
|
|
|
},
|
|
|
|
|
},
|
2023-08-04 13:48:56 +07:00
|
|
|
{
|
|
|
|
|
path: "/insignia/manage/list-manage",
|
|
|
|
|
name: "insigniaManage",
|
|
|
|
|
component: listMange,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_MANAGE",
|
|
|
|
|
Role: "STAFF",
|
2023-08-04 13:48:56 +07:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-27 02:53:22 +07:00
|
|
|
path: "/insignia/allocate",
|
2023-08-04 13:48:56 +07:00
|
|
|
name: "insigniaAllocate",
|
|
|
|
|
component: listAllocate,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_ALLOCATE",
|
|
|
|
|
Role: "STAFF",
|
2023-08-04 13:48:56 +07:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-27 02:53:22 +07:00
|
|
|
path: "/insignia/allocate/org/:id",
|
2023-08-26 15:59:09 +07:00
|
|
|
name: "allocateOrdList",
|
|
|
|
|
component: allocateOrdList,
|
2023-08-04 13:48:56 +07:00
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_ALLOCATE",
|
|
|
|
|
Role: "STAFF",
|
2023-08-04 13:48:56 +07:00
|
|
|
},
|
|
|
|
|
},
|
2023-08-25 15:07:08 +07:00
|
|
|
{
|
|
|
|
|
path: "/insignia/borrow",
|
|
|
|
|
name: "insigniaBorrow",
|
|
|
|
|
component: insigniaBorrow,
|
|
|
|
|
meta: {
|
|
|
|
|
Auth: true,
|
2024-08-01 15:25:48 +07:00
|
|
|
Key: "SYS_INSIGNIA_BORROW",
|
|
|
|
|
Role: "STAFF",
|
2023-08-25 15:07:08 +07:00
|
|
|
},
|
|
|
|
|
},
|
2023-06-01 12:54:58 +07:00
|
|
|
];
|