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

This commit is contained in:
2025-12-01 21:29:29 +08:00
parent 12f3ad79fb
commit a10efd3b7e
9 changed files with 84 additions and 57 deletions

View File

@ -226,11 +226,11 @@ const local: App.I18n.Schema = {
500: 'Server Error', 500: 'Server Error',
'iframe-page': 'Iframe', 'iframe-page': 'Iframe',
home: 'Home', home: 'Home',
system: 'System', sys: 'System',
system_conf: 'Configuration', sys_core: 'Configuration',
system_conf_dictionary: 'Dictionary', sys_core_dictionary: 'Dictionary',
system_rbac: 'Organization', sys_rbac: 'Organization',
system_rbac_region: 'Region' sys_rbac_region: 'Region'
}, },
page: { page: {
login: { login: {
@ -308,10 +308,19 @@ const local: App.I18n.Schema = {
}, },
creativity: 'Creativity' creativity: 'Creativity'
}, },
system: { sys: {
conf: { core: {
dictionary: { dictionary: {
title: 'Dictionary' title: 'Dictionary',
fields: {
id: 'ID',
name: 'Name',
code: 'Code',
type: 'string',
description: 'Description',
createTime: 'Create Time',
updateTime: 'Update Time'
}
} }
}, },
rbac: { rbac: {

View File

@ -223,11 +223,11 @@ const local: App.I18n.Schema = {
500: '服务器错误', 500: '服务器错误',
'iframe-page': '外链页面', 'iframe-page': '外链页面',
home: '首页', home: '首页',
system: '系统管理', sys: '系统管理',
system_conf: '系统配置', sys_core: '系统配置',
system_conf_dictionary: '数据字典', sys_core_dictionary: '数据字典',
system_rbac: '组织架构', sys_rbac: '组织架构',
system_rbac_region: '行政区划' sys_rbac_region: '行政区划'
}, },
page: { page: {
login: { login: {
@ -305,10 +305,19 @@ const local: App.I18n.Schema = {
}, },
creativity: '创意' creativity: '创意'
}, },
system: { sys: {
conf: { core: {
dictionary: { dictionary: {
title: '数据字典' title: '数据字典',
fields: {
id: 'ID',
name: '名称',
code: '代码',
type: '类型',
description: '描述',
createTime: '创建时间',
updateTime: '修改时间'
}
} }
}, },
rbac: { rbac: {

View File

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

View File

@ -76,53 +76,53 @@ export const generatedRoutes: GeneratedRoute[] = [
} }
}, },
{ {
name: 'system', name: 'sys',
path: '/system', path: '/sys',
component: 'layout.base', component: 'layout.base',
meta: { meta: {
title: 'system', title: 'sys',
i18nKey: 'route.system', i18nKey: 'route.sys',
icon: 'mdi:laptop-windows', icon: 'mdi:laptop-windows',
order: 20 order: 20
}, },
children: [ children: [
{ {
name: 'system_conf', name: 'sys_core',
path: '/system/conf', path: '/sys/core',
meta: { meta: {
title: 'system_conf', title: 'sys_core',
i18nKey: 'route.system_conf', i18nKey: 'route.sys_core',
icon: 'ic:round-construction' icon: 'ic:round-construction'
}, },
children: [ children: [
{ {
name: 'system_conf_dictionary', name: 'sys_core_dictionary',
path: '/system/conf/dictionary', path: '/sys/core/dictionary',
component: 'view.system_conf_dictionary', component: 'view.sys_core_dictionary',
meta: { meta: {
title: 'system_conf_dictionary', title: 'sys_core_dictionary',
i18nKey: 'route.system_conf_dictionary', i18nKey: 'route.sys_core_dictionary',
icon: 'ic:round-list-alt' icon: 'ic:round-list-alt'
} }
} }
] ]
}, },
{ {
name: 'system_rbac', name: 'sys_rbac',
path: '/system/rbac', path: '/sys/rbac',
meta: { meta: {
title: 'system_rbac', title: 'sys_rbac',
i18nKey: 'route.system_rbac', i18nKey: 'route.sys_rbac',
icon: 'ic:outline-account-tree' icon: 'ic:outline-account-tree'
}, },
children: [ children: [
{ {
name: 'system_rbac_region', name: 'sys_rbac_region',
path: '/system/rbac/region', path: '/sys/rbac/region',
component: 'view.system_rbac_region', component: 'view.sys_rbac_region',
meta: { meta: {
title: 'system_rbac_region', title: 'sys_rbac_region',
i18nKey: 'route.system_rbac_region', i18nKey: 'route.sys_rbac_region',
icon: 'mdi:home-city-outline' icon: 'mdi:home-city-outline'
} }
} }

View File

@ -169,11 +169,11 @@ const routeMap: RouteMap = {
"home": "/home", "home": "/home",
"iframe-page": "/iframe-page/:url", "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", "sys": "/sys",
"system_conf": "/system/conf", "sys_core": "/sys/core",
"system_conf_dictionary": "/system/conf/dictionary", "sys_core_dictionary": "/sys/core/dictionary",
"system_rbac": "/system/rbac", "sys_rbac": "/sys/rbac",
"system_rbac_region": "/system/rbac/region" "sys_rbac_region": "/sys/rbac/region"
}; };
/** /**

13
src/typings/app.d.ts vendored
View File

@ -546,10 +546,19 @@ declare namespace App {
}; };
creativity: string; creativity: string;
}; };
system: { sys: {
conf: { core: {
dictionary: { dictionary: {
title: string; title: string;
fields: {
id: string;
name: string;
code: string;
type: string;
description: string;
createTime: string;
updateTime: string;
};
}; };
}; };
rbac: { rbac: {

View File

@ -23,11 +23,11 @@ declare module "@elegant-router/types" {
"home": "/home"; "home": "/home";
"iframe-page": "/iframe-page/:url"; "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"; "sys": "/sys";
"system_conf": "/system/conf"; "sys_core": "/sys/core";
"system_conf_dictionary": "/system/conf/dictionary"; "sys_core_dictionary": "/sys/core/dictionary";
"system_rbac": "/system/rbac"; "sys_rbac": "/sys/rbac";
"system_rbac_region": "/system/rbac/region"; "sys_rbac_region": "/sys/rbac/region";
}; };
/** /**
@ -65,7 +65,7 @@ declare module "@elegant-router/types" {
| "home" | "home"
| "iframe-page" | "iframe-page"
| "login" | "login"
| "system" | "sys"
>; >;
/** /**
@ -88,8 +88,8 @@ declare module "@elegant-router/types" {
| "iframe-page" | "iframe-page"
| "login" | "login"
| "home" | "home"
| "system_conf_dictionary" | "sys_core_dictionary"
| "system_rbac_region" | "sys_rbac_region"
>; >;
/** /**

View File

@ -5,7 +5,7 @@ import { $t } from '@/locales';
<template> <template>
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto"> <div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
<NCard <NCard
:title="$t('page.system.conf.dictionary.title')" :title="$t('page.sys.core.dictionary.title')"
:bordered="false" :bordered="false"
size="small" size="small"
class="card-wrapper sm:flex-1-hidden" class="card-wrapper sm:flex-1-hidden"

View File

@ -5,7 +5,7 @@ import { $t } from '@/locales';
<template> <template>
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto"> <div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
<NCard <NCard
:title="$t('page.system.rbac.region.title')" :title="$t('page.sys.rbac.region.title')"
:bordered="false" :bordered="false"
size="small" size="small"
class="card-wrapper sm:flex-1-hidden" class="card-wrapper sm:flex-1-hidden"