新增开放平台

This commit is contained in:
gyq
2024-02-20 09:56:17 +08:00
parent b32c47c176
commit 64c0ec97c9
20 changed files with 782 additions and 313 deletions

View File

@@ -275,279 +275,322 @@ export const asyncRoutes = [
// }
// ]
// },
{
path: '/organization',
component: layout,
meta: {
title: '大机构管理',
roles: ['MG'],
isHide: true
},
redirect: '/organization/big_organization',
children: [
{
path: '/organization/big_organization',
component: () => import('@/views/organization/big_organization.vue'),
meta: {
title: '大机构',
icon: 'Tickets'
}
},
{
path: '/organization/big_organization/agent_detail',
name: 'agent_detail',
component: () => import('@/views/organization/agent_detail.vue'),
meta: {
title: '机构详情',
isHide: true,
activeMenu: '/organization/big_organization'
}
}
]
},
{
path: '/mini_organization_manage',
component: layout,
meta: {
title: '小机构管理',
roles: ['FO'],
isHide: true
},
redirect: '/mini_organization_manage/mini_organization',
children: [
{
path: '/mini_organization/mini_organization',
component: () => import('@/views/organization/mini_organization.vue'),
meta: {
title: '小机构',
icon: 'SetUp'
}
},
{
path: '/organization/mini_organization/mini_agent_detail',
name: 'mini_agent_detail',
component: () => import('@/views/organization/mini_agent_detail.vue'),
meta: {
title: '小机构详情',
isHide: true,
activeMenu: '/mini_organization/mini_organization'
}
}
]
},
{
path: '/agent_manage',
component: layout,
meta: {
title: '大代理管理',
roles: ['FO', 'SO'],
isHide: true
},
redirect: '/agent_manage/agent_list',
children: [
{
path: '/agent_manage/agent_list',
component: () => import('@/views/organization/agent_list.vue'),
meta: {
title: '大代理',
icon: 'Discount'
}
}
]
},
{
path: '/promotion_manage',
component: layout,
meta: {
title: '代理',
icon: 'Connection',
},
redirect: '/promotion_manage/one_promotion_list',
children: [
{
path: '/promotion_manage/one_promotion_list',
component: () => import('@/views/organization/one_promotion_list.vue'),
meta: {
title: '一级代理',
icon: 'User',
roles: ['FO', 'SO', 'AG']
}
},
{
path: '/promotion_manage/two_promotion_list',
component: () => import('@/views/organization/two_promotion_list.vue'),
meta: {
title: '二级代理',
icon: 'User',
roles: ['FO', 'SO', 'AG', 'FB']
}
}
]
},
// {
// path: '/organization',
// component: layout,
// meta: {
// title: '大机构管理',
// // roles: ['MG'],
// isHide: true
// },
// redirect: '/organization/big_organization',
// children: [
// {
// path: '/organization/big_organization',
// component: () => import('@/views/organization/big_organization.vue'),
// meta: {
// title: '大机构',
// icon: 'Tickets'
// }
// },
// {
// path: '/organization/big_organization/agent_detail',
// name: 'agent_detail',
// component: () => import('@/views/organization/agent_detail.vue'),
// meta: {
// title: '机构详情',
// isHide: true,
// activeMenu: '/organization/big_organization'
// }
// }
// ]
// },
// {
// path: '/mini_organization_manage',
// component: layout,
// meta: {
// title: '小机构管理',
// // roles: ['FO'],
// isHide: true
// },
// redirect: '/mini_organization_manage/mini_organization',
// children: [
// {
// path: '/mini_organization/mini_organization',
// component: () => import('@/views/organization/mini_organization.vue'),
// meta: {
// title: '小机构',
// icon: 'SetUp'
// }
// },
// {
// path: '/organization/mini_organization/mini_agent_detail',
// name: 'mini_agent_detail',
// component: () => import('@/views/organization/mini_agent_detail.vue'),
// meta: {
// title: '小机构详情',
// isHide: true,
// activeMenu: '/mini_organization/mini_organization'
// }
// }
// ]
// },
// {
// path: '/agent_manage',
// component: layout,
// meta: {
// title: '大代理管理',
// // roles: ['FO', 'SO'],
// isHide: true
// },
// redirect: '/agent_manage/agent_list',
// children: [
// {
// path: '/agent_manage/agent_list',
// component: () => import('@/views/organization/agent_list.vue'),
// meta: {
// title: '大代理',
// icon: 'Discount'
// }
// }
// ]
// },
// {
// path: '/promotion_manage',
// component: layout,
// meta: {
// title: '代理',
// icon: 'Connection',
// },
// redirect: '/promotion_manage/one_promotion_list',
// children: [
// {
// path: '/promotion_manage/one_promotion_list',
// component: () => import('@/views/organization/one_promotion_list.vue'),
// meta: {
// title: '一级代理',
// icon: 'User',
// // roles: ['FO', 'SO', 'AG']
// }
// },
// {
// path: '/promotion_manage/two_promotion_list',
// component: () => import('@/views/organization/two_promotion_list.vue'),
// meta: {
// title: '二级代理',
// icon: 'User',
// // roles: ['FO', 'SO', 'AG', 'FB']
// }
// }
// ]
// },
{
path: '/shop_manage',
component: layout,
meta: {
title: '商家管理',
roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
title: '商户信息',
// roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
icon: 'Handbag'
},
redirect: '/shop_manage/shop_list',
children: [
{
path: '/shop_manage/shop_list',
name: 'shop_list',
component: () => import('@/views/organization/shop_list.vue'),
meta: {
title: '商家列表',
icon: 'Tickets'
}
},
// {
// path: '/shop_manage/shop_list',
// name: 'shop_list',
// component: () => import('@/views/organization/shop_list.vue'),
// meta: {
// title: '商家列表',
// icon: 'Tickets'
// }
// },
{
path: '/shop_manage/shop_detail',
name: 'shop_detail',
component: () => import('@/views/organization/shop_detail.vue'),
meta: {
title: '详情',
isHide: true,
activeMenu: '/shop_manage/shop_list'
title: '基础信息',
icon: 'Tickets'
}
},
{
path: '/shop_manage/maker_apply',
component: () => import('@/views/organization/maker_apply.vue'),
path: '/shop_manage/appkey',
component: () => import('@/views/organization/appkey.vue'),
meta: {
title: '创客申请',
icon: 'User'
title: '支付参数',
icon: 'Connection'
}
}
]
},
{
path: '/withdraw_manage',
path: '/order',
component: layout,
meta: {
title: '提现管理',
roles: ['FO', 'SO'],
title: '订单管理',
// roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
icon: 'Handbag',
isHide: true
},
redirect: '/withdraw_manage/withdraw_list',
redirect: '/order/order_list',
children: [
{
path: '/withdraw_manage/withdraw_list',
component: () => import('@/views/withdraw/withdraw_list.vue'),
path: '/order/order_list',
name: 'order_list',
component: () => import('@/views/order/order_list.vue'),
meta: {
title: '提现申请',
icon: 'CreditCard'
}
}
]
},
{
path: '/device_manage',
component: layout,
meta: {
title: '设备管理',
isHide: true
},
redirect: '/device_manage/device_list',
children: [
{
path: '/device_manage/device_list',
component: () => import('@/views/device/device_list.vue'),
meta: {
title: '设备列表',
icon: 'TakeawayBox'
}
}
]
},
{
path: '/total_earnings',
component: layout,
meta: {
title: '累计收益管理',
isHide: true
},
redirect: '/total_earnings/total_earnings_list',
children: [
{
path: '/total_earnings/total_earnings_list',
component: () => import('@/views/total_earnings/total_earnings_list.vue'),
meta: {
title: '累计收益',
icon: 'Coin'
}
}
]
},
{
path: '/promotion',
component: layout,
meta: {
title: '推广图片管理',
isHide: true,
roles: ['MG']
},
redirect: '/promotion/promotion_list',
children: [
{
path: '/promotion/promotion_list',
component: () => import('@/views/promotion/promotion_list.vue'),
meta: {
title: '推广图片',
icon: 'PictureRounded'
}
}
]
},
{
path: '/app_manage',
component: layout,
meta: {
title: 'APP管理',
icon: 'Iphone',
roles: ['MG']
},
redirect: '/app_manage/menu_list',
children: [
{
path: '/app_manage/menu_list',
component: () => import('@/views/app_manage/menu_list.vue'),
meta: {
title: '菜单管理',
title: '订单列表',
icon: 'Tickets'
}
}
},
]
},
{
path: '/setting',
path: '/doc',
component: layout,
meta: {
title: '系统设置',
icon: 'Setting',
roles: ['MG']
title: '开发文档',
// roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
icon: 'Handbag',
isHide: true
},
redirect: '/setting/appid_manage',
redirect: '/doc/doc_detail',
children: [
{
path: '/setting/appid_manage',
component: () => import('@/views/setting/appid_manage.vue'),
path: '/doc/doc_detail',
name: 'doc_detail',
component: () => import('@/views/doc/doc_detail.vue'),
meta: {
title: 'Appid管理',
icon: 'Tickets'
title: '开发文档',
icon: 'Document'
}
}
},
]
},
// {
// path: '/withdraw_manage',
// component: layout,
// meta: {
// title: '提现管理',
// // roles: ['FO', 'SO'],
// isHide: true
// },
// redirect: '/withdraw_manage/withdraw_list',
// children: [
// {
// path: '/withdraw_manage/withdraw_list',
// component: () => import('@/views/withdraw/withdraw_list.vue'),
// meta: {
// title: '提现申请',
// icon: 'CreditCard'
// }
// }
// ]
// },
// {
// path: '/device_manage',
// component: layout,
// meta: {
// title: '设备管理',
// isHide: true
// },
// redirect: '/device_manage/device_list',
// children: [
// {
// path: '/device_manage/device_list',
// component: () => import('@/views/device/device_list.vue'),
// meta: {
// title: '设备列表',
// icon: 'TakeawayBox'
// }
// }
// ]
// },
// {
// path: '/total_earnings',
// component: layout,
// meta: {
// title: '累计收益管理',
// isHide: true
// },
// redirect: '/total_earnings/total_earnings_list',
// children: [
// {
// path: '/total_earnings/total_earnings_list',
// component: () => import('@/views/total_earnings/total_earnings_list.vue'),
// meta: {
// title: '累计收益',
// icon: 'Coin'
// }
// }
// ]
// },
// {
// path: '/promotion',
// component: layout,
// meta: {
// title: '推广图片管理',
// isHide: true,
// // roles: ['MG']
// },
// redirect: '/promotion/promotion_list',
// children: [
// {
// path: '/promotion/promotion_list',
// component: () => import('@/views/promotion/promotion_list.vue'),
// meta: {
// title: '推广图片',
// icon: 'PictureRounded'
// }
// }
// ]
// },
// {
// path: '/app_manage',
// component: layout,
// meta: {
// title: 'APP管理',
// icon: 'Iphone',
// // roles: ['MG']
// },
// redirect: '/app_manage/menu_list',
// children: [
// {
// path: '/app_manage/menu_list',
// component: () => import('@/views/app_manage/menu_list.vue'),
// meta: {
// title: '菜单管理',
// icon: 'Tickets'
// }
// }
// ]
// },
// {
// path: '/setting',
// component: layout,
// meta: {
// title: '系统设置',
// icon: 'Setting',
// // roles: ['MG']
// },
// redirect: '/setting/appid_manage',
// children: [
// {
// path: '/setting/appid_manage',
// component: () => import('@/views/setting/appid_manage.vue'),
// meta: {
// title: 'Appid管理',
// icon: 'Tickets'
// }
// }
// ]
// },
{
path: '/notice',
component: layout,
meta: {
title: '消息管理',
isHide: true,
roles: ['MG']
// roles: ['MG']
},
redirect: '/notice/index',
children: [