feat-wip(components): 相关页面及路由代码提交"

This commit is contained in:
2025-12-01 14:31:42 +08:00
parent 65640c8b71
commit 12f3ad79fb
9 changed files with 152 additions and 4 deletions

View File

@ -21,4 +21,6 @@ export const views: Record<LastLevelRouteKey, RouteComponent | (() => Promise<Ro
"iframe-page": () => import("@/views/_builtin/iframe-page/[url].vue"),
login: () => import("@/views/_builtin/login/index.vue"),
home: () => import("@/views/home/index.vue"),
system_conf_dictionary: () => import("@/views/system/conf/dictionary/index.vue"),
system_rbac_region: () => import("@/views/system/rbac/region/index.vue"),
};

View File

@ -47,7 +47,7 @@ export const generatedRoutes: GeneratedRoute[] = [
title: 'home',
i18nKey: 'route.home',
icon: 'mdi:monitor-dashboard',
order: 1
order: 10
}
},
{
@ -74,5 +74,60 @@ export const generatedRoutes: GeneratedRoute[] = [
constant: true,
hideInMenu: true
}
},
{
name: 'system',
path: '/system',
component: 'layout.base',
meta: {
title: 'system',
i18nKey: 'route.system',
icon: 'mdi:laptop-windows',
order: 20
},
children: [
{
name: 'system_conf',
path: '/system/conf',
meta: {
title: 'system_conf',
i18nKey: 'route.system_conf',
icon: 'ic:round-construction'
},
children: [
{
name: 'system_conf_dictionary',
path: '/system/conf/dictionary',
component: 'view.system_conf_dictionary',
meta: {
title: 'system_conf_dictionary',
i18nKey: 'route.system_conf_dictionary',
icon: 'ic:round-list-alt'
}
}
]
},
{
name: 'system_rbac',
path: '/system/rbac',
meta: {
title: 'system_rbac',
i18nKey: 'route.system_rbac',
icon: 'ic:outline-account-tree'
},
children: [
{
name: 'system_rbac_region',
path: '/system/rbac/region',
component: 'view.system_rbac_region',
meta: {
title: 'system_rbac_region',
i18nKey: 'route.system_rbac_region',
icon: 'mdi:home-city-outline'
}
}
]
}
]
}
];

View File

@ -168,7 +168,12 @@ const routeMap: RouteMap = {
"500": "/500",
"home": "/home",
"iframe-page": "/iframe-page/:url",
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?"
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?",
"system": "/system",
"system_conf": "/system/conf",
"system_conf_dictionary": "/system/conf/dictionary",
"system_rbac": "/system/rbac",
"system_rbac_region": "/system/rbac/region"
};
/**