完善页面布局
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user