updated route complete

This commit is contained in:
Warunee Tamkoo 2024-08-01 15:25:48 +07:00
parent d92952637b
commit 265c0bdbe0
7 changed files with 275 additions and 288 deletions

View file

@ -2,7 +2,6 @@
* Router (insignia)
*/
const Main = () => import("@/modules/07_insignia/views/Main.vue");
const ReportView = () =>
import("../07_insignia/components/report/ReportView.vue");
const report_01 = () =>
@ -27,43 +26,33 @@ const insigniaBorrow = () =>
import("@/modules/07_insignia/components/5_Borrow/Main.vue");
export default [
{
path: "/insignia",
name: "insignia",
component: Main,
meta: {
Auth: true,
Key: [8],
Role: "insignia",
},
},
{
path: "/insignia/round-proposals",
path: "/insignia/round",
name: "insigniaProposals",
component: insigniaProposals,
meta: {
Auth: true,
Key: [8.1],
Role: "insignia",
Key: "SYS_INSIGNIA_ROUND",
Role: "STAFF",
},
},
{
path: "/insignia/round-add/:id",
path: "/insignia/round/:id",
name: "roundAddEdit",
component: roundAdd,
meta: {
Auth: true,
Key: [8.1],
Role: "insignia",
Key: "SYS_INSIGNIA_ROUND",
Role: "STAFF",
},
},
{
path: "/insignia/round-add",
path: "/insignia/round/add",
name: "roundAdd",
component: roundAdd,
meta: {
Auth: true,
Key: [8.1],
Role: "insignia",
Key: "SYS_INSIGNIA_ROUND",
Role: "STAFF",
},
},
@ -73,8 +62,8 @@ export default [
component: RecordInsignia,
meta: {
Auth: true,
Key: [8.4],
Role: "insignia",
Key: "SYS_INSIGNIA_RECORD",
Role: "STAFF",
},
},
{
@ -83,8 +72,8 @@ export default [
component: ReportView,
meta: {
Auth: true,
Key: [8.5],
Role: "insignia",
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
@ -93,8 +82,8 @@ export default [
component: report_01,
meta: {
Auth: true,
Key: [8.5],
Role: "insignia",
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
@ -103,8 +92,8 @@ export default [
component: report_02,
meta: {
Auth: true,
Key: [8.5],
Role: "insignia",
Key: "SYS_INSIGNIA_REPORT",
Role: "STAFF",
},
},
{
@ -113,8 +102,8 @@ export default [
component: listMange,
meta: {
Auth: true,
Key: [8.6],
Role: "insignia",
Key: "SYS_INSIGNIA_MANAGE",
Role: "STAFF",
},
},
{
@ -123,8 +112,8 @@ export default [
component: listAllocate,
meta: {
Auth: true,
Key: [8.7],
Role: "insignia",
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
@ -133,8 +122,8 @@ export default [
component: allocateOrdList,
meta: {
Auth: true,
Key: [8.9],
Role: "insignia",
Key: "SYS_INSIGNIA_ALLOCATE",
Role: "STAFF",
},
},
{
@ -143,8 +132,8 @@ export default [
component: insigniaBorrow,
meta: {
Auth: true,
Key: [8.9],
Role: "insignia",
Key: "SYS_INSIGNIA_BORROW",
Role: "STAFF",
},
},
];