feat-wip(components): 相关页面及路由代码提交"
This commit is contained in:
@ -225,7 +225,12 @@ const local: App.I18n.Schema = {
|
|||||||
404: 'Page Not Found',
|
404: 'Page Not Found',
|
||||||
500: 'Server Error',
|
500: 'Server Error',
|
||||||
'iframe-page': 'Iframe',
|
'iframe-page': 'Iframe',
|
||||||
home: 'Home'
|
home: 'Home',
|
||||||
|
system: 'System',
|
||||||
|
system_conf: 'Configuration',
|
||||||
|
system_conf_dictionary: 'Dictionary',
|
||||||
|
system_rbac: 'Organization',
|
||||||
|
system_rbac_region: 'Region'
|
||||||
},
|
},
|
||||||
page: {
|
page: {
|
||||||
login: {
|
login: {
|
||||||
@ -302,6 +307,18 @@ const local: App.I18n.Schema = {
|
|||||||
desc5: 'Soybean just wrote some of the workbench pages casually, and it was enough to see!'
|
desc5: 'Soybean just wrote some of the workbench pages casually, and it was enough to see!'
|
||||||
},
|
},
|
||||||
creativity: 'Creativity'
|
creativity: 'Creativity'
|
||||||
|
},
|
||||||
|
system: {
|
||||||
|
conf: {
|
||||||
|
dictionary: {
|
||||||
|
title: 'Dictionary'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
rbac: {
|
||||||
|
region: {
|
||||||
|
title: 'Region'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
|
|||||||
@ -222,7 +222,12 @@ const local: App.I18n.Schema = {
|
|||||||
404: '页面不存在',
|
404: '页面不存在',
|
||||||
500: '服务器错误',
|
500: '服务器错误',
|
||||||
'iframe-page': '外链页面',
|
'iframe-page': '外链页面',
|
||||||
home: '首页'
|
home: '首页',
|
||||||
|
system: '系统管理',
|
||||||
|
system_conf: '系统配置',
|
||||||
|
system_conf_dictionary: '数据字典',
|
||||||
|
system_rbac: '组织架构',
|
||||||
|
system_rbac_region: '行政区划'
|
||||||
},
|
},
|
||||||
page: {
|
page: {
|
||||||
login: {
|
login: {
|
||||||
@ -299,6 +304,18 @@ const local: App.I18n.Schema = {
|
|||||||
desc5: 'Soybean 刚才把工作台页面随便写了一些,凑合能看了!'
|
desc5: 'Soybean 刚才把工作台页面随便写了一些,凑合能看了!'
|
||||||
},
|
},
|
||||||
creativity: '创意'
|
creativity: '创意'
|
||||||
|
},
|
||||||
|
system: {
|
||||||
|
conf: {
|
||||||
|
dictionary: {
|
||||||
|
title: '数据字典'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
rbac: {
|
||||||
|
region: {
|
||||||
|
title: '行政区划'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
|
|||||||
@ -21,4 +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"),
|
||||||
|
system_rbac_region: () => import("@/views/system/rbac/region/index.vue"),
|
||||||
};
|
};
|
||||||
|
|||||||
@ -47,7 +47,7 @@ export const generatedRoutes: GeneratedRoute[] = [
|
|||||||
title: 'home',
|
title: 'home',
|
||||||
i18nKey: 'route.home',
|
i18nKey: 'route.home',
|
||||||
icon: 'mdi:monitor-dashboard',
|
icon: 'mdi:monitor-dashboard',
|
||||||
order: 1
|
order: 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -74,5 +74,60 @@ export const generatedRoutes: GeneratedRoute[] = [
|
|||||||
constant: true,
|
constant: true,
|
||||||
hideInMenu: 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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@ -168,7 +168,12 @@ const routeMap: RouteMap = {
|
|||||||
"500": "/500",
|
"500": "/500",
|
||||||
"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",
|
||||||
|
"system_conf": "/system/conf",
|
||||||
|
"system_conf_dictionary": "/system/conf/dictionary",
|
||||||
|
"system_rbac": "/system/rbac",
|
||||||
|
"system_rbac_region": "/system/rbac/region"
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
12
src/typings/app.d.ts
vendored
12
src/typings/app.d.ts
vendored
@ -546,6 +546,18 @@ declare namespace App {
|
|||||||
};
|
};
|
||||||
creativity: string;
|
creativity: string;
|
||||||
};
|
};
|
||||||
|
system: {
|
||||||
|
conf: {
|
||||||
|
dictionary: {
|
||||||
|
title: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
rbac: {
|
||||||
|
region: {
|
||||||
|
title: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
form: {
|
form: {
|
||||||
required: string;
|
required: string;
|
||||||
|
|||||||
8
src/typings/elegant-router.d.ts
vendored
8
src/typings/elegant-router.d.ts
vendored
@ -23,6 +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";
|
||||||
|
"system_conf": "/system/conf";
|
||||||
|
"system_conf_dictionary": "/system/conf/dictionary";
|
||||||
|
"system_rbac": "/system/rbac";
|
||||||
|
"system_rbac_region": "/system/rbac/region";
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,6 +65,7 @@ declare module "@elegant-router/types" {
|
|||||||
| "home"
|
| "home"
|
||||||
| "iframe-page"
|
| "iframe-page"
|
||||||
| "login"
|
| "login"
|
||||||
|
| "system"
|
||||||
>;
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -82,6 +88,8 @@ declare module "@elegant-router/types" {
|
|||||||
| "iframe-page"
|
| "iframe-page"
|
||||||
| "login"
|
| "login"
|
||||||
| "home"
|
| "home"
|
||||||
|
| "system_conf_dictionary"
|
||||||
|
| "system_rbac_region"
|
||||||
>;
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
16
src/views/system/conf/dictionary/index.vue
Normal file
16
src/views/system/conf/dictionary/index.vue
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { $t } from '@/locales';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
|
||||||
|
<NCard
|
||||||
|
:title="$t('page.system.conf.dictionary.title')"
|
||||||
|
:bordered="false"
|
||||||
|
size="small"
|
||||||
|
class="card-wrapper sm:flex-1-hidden"
|
||||||
|
></NCard>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
16
src/views/system/rbac/region/index.vue
Normal file
16
src/views/system/rbac/region/index.vue
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { $t } from '@/locales';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
|
||||||
|
<NCard
|
||||||
|
:title="$t('page.system.rbac.region.title')"
|
||||||
|
:bordered="false"
|
||||||
|
size="small"
|
||||||
|
class="card-wrapper sm:flex-1-hidden"
|
||||||
|
></NCard>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
Reference in New Issue
Block a user