mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-12 07:25:39 +08:00
fix(workspace): 快捷入口对接真实菜单跳转,扩充可选入口池
- 修正 7 个 routeName 为后端菜单 path 字段 (menu.api.ts 中 name=menu.path, 原值误用菜单 name/组件名导致跳转全部失效; NotifyCenter 为前端 core.ts 硬编码路由保留原名) - 新增 12 个可选扩展入口 (支付订单/退款订单/资金交易/角色/菜单/操作日志/通知公告/支付产品/平台配置/在线用户/分析页/支付调试), defaultVisible=false 用户按需添加 - 补充 zh-CN/en-US quickEntry 标题 i18n
This commit is contained in:
@@ -50,6 +50,18 @@
|
||||
"dict": "Dictionaries",
|
||||
"loginLog": "Login Logs",
|
||||
"security": "Security",
|
||||
"payOrder": "Payment Orders",
|
||||
"refundOrder": "Refund Orders",
|
||||
"payTrade": "Fund Trades",
|
||||
"role": "Roles",
|
||||
"menu": "Menus",
|
||||
"operateLog": "Operate Logs",
|
||||
"notice": "Notices",
|
||||
"productConfig": "Payment Products",
|
||||
"platformConfig": "Platform Config",
|
||||
"onlineUser": "Online Users",
|
||||
"analytics": "Analytics",
|
||||
"developTrade": "Payment Develop",
|
||||
"empty": "No accessible quick entries",
|
||||
"edit": "Edit",
|
||||
"editTitle": "Edit Quick Entry",
|
||||
|
||||
@@ -50,6 +50,18 @@
|
||||
"dict": "字典管理",
|
||||
"loginLog": "登录日志",
|
||||
"security": "安全配置",
|
||||
"payOrder": "支付订单",
|
||||
"refundOrder": "退款订单",
|
||||
"payTrade": "资金交易",
|
||||
"role": "角色管理",
|
||||
"menu": "菜单管理",
|
||||
"operateLog": "操作日志",
|
||||
"notice": "通知公告",
|
||||
"productConfig": "支付产品管理",
|
||||
"platformConfig": "平台配置",
|
||||
"onlineUser": "在线用户",
|
||||
"analytics": "分析页",
|
||||
"developTrade": "支付调试",
|
||||
"empty": "暂无可访问的快捷入口",
|
||||
"edit": "编辑",
|
||||
"editTitle": "编辑快捷入口",
|
||||
|
||||
@@ -25,11 +25,14 @@ export interface QuickEntryMeta {
|
||||
*
|
||||
* 单一事实源:所有可用入口在此声明,widget 与编辑抽屉共用
|
||||
* 新增入口只需在此数组追加一项
|
||||
*
|
||||
* 注意:routeName 必须等于后端菜单的 path 字段(前端 menu.api.ts 中 name = menu.path),
|
||||
* 而非菜单的 name 字段或组件文件名。NotifyCenter 为前端 core.ts 硬编码路由,保留原 name。
|
||||
*/
|
||||
export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
{
|
||||
key: 'merchant',
|
||||
routeName: 'MerchantList',
|
||||
routeName: '/payment/merchant/info',
|
||||
icon: 'lucide:shopping-bag',
|
||||
titleKey: 'dashboard.workspace.quickEntry.merchant',
|
||||
color: 'bg-blue-500',
|
||||
@@ -39,7 +42,7 @@ export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
},
|
||||
{
|
||||
key: 'app',
|
||||
routeName: 'MchAppInfoList',
|
||||
routeName: '/payment/merchant/app',
|
||||
icon: 'lucide:app-window',
|
||||
titleKey: 'dashboard.workspace.quickEntry.app',
|
||||
color: 'bg-emerald-500',
|
||||
@@ -49,7 +52,7 @@ export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
},
|
||||
{
|
||||
key: 'channelMerchant',
|
||||
routeName: 'ChannelMerchantList',
|
||||
routeName: '/payment/merchant/channel-merchant',
|
||||
icon: 'lucide:plug',
|
||||
titleKey: 'dashboard.workspace.quickEntry.channelMerchant',
|
||||
color: 'bg-violet-500',
|
||||
@@ -69,7 +72,7 @@ export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
},
|
||||
{
|
||||
key: 'user',
|
||||
routeName: 'UserList',
|
||||
routeName: '/iam/user',
|
||||
icon: 'lucide:users-round',
|
||||
titleKey: 'dashboard.workspace.quickEntry.user',
|
||||
color: 'bg-rose-500',
|
||||
@@ -79,7 +82,7 @@ export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
},
|
||||
{
|
||||
key: 'dict',
|
||||
routeName: 'SystemDict',
|
||||
routeName: '/system/basic/dict',
|
||||
icon: 'lucide:book-open',
|
||||
titleKey: 'dashboard.workspace.quickEntry.dict',
|
||||
color: 'bg-cyan-500',
|
||||
@@ -89,7 +92,7 @@ export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
},
|
||||
{
|
||||
key: 'loginLog',
|
||||
routeName: 'SystemLoginLog',
|
||||
routeName: '/system/log/login',
|
||||
icon: 'lucide:log-in',
|
||||
titleKey: 'dashboard.workspace.quickEntry.loginLog',
|
||||
color: 'bg-slate-500',
|
||||
@@ -99,7 +102,7 @@ export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
},
|
||||
{
|
||||
key: 'security',
|
||||
routeName: 'SecurityConfig',
|
||||
routeName: '/system/config/security',
|
||||
icon: 'lucide:shield-check',
|
||||
titleKey: 'dashboard.workspace.quickEntry.security',
|
||||
color: 'bg-indigo-500',
|
||||
@@ -107,6 +110,127 @@ export const ENTRY_CATALOG: QuickEntryMeta[] = [
|
||||
defaultVisible: true,
|
||||
defaultOrder: 8,
|
||||
},
|
||||
// 以下为可选扩展入口(默认不显示,用户在编辑抽屉按需添加)
|
||||
{
|
||||
key: 'payOrder',
|
||||
routeName: '/trade/normal-pay',
|
||||
icon: 'lucide:receipt',
|
||||
titleKey: 'dashboard.workspace.quickEntry.payOrder',
|
||||
color: 'bg-blue-600',
|
||||
perms: [PermCodes.Payment.Order.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 9,
|
||||
},
|
||||
{
|
||||
key: 'refundOrder',
|
||||
routeName: '/trade/refund-order',
|
||||
icon: 'lucide:rotate-ccw',
|
||||
titleKey: 'dashboard.workspace.quickEntry.refundOrder',
|
||||
color: 'bg-orange-500',
|
||||
perms: [PermCodes.Payment.Refund.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 10,
|
||||
},
|
||||
{
|
||||
key: 'payTrade',
|
||||
routeName: '/trade/pay-trade',
|
||||
icon: 'lucide:arrow-left-right',
|
||||
titleKey: 'dashboard.workspace.quickEntry.payTrade',
|
||||
color: 'bg-teal-500',
|
||||
perms: [PermCodes.Payment.Trade.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 11,
|
||||
},
|
||||
{
|
||||
key: 'role',
|
||||
routeName: '/iam/perm/role',
|
||||
icon: 'lucide:shield-user',
|
||||
titleKey: 'dashboard.workspace.quickEntry.role',
|
||||
color: 'bg-purple-500',
|
||||
perms: [PermCodes.Iam.Role.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 12,
|
||||
},
|
||||
{
|
||||
key: 'menu',
|
||||
routeName: '/system/basic/menu',
|
||||
icon: 'lucide:panel-top',
|
||||
titleKey: 'dashboard.workspace.quickEntry.menu',
|
||||
color: 'bg-sky-500',
|
||||
perms: [PermCodes.Iam.PermMenu.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 13,
|
||||
},
|
||||
{
|
||||
key: 'operateLog',
|
||||
routeName: '/system/log/operate',
|
||||
icon: 'lucide:activity',
|
||||
titleKey: 'dashboard.workspace.quickEntry.operateLog',
|
||||
color: 'bg-slate-600',
|
||||
perms: [PermCodes.System.Log.Operate.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 14,
|
||||
},
|
||||
{
|
||||
key: 'notice',
|
||||
routeName: '/system/notify/notice',
|
||||
icon: 'lucide:megaphone',
|
||||
titleKey: 'dashboard.workspace.quickEntry.notice',
|
||||
color: 'bg-amber-600',
|
||||
perms: [PermCodes.System.Notify.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 15,
|
||||
},
|
||||
{
|
||||
key: 'productConfig',
|
||||
routeName: '/payment/config/product',
|
||||
icon: 'lucide:layout-grid',
|
||||
titleKey: 'dashboard.workspace.quickEntry.productConfig',
|
||||
color: 'bg-pink-500',
|
||||
perms: [PermCodes.Payment.ProductConfig.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 16,
|
||||
},
|
||||
{
|
||||
key: 'platformConfig',
|
||||
routeName: '/system/config/platform',
|
||||
icon: 'lucide:settings',
|
||||
titleKey: 'dashboard.workspace.quickEntry.platformConfig',
|
||||
color: 'bg-gray-500',
|
||||
perms: [PermCodes.System.PlatformConfig.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 17,
|
||||
},
|
||||
{
|
||||
key: 'onlineUser',
|
||||
routeName: '/system/monitor/online',
|
||||
icon: 'lucide:users',
|
||||
titleKey: 'dashboard.workspace.quickEntry.onlineUser',
|
||||
color: 'bg-green-500',
|
||||
perms: [PermCodes.Iam.OnlineUser.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 18,
|
||||
},
|
||||
{
|
||||
key: 'analytics',
|
||||
routeName: '/analytics',
|
||||
icon: 'lucide:area-chart',
|
||||
titleKey: 'dashboard.workspace.quickEntry.analytics',
|
||||
color: 'bg-indigo-400',
|
||||
perms: [],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 19,
|
||||
},
|
||||
{
|
||||
key: 'developTrade',
|
||||
routeName: '/develop/trade',
|
||||
icon: 'lucide:credit-card',
|
||||
titleKey: 'dashboard.workspace.quickEntry.developTrade',
|
||||
color: 'bg-red-500',
|
||||
perms: [PermCodes.Develop.Trade.VIEW],
|
||||
defaultVisible: false,
|
||||
defaultOrder: 20,
|
||||
},
|
||||
];
|
||||
|
||||
/** 默认序列:defaultVisible=true 的按 defaultOrder 升序 */
|
||||
|
||||
Reference in New Issue
Block a user