完善页面布局
This commit is contained in:
@@ -123,10 +123,25 @@ export const componentMap: Map<string, any> = new Map([
|
||||
// 数据模块 - 暂时使用占位组件
|
||||
['StatisticIndex', PlaceholderPage],
|
||||
|
||||
// 设置模块 - 暂时使用占位组件
|
||||
// 设置模块
|
||||
['SettingSystemConfig', defineAsyncComponent(() => import('@/pages/mall/admin/setting/system/config.uvue'))],
|
||||
['SettingSystemAdmin', PlaceholderPage],
|
||||
['SettingSystemRole', PlaceholderPage],
|
||||
['SettingMessage', defineAsyncComponent(() => import('@/pages/mall/admin/setting/message.uvue'))],
|
||||
['SettingAgreement', defineAsyncComponent(() => import('@/pages/mall/admin/setting/agreement.uvue'))],
|
||||
['SettingTicket', defineAsyncComponent(() => import('@/pages/mall/admin/setting/ticket.uvue'))],
|
||||
['SettingAuthRole', defineAsyncComponent(() => import('@/pages/mall/admin/setting/auth/role.uvue'))],
|
||||
['SettingAuthAdmin', defineAsyncComponent(() => import('@/pages/mall/admin/setting/auth/admin.uvue'))],
|
||||
['SettingAuthPermission', defineAsyncComponent(() => import('@/pages/mall/admin/setting/auth/permission.uvue'))],
|
||||
['SettingDeliveryStaff', defineAsyncComponent(() => import('@/pages/mall/admin/setting/delivery/staff.uvue'))],
|
||||
['SettingDeliveryStation', defineAsyncComponent(() => import('@/pages/mall/admin/setting/delivery/station.uvue'))],
|
||||
['SettingDeliveryTemplate', defineAsyncComponent(() => import('@/pages/mall/admin/setting/delivery/template.uvue'))],
|
||||
['SettingInterfaceOnepassConfig', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/onepass/config.uvue'))],
|
||||
['SettingInterfaceOnepassIndex', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/onepass/index.uvue'))],
|
||||
['SettingInterfaceStorage', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/storage.uvue'))],
|
||||
['SettingInterfaceCollect', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/collect.uvue'))],
|
||||
['SettingInterfaceLogistics', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/logistics.uvue'))],
|
||||
['SettingInterfaceESheet', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/e-sheet.uvue'))],
|
||||
['SettingInterfaceSms', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/sms.uvue'))],
|
||||
['SettingInterfacePayment', defineAsyncComponent(() => import('@/pages/mall/admin/setting/interface/payment.uvue'))],
|
||||
|
||||
// 分销模块
|
||||
['DistributionStatistic', PlaceholderPage],
|
||||
|
||||
@@ -92,7 +92,7 @@ export const topMenus: TopMenu[] = [
|
||||
path: '/pages/mall/admin/product/statistic',
|
||||
order: 4,
|
||||
groups: [
|
||||
{ id: 'product-manage', title: '商品管理', order: 1 }
|
||||
{ id: 'product-manage', title: '', order: 1 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -156,7 +156,7 @@ export const topMenus: TopMenu[] = [
|
||||
path: '/pages/mall/admin/cms/article/list',
|
||||
order: 9,
|
||||
groups: [
|
||||
{ id: 'cms-manage', title: '内容管理', order: 1 }
|
||||
{ id: 'cms-manage', title: '', order: 1 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -187,7 +187,10 @@ export const topMenus: TopMenu[] = [
|
||||
order: 12,
|
||||
groups: [
|
||||
{ id: 'setting-system', title: '系统设置', order: 1 },
|
||||
{ id: 'setting-application', title: '应用设置', order: 2 }
|
||||
{ id: 'setting-message', title: '通知管理', order: 2 },
|
||||
{ id: 'setting-auth', title: '权限管理', order: 3 },
|
||||
{ id: 'setting-delivery', title: '物流设置', order: 4 },
|
||||
{ id: 'setting-interface', title: '接口设置', order: 5 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -892,6 +895,7 @@ export const routes: RouteRecord[] = [
|
||||
},
|
||||
|
||||
// ========== 设置模块 ==========
|
||||
// 1. 系统设置
|
||||
{
|
||||
id: 'setting_systemConfig',
|
||||
title: '系统设置',
|
||||
@@ -902,27 +906,168 @@ export const routes: RouteRecord[] = [
|
||||
auth: ['admin-setting-system-config'],
|
||||
order: 1
|
||||
},
|
||||
|
||||
// 2. 通知管理
|
||||
{
|
||||
id: 'setting_systemAdmin',
|
||||
title: '管理员管理',
|
||||
path: '/pages/mall/admin/setting/system/admin',
|
||||
componentKey: 'SettingSystemAdmin',
|
||||
id: 'setting_message',
|
||||
title: '消息管理',
|
||||
path: '/pages/mall/admin/setting/message',
|
||||
componentKey: 'SettingMessage',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-system',
|
||||
auth: ['admin-setting-system-admin'],
|
||||
groupId: 'setting-message',
|
||||
order: 1
|
||||
},
|
||||
{
|
||||
id: 'setting_agreement',
|
||||
title: '协议管理',
|
||||
path: '/pages/mall/admin/setting/agreement',
|
||||
componentKey: 'SettingAgreement',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-message',
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
id: 'setting_systemRole',
|
||||
title: '角色管理',
|
||||
path: '/pages/mall/admin/setting/system/role',
|
||||
componentKey: 'SettingSystemRole',
|
||||
id: 'setting_ticket',
|
||||
title: '客服设置',
|
||||
path: '/pages/mall/admin/setting/ticket',
|
||||
componentKey: 'SettingTicket',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-system',
|
||||
auth: ['admin-setting-system-role'],
|
||||
groupId: 'setting-message',
|
||||
order: 3
|
||||
},
|
||||
|
||||
// 3. 权限管理
|
||||
{
|
||||
id: 'setting_auth_role',
|
||||
title: '角色管理',
|
||||
path: '/pages/mall/admin/setting/auth/role',
|
||||
componentKey: 'SettingAuthRole',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-auth',
|
||||
order: 1
|
||||
},
|
||||
{
|
||||
id: 'setting_auth_admin',
|
||||
title: '管理员管理',
|
||||
path: '/pages/mall/admin/setting/auth/admin',
|
||||
componentKey: 'SettingAuthAdmin',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-auth',
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
id: 'setting_auth_permission',
|
||||
title: '权限管理',
|
||||
path: '/pages/mall/admin/setting/auth/permission',
|
||||
componentKey: 'SettingAuthPermission',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-auth',
|
||||
order: 3
|
||||
},
|
||||
|
||||
// 4. 物流设置
|
||||
{
|
||||
id: 'setting_delivery_staff',
|
||||
title: '配送员管理',
|
||||
path: '/pages/mall/admin/setting/delivery/staff',
|
||||
componentKey: 'SettingDeliveryStaff',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-delivery',
|
||||
order: 1
|
||||
},
|
||||
{
|
||||
id: 'setting_delivery_station',
|
||||
title: '提货点管理',
|
||||
path: '/pages/mall/admin/setting/delivery/station',
|
||||
componentKey: 'SettingDeliveryStation',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-delivery',
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
id: 'setting_delivery_template',
|
||||
title: '运费模板',
|
||||
path: '/pages/mall/admin/setting/delivery/template',
|
||||
componentKey: 'SettingDeliveryTemplate',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-delivery',
|
||||
order: 3
|
||||
},
|
||||
|
||||
// 5. 接口设置
|
||||
{
|
||||
id: 'setting_interface_onepass_config',
|
||||
title: '总平台配置',
|
||||
path: '/pages/mall/admin/setting/interface/onepass/config',
|
||||
componentKey: 'SettingInterfaceOnepassConfig',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 1
|
||||
},
|
||||
{
|
||||
id: 'setting_interface_onepass_index',
|
||||
title: '账号列表',
|
||||
path: '/pages/mall/admin/setting/interface/onepass/index',
|
||||
componentKey: 'SettingInterfaceOnepassIndex',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
id: 'setting_interface_storage',
|
||||
title: '存储配置',
|
||||
path: '/pages/mall/admin/setting/interface/storage',
|
||||
componentKey: 'SettingInterfaceStorage',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 3
|
||||
},
|
||||
{
|
||||
id: 'setting_interface_collect',
|
||||
title: '商品采集',
|
||||
path: '/pages/mall/admin/setting/interface/collect',
|
||||
componentKey: 'SettingInterfaceCollect',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 4
|
||||
},
|
||||
{
|
||||
id: 'setting_interface_logistics',
|
||||
title: '物流查询',
|
||||
path: '/pages/mall/admin/setting/interface/logistics',
|
||||
componentKey: 'SettingInterfaceLogistics',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 5
|
||||
},
|
||||
{
|
||||
id: 'setting_interface_esheet',
|
||||
title: '电子面单',
|
||||
path: '/pages/mall/admin/setting/interface/e-sheet',
|
||||
componentKey: 'SettingInterfaceESheet',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 6
|
||||
},
|
||||
{
|
||||
id: 'setting_interface_sms',
|
||||
title: '短信接口',
|
||||
path: '/pages/mall/admin/setting/interface/sms',
|
||||
componentKey: 'SettingInterfaceSms',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 7
|
||||
},
|
||||
{
|
||||
id: 'setting_interface_payment',
|
||||
title: '商城支付',
|
||||
path: '/pages/mall/admin/setting/interface/payment',
|
||||
componentKey: 'SettingInterfacePayment',
|
||||
parentId: 'setting',
|
||||
groupId: 'setting-interface',
|
||||
order: 8
|
||||
},
|
||||
|
||||
// ========== 分销模块 ==========
|
||||
{
|
||||
id: 'distribution_statistic',
|
||||
@@ -1055,7 +1200,7 @@ export const routes: RouteRecord[] = [
|
||||
order: 6
|
||||
},
|
||||
{
|
||||
id: 'decoration_link',
|
||||
id: 'DecorationLink',
|
||||
title: '链接管理',
|
||||
path: '/pages/mall/admin/decoration/link',
|
||||
componentKey: 'DecorationLink',
|
||||
@@ -1064,6 +1209,30 @@ export const routes: RouteRecord[] = [
|
||||
order: 7
|
||||
},
|
||||
|
||||
// ========== 设置模块 (1:1 复刻 CRMEB 路由结构) ==========
|
||||
// 通知管理
|
||||
{ id: 'setting_message_index', title: '消息管理', path: '/pages/mall/admin/setting/message/index', componentKey: 'SettingMessageIndex', parentId: 'setting', groupId: 'setting-message', order: 1 },
|
||||
{ id: 'setting_protocol_index', title: '协议设置', path: '/pages/mall/admin/setting/protocol/index', componentKey: 'SettingProtocolIndex', parentId: 'setting', groupId: 'setting-message', order: 2 },
|
||||
{ id: 'setting_ticket_index', title: '小票配置', path: '/pages/mall/admin/setting/ticket/index', componentKey: 'SettingTicketIndex', parentId: 'setting', groupId: 'setting-message', order: 3 },
|
||||
|
||||
// 权限管理
|
||||
{ id: 'setting_auth_role', title: '角色管理', path: '/pages/mall/admin/setting/auth/role/index', componentKey: 'SettingAuthRole', parentId: 'setting', groupId: 'setting-auth', order: 1 },
|
||||
{ id: 'setting_auth_admin', title: '管理员列表', path: '/pages/mall/admin/setting/auth/admin-list/index', componentKey: 'SettingAuthAdmin', parentId: 'setting', groupId: 'setting-auth', order: 2 },
|
||||
{ id: 'setting_auth_perm', title: '权限设置', path: '/pages/mall/admin/setting/auth/permission/index', componentKey: 'SettingAuthPerm', parentId: 'setting', groupId: 'setting-auth', order: 3 },
|
||||
|
||||
// 物流设置
|
||||
{ id: 'setting_delivery_courier', title: '配送员管理', path: '/pages/mall/admin/setting/delivery/courier/index', componentKey: 'SettingDeliveryCourier', parentId: 'setting', groupId: 'setting-delivery', order: 1 },
|
||||
{ id: 'setting_delivery_pickup', title: '提货点设置', path: '/pages/mall/admin/setting/delivery/pickup/index', componentKey: 'SettingDeliveryPickup', parentId: 'setting', groupId: 'setting-delivery', order: 2 },
|
||||
{ id: 'setting_delivery_freight', title: '运费模板', path: '/pages/mall/admin/setting/delivery/freight/index', componentKey: 'SettingDeliveryFreight', parentId: 'setting', groupId: 'setting-delivery', order: 3 },
|
||||
|
||||
// 接口设置
|
||||
{ id: 'setting_api_storage', title: '系统存储配置', path: '/pages/mall/admin/setting/api/yht/storage/index', componentKey: 'SettingApiStorage', parentId: 'setting', groupId: 'setting-interface', order: 1 },
|
||||
{ id: 'setting_api_collect', title: '商品采集配置', path: '/pages/mall/admin/setting/api/yht/collect/index', componentKey: 'SettingApiCollect', parentId: 'setting', groupId: 'setting-interface', order: 2 },
|
||||
{ id: 'setting_api_logistics', title: '物流查询配置', path: '/pages/mall/admin/setting/api/yht/logistics/index', componentKey: 'SettingApiLogistics', parentId: 'setting', groupId: 'setting-interface', order: 3 },
|
||||
{ id: 'setting_api_waybill', title: '电子面单配置', path: '/pages/mall/admin/setting/api/yht/waybill/index', componentKey: 'SettingApiWaybill', parentId: 'setting', groupId: 'setting-interface', order: 4 },
|
||||
{ id: 'setting_api_sms', title: '短信接口配置', path: '/pages/mall/admin/setting/api/yht/sms/index', componentKey: 'SettingApiSms', parentId: 'setting', groupId: 'setting-interface', order: 5 },
|
||||
{ id: 'setting_api_pay', title: '商城支付配置', path: '/pages/mall/admin/setting/api/yht/pay/index', componentKey: 'SettingApiPay', parentId: 'setting', groupId: 'setting-interface', order: 6 },
|
||||
|
||||
// ========== 应用模块 ==========
|
||||
{
|
||||
id: 'app_statistic',
|
||||
|
||||
37
layouts/admin/router/settingSubSiderMenu.uts
Normal file
37
layouts/admin/router/settingSubSiderMenu.uts
Normal file
@@ -0,0 +1,37 @@
|
||||
export type MenuNode = {
|
||||
id: string
|
||||
title: string
|
||||
type: 'group' | 'page'
|
||||
path?: string // type=page 必填
|
||||
children?: MenuNode[] // type=group 必填
|
||||
}
|
||||
|
||||
export const settingSubSiderMenu: MenuNode[] = [
|
||||
{ id: 'setting_message_index', title: '消息管理', type: 'page', path: '/pages/mall/admin/setting/message/index' },
|
||||
{ id: 'setting_protocol_index', title: '协议设置', type: 'page', path: '/pages/mall/admin/setting/protocol/index' },
|
||||
{ id: 'setting_ticket_index', title: '小票配置', type: 'page', path: '/pages/mall/admin/setting/ticket/index' },
|
||||
{ id: 'auth_group', title: '管理权限', type: 'group', children: [
|
||||
{ id: 'setting_auth_role', title: '角色管理', type: 'page', path: '/pages/mall/admin/setting/auth/role/index' },
|
||||
{ id: 'setting_auth_admin', title: '管理员列表', type: 'page', path: '/pages/mall/admin/setting/auth/admin-list/index' },
|
||||
{ id: 'setting_auth_perm', title: '权限设置', type: 'page', path: '/pages/mall/admin/setting/auth/permission/index' }
|
||||
]
|
||||
},
|
||||
{ id: 'delivery_group', title: '发货设置', type: 'group', children: [
|
||||
{ id: 'setting_delivery_courier', title: '配送员管理', type: 'page', path: '/pages/mall/admin/setting/delivery/courier/index' },
|
||||
{ id: 'setting_delivery_pickup', title: '提货点设置', type: 'page', path: '/pages/mall/admin/setting/delivery/pickup/index' },
|
||||
{ id: 'setting_delivery_freight', title: '运费模板', type: 'page', path: '/pages/mall/admin/setting/delivery/freight/index' }
|
||||
]
|
||||
},
|
||||
{ id: 'api_group', title: '接口配置', type: 'group', children: [
|
||||
{ id: 'yh_tong', title: '一号通', type: 'group', children: [
|
||||
{ id: 'setting_api_storage', title: '系统存储配置', type: 'page', path: '/pages/mall/admin/setting/api/yht/storage/index' },
|
||||
{ id: 'setting_api_collect', title: '商品采集配置', type: 'page', path: '/pages/mall/admin/setting/api/yht/collect/index' },
|
||||
{ id: 'setting_api_logistics', title: '物流查询配置', type: 'page', path: '/pages/mall/admin/setting/api/yht/logistics/index' },
|
||||
{ id: 'setting_api_waybill', title: '电子面单配置', type: 'page', path: '/pages/mall/admin/setting/api/yht/waybill/index' },
|
||||
{ id: 'setting_api_sms', title: '短信接口配置', type: 'page', path: '/pages/mall/admin/setting/api/yht/sms/index' },
|
||||
{ id: 'setting_api_pay', title: '商城支付配置', type: 'page', path: '/pages/mall/admin/setting/api/yht/pay/index' }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user