提交 f3f8e005 作者: bax

Merge branch 'develop' of http://git.mmcuav.cn/iuav/csf-admin into develop

流水线 #6888 已通过 于阶段
in 1 分 39 秒
...@@ -14,4 +14,4 @@ patches: ...@@ -14,4 +14,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag: f03a38646e715ed4c4498e678f6530dd79273cd3 newTag: 2eddcb1f9e1bce4eb0d8442b2c66584dfac698bc
...@@ -62,7 +62,7 @@ export function MenuView() { ...@@ -62,7 +62,7 @@ export function MenuView() {
// 设置侧边栏数据 // 设置侧边栏数据
authRouterList().then((value) => { authRouterList().then((value) => {
// 除了数据看板,其他没有子项的菜单全部过滤掉 // 除了数据看板,其他没有子项的菜单全部过滤掉
const arr = getItem(value)?.filter((i: any) => i?.key === 2) || []; const arr = getItem(value)?.filter((i: any) => i?.key === 100) || [];
const brr = getItem(value)?.filter((i: any) => i?.children?.length) || []; const brr = getItem(value)?.filter((i: any) => i?.children?.length) || [];
// 设置要展示的菜单列表 // 设置要展示的菜单列表
setItems([...arr, ...brr]); setItems([...arr, ...brr]);
......
...@@ -95,11 +95,11 @@ const ServiceListView = () => { ...@@ -95,11 +95,11 @@ const ServiceListView = () => {
}; };
// 新增服务 // 新增服务
const handleAdd = () => { const handleAdd = () => {
navigate('/mallManage/serviceDetail'); navigate('/serviceManage/serviceDetail');
}; };
// 跳转详情 // 跳转详情
const handleDetail = (record: TableType[0]) => { const handleDetail = (record: TableType[0]) => {
navigate(`/mallManage/serviceDetail?id=${record.id}`); navigate(`/serviceManage/serviceDetail?id=${record.id}`);
}; };
// 删除服务 // 删除服务
const handleDelete = (record: TableType[0]) => { const handleDelete = (record: TableType[0]) => {
......
...@@ -125,7 +125,7 @@ const DemandOrderList = () => { ...@@ -125,7 +125,7 @@ const DemandOrderList = () => {
}; };
// 订单详情 // 订单详情
const toOrderDetail = (record: demandOrderListType[0]) => { const toOrderDetail = (record: demandOrderListType[0]) => {
navigate({ pathname: '/orderManage/demandOrderDetail', search: `id=${record.id}` }); navigate({ pathname: '/serviceManage/demandOrderDetail', search: `id=${record.id}` });
}; };
//分页 //分页
const paginationChange = (pageNo: number, pageSize: number) => { const paginationChange = (pageNo: number, pageSize: number) => {
......
...@@ -90,7 +90,7 @@ function EquipmentOrderView() { ...@@ -90,7 +90,7 @@ function EquipmentOrderView() {
// 跳转订单详情 // 跳转订单详情
const handleDetail = (record: TableType[0]) => { const handleDetail = (record: TableType[0]) => {
const search = { id: record.id, orderNo: record.orderNo }; const search = { id: record.id, orderNo: record.orderNo };
navigate(`/orderManage/equipmentOrder/detail?${qs.stringify(search)}`); navigate(`/rentManage/equipmentOrder/detail?${qs.stringify(search)}`);
}; };
// 获取订单状态 // 获取订单状态
const getOrderStatus = () => { const getOrderStatus = () => {
......
...@@ -320,7 +320,7 @@ const ProcurementOrderList = () => { ...@@ -320,7 +320,7 @@ const ProcurementOrderList = () => {
// 跳转采购订单详情 // 跳转采购订单详情
const toProcurementOrderDetail = (record: procurementOrderListType[0]) => { const toProcurementOrderDetail = (record: procurementOrderListType[0]) => {
navigate({ navigate({
pathname: '/orderManage/procurementOrder/detail', pathname: '/mallManage/procurementOrder/detail',
search: qs.stringify({ id: record.id }), search: qs.stringify({ id: record.id }),
}); });
}; };
......
...@@ -126,7 +126,7 @@ function ProductOrderView() { ...@@ -126,7 +126,7 @@ function ProductOrderView() {
}; };
// 跳转订单详情 // 跳转订单详情
const handleDetail = (record: TableType[0]) => { const handleDetail = (record: TableType[0]) => {
navigate(`/orderManage/productOrder/detail?${qs.stringify({ id: record.id })}`); navigate(`/mallManage/productOrder/detail?${qs.stringify({ id: record.id })}`);
}; };
// 获取商城订单状态列表 // 获取商城订单状态列表
const getMallOrderStatusList = () => { const getMallOrderStatusList = () => {
......
...@@ -4,23 +4,17 @@ import ErrorPage from '~/pages/common/error'; ...@@ -4,23 +4,17 @@ import ErrorPage from '~/pages/common/error';
import LayoutView from '~/components/layout'; import LayoutView from '~/components/layout';
import { import {
MacCommandOutlined, MacCommandOutlined,
BarsOutlined,
ShoppingOutlined, ShoppingOutlined,
ShopOutlined, ShopOutlined,
CreditCardOutlined, CreditCardOutlined,
SmileOutlined, SmileOutlined,
TeamOutlined, TeamOutlined,
ReconciliationOutlined,
SolutionOutlined, SolutionOutlined,
RedEnvelopeOutlined,
SettingOutlined, SettingOutlined,
UserOutlined, UserOutlined,
SendOutlined,
RocketOutlined,
AppstoreAddOutlined, AppstoreAddOutlined,
AppstoreOutlined, AppstoreOutlined,
CoffeeOutlined, CoffeeOutlined,
UnorderedListOutlined,
BookOutlined, BookOutlined,
SketchOutlined, SketchOutlined,
DribbbleOutlined, DribbbleOutlined,
...@@ -62,8 +56,8 @@ import { PointDetail } from '~/pages/pointManage/pointList/detail'; ...@@ -62,8 +56,8 @@ import { PointDetail } from '~/pages/pointManage/pointList/detail';
// const ActivityList = React.lazy(() => import('src/pages/activityManage/activityList')); //活动管理 // const ActivityList = React.lazy(() => import('src/pages/activityManage/activityList')); //活动管理
// 客户管理 // 客户管理
import CustomListView from '~/pages/customManage/customList'; import CustomListView from '~/pages/customManage/customList';
import CustomMoneyView from '~/pages/customManage/customMoney'; // import CustomMoneyView from '~/pages/customManage/customMoney';
import CustomMoneyDetail from '~/pages/customManage/customMoney/detail'; // import CustomMoneyDetail from '~/pages/customManage/customMoney/detail';
const CustomVerificationView = React.lazy( const CustomVerificationView = React.lazy(
() => import('~/pages/customManage/customVerification/list'), () => import('~/pages/customManage/customVerification/list'),
); //实名认证 ); //实名认证
...@@ -92,9 +86,9 @@ const TopicListView = React.lazy(() => import('~/pages/forumManage/topicList')); ...@@ -92,9 +86,9 @@ const TopicListView = React.lazy(() => import('~/pages/forumManage/topicList'));
// 订单 // 订单
const ProductOrderView = React.lazy(() => import('src/pages/orderManage/productOrder/orderList')); //销售订单 const ProductOrderView = React.lazy(() => import('src/pages/orderManage/productOrder/orderList')); //销售订单
const EquipmentOrderView = React.lazy(() => import('src/pages/orderManage/equipmentOrder')); //设备订单 const EquipmentOrderView = React.lazy(() => import('src/pages/orderManage/equipmentOrder')); //设备订单
const ServiceOrderView = React.lazy(() => import('src/pages/orderManage/serviceOrder')); //服务订单 // const ServiceOrderView = React.lazy(() => import('src/pages/orderManage/serviceOrder')); //服务订单
const ProductOrderDetail = React.lazy(() => import('~/pages/orderManage/productOrder/orderDetail')); const ProductOrderDetail = React.lazy(() => import('~/pages/orderManage/productOrder/orderDetail'));
const ServiceOrderDetail = React.lazy(() => import('~/pages/orderManage/serviceOrder/detail')); // const ServiceOrderDetail = React.lazy(() => import('~/pages/orderManage/serviceOrder/detail'));
const EquipmentOrderDetail = React.lazy(() => import('~/pages/orderManage/equipmentOrder/detail')); const EquipmentOrderDetail = React.lazy(() => import('~/pages/orderManage/equipmentOrder/detail'));
const PilotTrainingOrderView = React.lazy(() => import('~/pages/orderManage/pilotTrainingOrder')); const PilotTrainingOrderView = React.lazy(() => import('~/pages/orderManage/pilotTrainingOrder'));
const DemandOrderListView = React.lazy(() => import('~/pages/orderManage/demandOrder/orderList')); //需求订单 const DemandOrderListView = React.lazy(() => import('~/pages/orderManage/demandOrder/orderList')); //需求订单
...@@ -129,20 +123,18 @@ const MallAddOrEditOrDetailView = React.lazy( ...@@ -129,20 +123,18 @@ const MallAddOrEditOrDetailView = React.lazy(
); //商城商品新增、编辑 ); //商城商品新增、编辑
const MallGoodsDetailsView = React.lazy(() => import('~/pages/mallManage/mallGoods/goodsDetails')); //商城商品(新) const MallGoodsDetailsView = React.lazy(() => import('~/pages/mallManage/mallGoods/goodsDetails')); //商城商品(新)
const ProduceListView = React.lazy(() => import('~/pages/mallManage/produceManage/produceList')); //产品列表 // const ProduceListView = React.lazy(() => import('~/pages/mallManage/produceManage/produceList')); //产品列表
const ProduceDetailView = React.lazy( // const ProduceDetailView = React.lazy(() => import('~/pages/mallManage/produceManage/produceDetail')); //产品详情
() => import('~/pages/mallManage/produceManage/produceDetail'), // const MakeListView = React.lazy(() => import('~/pages/mallManage/makeManage/makeList'));
); //产品详情
const MakeListView = React.lazy(() => import('~/pages/mallManage/makeManage/makeList'));
// 分类管理 // 分类管理
const MallCategoryListView = React.lazy(() => import('~/pages/categoryManage/mallCategoryList')); //商城分类 const MallCategoryListView = React.lazy(() => import('~/pages/categoryManage/mallCategoryList')); //商城分类
const ServiceCategoryListView = React.lazy( const ServiceCategoryListView = React.lazy(
() => import('~/pages/categoryManage/serviceCategoryList'), () => import('~/pages/categoryManage/serviceCategoryList'),
); //服务分类 ); //服务分类
const CategoryManage = React.lazy(() => import('~/pages/categoryManage/category')); const CategoryManage = React.lazy(() => import('~/pages/categoryManage/category'));
const CategoryDetail = React.lazy(() => import('~/pages/categoryManage/category/detail')); // const CategoryDetail = React.lazy(() => import('~/pages/categoryManage/category/detail'));
// 目录管理 // 目录管理
const DirectoryManage = React.lazy(() => import('~/pages/categoryManage/directoryManage')); // const DirectoryManage = React.lazy(() => import('~/pages/categoryManage/directoryManage'));
//执照培训 //执照培训
const InstitutionsListView = React.lazy( const InstitutionsListView = React.lazy(
...@@ -244,7 +236,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -244,7 +236,7 @@ export const routerList: Array<RouteObjectType> = [
meta: { meta: {
icon: <BarChartOutlined />, icon: <BarChartOutlined />,
title: '数据看板', title: '数据看板',
id: 2, id: 100,
}, },
}, },
{ {
...@@ -262,7 +254,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -262,7 +254,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<CustomListView />), element: withLoadingComponent(<CustomListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 220, id: 210,
title: '用户列表', title: '用户列表',
icon: <SolutionOutlined />, icon: <SolutionOutlined />,
}, },
...@@ -272,7 +264,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -272,7 +264,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<CustomVerificationView />), element: withLoadingComponent(<CustomVerificationView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 260, id: 220,
title: '实名认证', title: '实名认证',
icon: <SolutionOutlined />, icon: <SolutionOutlined />,
}, },
...@@ -302,33 +294,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -302,33 +294,11 @@ export const routerList: Array<RouteObjectType> = [
}, },
}, },
{ {
path: '/customManage/customMoney',
element: withLoadingComponent(<CustomMoneyView />),
errorElement: <ErrorPage />,
meta: {
id: 26200,
title: '现金管理',
icon: <RedEnvelopeOutlined />,
},
},
{
path: '/customManage/customMoney/detail',
element: withLoadingComponent(<CustomMoneyDetail />),
errorElement: <ErrorPage />,
meta: {
id: 26210,
title: '现金变更',
icon: <RedEnvelopeOutlined />,
hidden: true,
pid: 26200,
},
},
{
path: '/customManage/flyerList', path: '/customManage/flyerList',
element: withLoadingComponent(<FlyerListView />), element: withLoadingComponent(<FlyerListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1810, id: 230,
title: '飞手列表', title: '飞手列表',
icon: <SolutionOutlined />, icon: <SolutionOutlined />,
}, },
...@@ -338,11 +308,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -338,11 +308,11 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<FlyerAuthDailyView />), element: withLoadingComponent(<FlyerAuthDailyView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1815, id: 235,
title: '认证日志', title: '认证日志',
hidden: true, hidden: true,
icon: <UserOutlined />, icon: <UserOutlined />,
pid: 1810, pid: 230,
}, },
}, },
{ {
...@@ -350,11 +320,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -350,11 +320,11 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<FlyerDetailsView />), element: withLoadingComponent(<FlyerDetailsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1816, id: 236,
title: '飞手详情', title: '飞手详情',
hidden: true, hidden: true,
icon: <UserOutlined />, icon: <UserOutlined />,
pid: 1810, pid: 230,
}, },
}, },
{ {
...@@ -362,11 +332,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -362,11 +332,11 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<FlyerDetailsView />), element: withLoadingComponent(<FlyerDetailsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1817, id: 237,
title: '飞手审批', title: '飞手审批',
hidden: true, hidden: true,
icon: <UserOutlined />, icon: <UserOutlined />,
pid: 1810, pid: 230,
}, },
}, },
{ {
...@@ -379,6 +349,29 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -379,6 +349,29 @@ export const routerList: Array<RouteObjectType> = [
icon: <AuditOutlined />, icon: <AuditOutlined />,
}, },
}, },
// {
// path: '/customManage/customMoney',
// element: withLoadingComponent(<CustomMoneyView />),
// errorElement: <ErrorPage />,
// meta: {
// id: 26200,
// title: '现金管理',
// icon: <RedEnvelopeOutlined />,
// hidden: true,
// },
// },
// {
// path: '/customManage/customMoney/detail',
// element: withLoadingComponent(<CustomMoneyDetail />),
// errorElement: <ErrorPage />,
// meta: {
// id: 26210,
// title: '现金变更',
// icon: <RedEnvelopeOutlined />,
// hidden: true,
// pid: 26200,
// },
// },
], ],
}, },
{ {
...@@ -386,7 +379,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -386,7 +379,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1800, id: 300,
icon: <ContactsOutlined />, icon: <ContactsOutlined />,
title: '飞手管理', title: '飞手管理',
// develop: true, // develop: true,
...@@ -397,7 +390,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -397,7 +390,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<FlyerTeamView />), element: withLoadingComponent(<FlyerTeamView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1820, id: 310,
title: '飞手团队', title: '飞手团队',
icon: <UsergroupAddOutlined />, icon: <UsergroupAddOutlined />,
// develop: true, // develop: true,
...@@ -406,370 +399,331 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -406,370 +399,331 @@ export const routerList: Array<RouteObjectType> = [
], ],
}, },
{ {
path: '/resourceManage', path: '/mallManage',
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 400, id: 400,
icon: <DribbbleOutlined />, icon: <ShopOutlined />,
title: '资源管理', title: '产品商城',
}, },
children: [ children: [
{ {
path: '/resourceManage/requirementsGathering', path: '/mallManage/mallGoods',
element: withLoadingComponent(<GatheringListView />), element: withLoadingComponent(<MallGoodsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 410, id: 410,
title: '需求收集', icon: <ShopOutlined />,
icon: <MonitorOutlined />, title: '商城商品',
hidden: true,
}, },
}, },
{ {
path: '/resourceManage/gatherDetail', path: '/mallManage/mallGoods/add',
element: withLoadingComponent(<GatherDetailView />), element: withLoadingComponent(<MallAddOrEditOrDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 415, id: 415,
title: '需求详情', icon: <SmileOutlined />,
title: '商城商品新增',
hidden: true, hidden: true,
icon: <MonitorOutlined />,
pid: 410, pid: 410,
}, },
}, },
{ {
path: '/resourceManage/materielManage', path: '/mallManage/mallGoods/edit',
element: withLoadingComponent(<MaterielManageView />), element: withLoadingComponent(<MallAddOrEditOrDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 420, id: 415,
title: '宣传管理', icon: <SmileOutlined />,
icon: <PictureOutlined />, title: '商城商品编辑',
hidden: true,
pid: 410,
}, },
}, },
{ {
path: '/resourceManage/materielManage/detail', path: '/mallManage/mallGoods/detail',
element: withLoadingComponent(<MaterielManageDetail />), element: withLoadingComponent(<MallGoodsDetailsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 30100, id: 415,
title: '宣传管理详情', icon: <SmileOutlined />,
icon: <SketchOutlined />, title: '商城商品详情',
hidden: true, hidden: true,
pid: 420, pid: 410,
}, },
}, },
// 产品商城分类(新)
{ {
path: '/resourceManage/tagManage', path: '/mallManage/mallCategoryList',
element: withLoadingComponent(<TagManageView />), element: withLoadingComponent(<MallCategoryListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 430, id: 420,
title: '标签管理', title: '商城分类',
icon: <PaperClipOutlined />, icon: <AppstoreOutlined />,
}, },
}, },
{ {
path: '/resourceManage/industryNews', path: '/mallManage/mallCategoryList/detail',
element: withLoadingComponent(<IndustryNewsView />), element: withLoadingComponent(<ServiceCategoryDetail />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 440, id: 425,
title: '行业新闻', title: '分类详情',
icon: <ReadOutlined />, icon: '',
hidden: true,
pid: 420,
}, },
}, },
{ {
path: '/resourceManage/tenderManage', path: '/mallManage/productOrder',
element: withLoadingComponent(<TenderManageView />), element: withLoadingComponent(<ProductOrderView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 450, id: 430,
title: '招标快讯', title: '商城订单',
icon: <CoffeeOutlined />, icon: <ShoppingOutlined />,
}, },
}, },
{ {
path: '/resourceManage/tenderManage/detail', path: '/mallManage/productOrder/detail',
element: withLoadingComponent(<TenderManageDetail />), element: withLoadingComponent(<ProductOrderDetail />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 30500, id: 431,
title: '招标快讯详情', title: '商城订单 / 详情',
icon: <CoffeeOutlined />, icon: <ShoppingOutlined />,
hidden: true, hidden: true,
pid: 450, pid: 430,
}, },
}, },
{ {
path: '/resourceManage/tenderManage/feedback', path: '/mallManage/procurementOrder/list',
element: withLoadingComponent(<TenderManageFeedback />), element: withLoadingComponent(<ProcurementOrder />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 30500, id: 440,
title: '用户反馈', title: '采购订单',
icon: <CoffeeOutlined />, icon: <ShoppingOutlined />,
hidden: true,
pid: 450,
}, },
}, },
{ {
path: '/resourceManage/businessCaseManage', path: '/mallManage/procurementOrder/detail',
element: withLoadingComponent(<BusinessCaseManage />), element: withLoadingComponent(<ProcurementOrderDetail />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 460, id: 441,
title: '业务案例', title: '采购订单详情',
icon: <AliwangwangOutlined />, icon: <ShoppingOutlined />,
hidden: true,
pid: 440,
}, },
}, },
], ],
}, },
{ {
path: '/activityManage', path: '/rentManage',
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 500, id: 500,
icon: <FireOutlined />, icon: <ShopOutlined />,
title: '营销管理', title: '租赁管理',
}, },
children: [ children: [
{ {
path: '/activityManage/rewardsManage', path: '/rentManage/rentGoods',
element: withLoadingComponent(<RewardsManageView />), element: withLoadingComponent(<RentListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 510, id: 510,
title: '签到奖励', icon: <SmileOutlined />,
icon: <InsertRowAboveOutlined />, title: '租赁商品',
},
},
{
path: '/activityManage/activityList',
element: withLoadingComponent(<ActivityListView />),
errorElement: <ErrorPage />,
meta: {
id: 520,
title: '活动管理',
icon: <WechatOutlined />,
develop: true,
}, },
}, },
{ {
path: '/activityManage/activityList/detail', path: '/rentManage/rentGoods/add',
element: withLoadingComponent(<ActivityListDetailView />), element: withLoadingComponent(<RentAddOrEditView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 520, id: 511,
title: '领取记录', icon: <SmileOutlined />,
icon: <WechatOutlined />, title: '租赁商品新增',
hidden: true, hidden: true,
pid: 520, pid: 510,
develop: true,
},
},
],
},
{
path: '/forumManage',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 600,
icon: <MessageOutlined />,
title: '社群管理',
},
children: [
{
path: '/forumManage/topicList',
element: withLoadingComponent(<TopicListView />),
errorElement: <ErrorPage />,
meta: {
id: 620,
title: '话题列表',
icon: <ThunderboltOutlined />,
}, },
}, },
{ {
path: '/forumManage/dynamicList', path: '/rentManage/rentGoods/edit',
element: withLoadingComponent(<DynamicListView />), element: withLoadingComponent(<RentAddOrEditView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 610, id: 512,
title: '帖子列表', icon: <SmileOutlined />,
icon: <ThunderboltOutlined />, title: '租赁商品编辑',
hidden: true,
pid: 510,
}, },
}, },
],
},
{
path: '/orderManage',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 800,
icon: <BarsOutlined />,
title: '订单管理',
},
children: [
{ {
path: '/orderManage/productOrder', path: '/rentManage/rentGoods/detail',
element: withLoadingComponent(<ProductOrderView />), element: withLoadingComponent(<RentDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 810, id: 513,
title: '商城订单', icon: <ShopOutlined />,
icon: <ShoppingOutlined />, title: '租赁商品详情',
hidden: true,
pid: 510,
}, },
}, },
{ {
path: '/orderManage/productOrder/detail', path: '/rentManage/rentType',
element: withLoadingComponent(<ProductOrderDetail />), element: withLoadingComponent(<RentTypeView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10010, id: 520,
title: '商城订单 / 详情', icon: <ShopOutlined />,
icon: <ShoppingOutlined />, title: '租赁分类',
hidden: true,
pid: 810,
}, },
}, },
{ {
path: '/orderManage/procurementOrder/list', path: '/rentManage/rentMake',
element: withLoadingComponent(<ProcurementOrder />), element: withLoadingComponent(<RentMakeView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 840, id: 530,
title: '采购订单', icon: <ShopOutlined />,
icon: <ShoppingOutlined />, title: '租赁品牌',
}, },
}, },
{ {
path: '/orderManage/procurementOrder/detail', path: '/rentManage/rentModel',
element: withLoadingComponent(<ProcurementOrderDetail />), element: withLoadingComponent(<RentModeView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10070, id: 531,
title: '采购订单详情', icon: <ShopOutlined />,
icon: <ShoppingOutlined />, title: '租赁型号',
hidden: true, hidden: true,
pid: 840, pid: 530,
}, },
}, },
{ {
path: '/orderManage/equipmentOrder', path: '/rentManage/equipmentOrder',
element: withLoadingComponent(<EquipmentOrderView />), element: withLoadingComponent(<EquipmentOrderView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 820, id: 540,
title: '租赁订单', title: '租赁订单',
icon: <ShopOutlined />, icon: <ShopOutlined />,
}, },
}, },
{ {
path: '/orderManage/equipmentOrder/detail', path: '/rentManage/equipmentOrder/detail',
element: withLoadingComponent(<EquipmentOrderDetail />), element: withLoadingComponent(<EquipmentOrderDetail />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10020, id: 541,
title: '租赁订单 / 详情', title: '租赁订单 / 详情',
icon: <ShopOutlined />, icon: <ShopOutlined />,
hidden: true, hidden: true,
pid: 820, pid: 540,
}, },
}, },
],
},
{
path: '/serviceManage',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 600,
icon: <ShopOutlined />,
title: '行业服务',
},
children: [
{ {
path: '/orderManage/serviceOrder', path: '/serviceManage/serviceList',
element: withLoadingComponent(<ServiceOrderView />), element: withLoadingComponent(<ServiceListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 830, id: 610,
title: '服务订单', icon: <ShopOutlined />,
icon: <CreditCardOutlined />, title: '服务管理',
hidden: true,
}, },
}, },
{ {
path: '/orderManage/serviceOrder/detail', path: '/serviceManage/serviceDetail',
element: withLoadingComponent(<ServiceOrderDetail />), element: withLoadingComponent(<ServiceDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10010, id: 611,
title: '服务订单 / 详情', icon: <ShopOutlined />,
icon: <CreditCardOutlined />, title: '服务详情',
hidden: true, hidden: true,
pid: 830, pid: 610,
}, },
}, },
// 作业服务分类(新)
{ {
path: '/orderManage/pilotTrainingOrder', path: '/serviceManage/serviceCategoryList',
element: withLoadingComponent(<PilotTrainingOrderView />), element: withLoadingComponent(<ServiceCategoryListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10040, id: 620,
title: '培训订单', title: '作业分类',
icon: <CreditCardOutlined />, icon: <ShopOutlined />,
}, },
}, },
{ {
path: '/orderManage/demandOrderList', path: '/serviceManage/demandOrderList',
element: withLoadingComponent(<DemandOrderListView />), element: withLoadingComponent(<DemandOrderListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 850, id: 630,
title: '任务订单', title: '任务订单',
icon: <CreditCardOutlined />, icon: <CreditCardOutlined />,
}, },
}, },
{ {
path: '/orderManage/demandOrderDetail', path: '/serviceManage/demandOrderDetail',
element: withLoadingComponent(<DemandOrderDetailView />), element: withLoadingComponent(<DemandOrderDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10060, id: 631,
title: '需求订单详情', title: '任务订单详情',
icon: <CreditCardOutlined />, icon: <CreditCardOutlined />,
hidden: true, hidden: true,
pid: 850, pid: 630,
},
},
],
},
{
path: '/mallManage',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 1000,
icon: <ShopOutlined />,
title: '商品管理',
},
children: [
{
path: '/mallManage/serviceList',
element: withLoadingComponent(<ServiceListView />),
errorElement: <ErrorPage />,
meta: {
id: 1020,
icon: <SmileOutlined />,
title: '服务管理',
},
},
{
path: '/mallManage/serviceDetail',
element: withLoadingComponent(<ServiceDetailView />),
errorElement: <ErrorPage />,
meta: {
id: 1025,
icon: <SmileOutlined />,
title: '服务详情',
hidden: true,
pid: 1020,
}, },
}, },
// { // {
// path: '/serviceManage/serviceOrder',
// element: withLoadingComponent(<ServiceOrderView />),
// errorElement: <ErrorPage />,
// meta: {
// id: 830,
// title: '服务订单',
// icon: <CreditCardOutlined />,
// hidden: true,
// },
// },
// {
// path: '/serviceManage/serviceOrder/detail',
// element: withLoadingComponent(<ServiceOrderDetail />),
// errorElement: <ErrorPage />,
// meta: {
// id: 10010,
// title: '服务订单 / 详情',
// icon: <CreditCardOutlined />,
// hidden: true,
// pid: 830,
// },
// },
// {
// path: '/mallManage/serviceIntroduce', // path: '/mallManage/serviceIntroduce',
// element: withLoadingComponent(<ServiceIntroduceView />), // element: withLoadingComponent(<ServiceIntroduceView />),
// errorElement: <ErrorPage />, // errorElement: <ErrorPage />,
...@@ -780,301 +734,392 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -780,301 +734,392 @@ export const routerList: Array<RouteObjectType> = [
// hidden: true, // hidden: true,
// }, // },
// }, // },
// {
// path: '/serviceManage/produceList',
// element: withLoadingComponent(<ProduceListView />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1050,
// icon: <SmileOutlined />,
// title: '产品管理',
// },
// },
// {
// path: '/serviceManage/produceDetail',
// element: withLoadingComponent(<ProduceDetailView />),
// errorElement: <ErrorPage />,
// meta: {
// id: 10160,
// icon: <SmileOutlined />,
// title: '产品详情',
// hidden: true,
// pid: 1050,
// },
// },
// {
// path: '/serviceManage/makeList',
// element: withLoadingComponent(<MakeListView />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1060,
// icon: <SmileOutlined />,
// title: '品牌管理',
// },
// },
],
},
{
path: '/pilotTraining',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 700,
icon: <BankOutlined />,
title: '执照培训',
},
children: [
{ {
path: '/mallManage/mallGoods', path: '/pilotTraining/jobServicesCategory/3',
element: withLoadingComponent(<MallGoodsView />), element: withLoadingComponent(<CategoryManage />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1040, id: 710,
icon: <SmileOutlined />, title: '培训分类',
title: '商城商品', icon: <AppstoreAddOutlined />,
}, },
}, },
{ {
path: '/mallManage/mallGoods/add', path: '/pilotTraining/institutionsList',
element: withLoadingComponent(<MallAddOrEditOrDetailView />), element: withLoadingComponent(<InstitutionsListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10145, id: 720,
icon: <SmileOutlined />, title: '执照考试',
title: '商城商品新增', icon: <VerifiedOutlined />,
hidden: true,
pid: 1040,
}, },
}, },
{ {
path: '/mallManage/mallGoods/edit', path: '/pilotTraining/institutionsList/add',
element: withLoadingComponent(<MallAddOrEditOrDetailView />), element: withLoadingComponent(<AddInstitutionsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10146, id: 721,
icon: <SmileOutlined />, title: '机构上传',
title: '商城商品编辑', icon: <UserOutlined />,
hidden: true, hidden: true,
pid: 1040,
}, },
}, },
{ {
path: '/mallManage/mallGoods/detail', path: '/pilotTraining/institutionsList/edit',
element: withLoadingComponent(<MallGoodsDetailsView />), element: withLoadingComponent(<AddInstitutionsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10146, id: 722,
icon: <SmileOutlined />, title: '机构编辑',
title: '商城商品详情', icon: <UserOutlined />,
hidden: true, hidden: true,
pid: 1040,
}, },
}, },
{ {
path: '/mallManage/produceList', path: '/pilotTraining/courseManage',
element: withLoadingComponent(<ProduceListView />), element: withLoadingComponent(<CourseManageView />),
errorElement: <ErrorPage />,
meta: {
id: 1050,
icon: <SmileOutlined />,
title: '产品管理',
},
},
{
path: '/mallManage/produceDetail',
element: withLoadingComponent(<ProduceDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10160, id: 730,
icon: <SmileOutlined />, icon: <BookOutlined />,
title: '产品详情', title: '课程管理',
hidden: true,
pid: 1050,
}, },
}, },
{ {
path: '/mallManage/makeList', path: '/pilotTraining/pilotTrainingOrder',
element: withLoadingComponent(<MakeListView />), element: withLoadingComponent(<PilotTrainingOrderView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1060, id: 740,
icon: <SmileOutlined />, title: '培训订单',
title: '品牌管理', icon: <CreditCardOutlined />,
}, },
}, },
], ],
}, },
{ {
path: '/rentManage', path: '/resourceManage',
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 2000, id: 800,
icon: <ShopOutlined />, icon: <DribbbleOutlined />,
title: '租赁管理', title: '资源管理',
}, },
children: [ children: [
{ {
path: '/rentManage/rentGoods', path: '/resourceManage/requirementsGathering',
element: withLoadingComponent(<RentListView />), element: withLoadingComponent(<GatheringListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1030, id: 810,
icon: <SmileOutlined />, title: '需求收集',
title: '租赁商品', icon: <MonitorOutlined />,
}, },
}, },
{ {
path: '/rentManage/rentGoods/add', path: '/resourceManage/gatherDetail',
element: withLoadingComponent(<RentAddOrEditView />), element: withLoadingComponent(<GatherDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10135, id: 811,
icon: <SmileOutlined />, title: '需求详情',
title: '租赁商品新增',
hidden: true, hidden: true,
pid: 1030, icon: <MonitorOutlined />,
pid: 810,
}, },
}, },
{ {
path: '/rentManage/rentGoods/edit', path: '/resourceManage/materielManage',
element: withLoadingComponent(<RentAddOrEditView />), element: withLoadingComponent(<MaterielManageView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10136, id: 820,
icon: <SmileOutlined />, title: '宣传管理',
title: '租赁商品编辑', icon: <PictureOutlined />,
hidden: true,
pid: 1030,
}, },
}, },
{ {
path: '/rentManage/rentGoods/detail', path: '/resourceManage/materielManage/detail',
element: withLoadingComponent(<RentDetailView />), element: withLoadingComponent(<MaterielManageDetail />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10176, id: 821,
icon: <SmileOutlined />, title: '宣传管理详情',
title: '租赁商品详情', icon: <SketchOutlined />,
hidden: true, hidden: true,
pid: 1030, pid: 820,
}, },
}, },
{ {
path: '/rentManage/rentType', path: '/resourceManage/tagManage',
element: withLoadingComponent(<RentTypeView />), element: withLoadingComponent(<TagManageView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 2010, id: 830,
icon: <SmileOutlined />, title: '标签管理',
title: '类型管理', icon: <PaperClipOutlined />,
}, },
}, },
{ {
path: '/rentManage/rentMake', path: '/resourceManage/industryNews',
element: withLoadingComponent(<RentMakeView />), element: withLoadingComponent(<IndustryNewsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 2020, id: 840,
icon: <SmileOutlined />, title: '行业新闻',
title: '品牌管理', icon: <ReadOutlined />,
}, },
}, },
{ {
path: '/rentManage/rentModel', path: '/resourceManage/tenderManage',
element: withLoadingComponent(<RentModeView />), element: withLoadingComponent(<TenderManageView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10139, id: 850,
icon: <SmileOutlined />, title: '招标快讯',
title: '品牌管理/型号', icon: <CoffeeOutlined />,
hidden: true,
pid: 2020,
}, },
}, },
],
},
{
path: '/categoryManage',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 1200,
icon: <ReconciliationOutlined />,
title: '分类管理',
},
children: [
// {
// path: '/categoryManage/jobServicesCategory/1',
// element: withLoadingComponent(<CategoryManage />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1210,
// title: '作业服务分类',
// icon: <SendOutlined />,
// },
// },
// 作业服务分类(新)
{ {
path: '/categoryManage/serviceCategoryList', path: '/resourceManage/tenderManage/detail',
element: withLoadingComponent(<ServiceCategoryListView />), element: withLoadingComponent(<TenderManageDetail />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1210, id: 851,
title: '作业服务分类', title: '招标快讯详情',
icon: <SendOutlined />, icon: <CoffeeOutlined />,
hidden: true,
pid: 850,
}, },
}, },
{ {
path: '/categoryManage/jobServicesCategory/2', path: '/resourceManage/tenderManage/feedback',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<TenderManageFeedback />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1220, id: 852,
title: '设备租赁分类', title: '用户反馈',
icon: <RocketOutlined />, icon: <CoffeeOutlined />,
hidden: true,
pid: 850,
}, },
}, },
{ {
path: '/categoryManage/jobServicesCategory/3', path: '/resourceManage/businessCaseManage',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<BusinessCaseManage />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1230, id: 860,
title: '飞手培训分类', title: '业务案例',
icon: <AppstoreAddOutlined />, icon: <AliwangwangOutlined />,
}, },
}, },
// 产品商城分类(新) ],
},
{
path: '/activityManage',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 900,
icon: <FireOutlined />,
title: '营销管理',
},
children: [
{ {
path: '/categoryManage/mallCategoryList', path: '/activityManage/rewardsManage',
element: withLoadingComponent(<MallCategoryListView />), element: withLoadingComponent(<RewardsManageView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1240, id: 910,
title: '产品商城分类', title: '签到奖励',
icon: <AppstoreOutlined />, icon: <InsertRowAboveOutlined />,
}, },
}, },
{ {
path: '/categoryManage/mallCategoryList/detail', path: '/activityManage/activityList',
element: withLoadingComponent(<ServiceCategoryDetail />), element: withLoadingComponent(<ActivityListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 18600, id: 920,
title: '分类详情', title: '活动管理',
icon: '', icon: <WechatOutlined />,
hidden: true,
pid: 1240,
}, },
}, },
// {
// path: '/categoryManage/jobServicesCategory/4',
// element: withLoadingComponent(<CategoryManage />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1240,
// title: '产品商城分类',
// icon: <AppstoreOutlined />,
// },
// },
{ {
path: '/categoryManage/jobServicesCategory/0', path: '/activityManage/activityList/detail',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<ActivityListDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1250, id: 921,
title: '通用分类', title: '领取记录',
icon: <CoffeeOutlined />, icon: <WechatOutlined />,
hidden: true, hidden: true,
pid: 920,
}, },
}, },
],
},
{
path: '/forumManage',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 1000,
icon: <MessageOutlined />,
title: '社群管理',
},
children: [
{ {
path: '/categoryManage/detail/:id', path: '/forumManage/topicList',
element: withLoadingComponent(<CategoryDetail />), element: withLoadingComponent(<TopicListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 18600, id: 1020,
title: '分类详情', title: '话题列表',
icon: '', icon: <ThunderboltOutlined />,
hidden: true,
}, },
}, },
{ {
path: '/categoryManage/DirectoryManage', path: '/forumManage/dynamicList',
element: withLoadingComponent(<DirectoryManage />), element: withLoadingComponent(<DynamicListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1260, id: 1010,
title: '目录管理', title: '帖子列表',
icon: <UnorderedListOutlined />, icon: <ThunderboltOutlined />,
hidden: true,
}, },
}, },
], ],
}, },
// {
// path: '/categoryManage',
// element: <LayoutView />,
// errorElement: <ErrorPage />,
// meta: {
// id: 1200,
// icon: <ReconciliationOutlined />,
// title: '分类管理',
// },
// children: [
// {
// path: '/categoryManage/jobServicesCategory/1',
// element: withLoadingComponent(<CategoryManage />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1210,
// title: '作业服务分类',
// icon: <SendOutlined />,
// },
// },
// {
// path: '/categoryManage/jobServicesCategory/2',
// element: withLoadingComponent(<CategoryManage />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1220,
// title: '设备租赁分类',
// icon: <RocketOutlined />,
// hidden: true,
// },
// },
// {
// path: '/categoryManage/jobServicesCategory/4',
// element: withLoadingComponent(<CategoryManage />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1240,
// title: '产品商城分类',
// icon: <AppstoreOutlined />,
// },
// },
// {
// path: '/categoryManage/jobServicesCategory/0',
// element: withLoadingComponent(<CategoryManage />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1250,
// title: '通用分类',
// icon: <CoffeeOutlined />,
// hidden: true,
// },
// },
// {
// path: '/categoryManage/detail/:id',
// element: withLoadingComponent(<CategoryDetail />),
// errorElement: <ErrorPage />,
// meta: {
// id: 18600,
// title: '分类详情',
// icon: '',
// hidden: true,
// },
// },
// {
// path: '/categoryManage/DirectoryManage',
// element: withLoadingComponent(<DirectoryManage />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1260,
// title: '目录管理',
// icon: <UnorderedListOutlined />,
// hidden: true,
// },
// },
// ],
// },
{ {
path: '/pointManage', path: '/pointManage',
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 2200, id: 1100,
icon: <AccountBookOutlined />, icon: <AccountBookOutlined />,
title: '积分管理', title: '积分管理',
}, },
...@@ -1083,7 +1128,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1083,7 +1128,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/pointManage/pointList', path: '/pointManage/pointList',
element: withLoadingComponent(<PointList />), element: withLoadingComponent(<PointList />),
meta: { meta: {
id: 2210, id: 1110,
title: '积分列表', title: '积分列表',
icon: <MacCommandOutlined />, icon: <MacCommandOutlined />,
}, },
...@@ -1092,11 +1137,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1092,11 +1137,11 @@ export const routerList: Array<RouteObjectType> = [
path: '/pointManage/pointList/detail', path: '/pointManage/pointList/detail',
element: withLoadingComponent(<PointDetail />), element: withLoadingComponent(<PointDetail />),
meta: { meta: {
id: 12110, id: 1111,
title: '个人积分明细', title: '个人积分明细',
icon: <MacCommandOutlined />, icon: <MacCommandOutlined />,
hidden: true, hidden: true,
pid: 2210, pid: 1110,
}, },
}, },
// { // {
...@@ -1150,7 +1195,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1150,7 +1195,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 2400, id: 1200,
icon: <AccountBookOutlined />, icon: <AccountBookOutlined />,
title: '消耗管理', title: '消耗管理',
}, },
...@@ -1160,7 +1205,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1160,7 +1205,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<WithDrawListView />), element: withLoadingComponent(<WithDrawListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 2410, id: 1210,
title: '提现列表', title: '提现列表',
icon: <SolutionOutlined />, icon: <SolutionOutlined />,
}, },
...@@ -1254,65 +1299,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1254,65 +1299,11 @@ export const routerList: Array<RouteObjectType> = [
// ], // ],
// }, // },
{ {
path: '/pilotTraining',
element: <LayoutView />,
errorElement: <ErrorPage />,
meta: {
id: 1600,
icon: <BankOutlined />,
title: '执照培训',
},
children: [
{
path: '/pilotTraining/institutionsList',
element: withLoadingComponent(<InstitutionsListView />),
errorElement: <ErrorPage />,
meta: {
id: 1610,
title: '执照考试',
icon: <VerifiedOutlined />,
},
},
{
path: '/pilotTraining/institutionsList/add',
element: withLoadingComponent(<AddInstitutionsView />),
errorElement: <ErrorPage />,
meta: {
id: 1520,
title: '机构上传',
icon: <UserOutlined />,
hidden: true,
},
},
{
path: '/pilotTraining/institutionsList/edit',
element: withLoadingComponent(<AddInstitutionsView />),
errorElement: <ErrorPage />,
meta: {
id: 1530,
title: '机构编辑',
icon: <UserOutlined />,
hidden: true,
},
},
{
path: '/pilotTraining/courseManage',
element: withLoadingComponent(<CourseManageView />),
errorElement: <ErrorPage />,
meta: {
id: 1010,
icon: <BookOutlined />,
title: '课程管理',
},
},
],
},
{
path: '/systemManage', path: '/systemManage',
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1400, id: 1300,
icon: <SettingOutlined />, icon: <SettingOutlined />,
title: '系统管理', title: '系统管理',
}, },
...@@ -1322,7 +1313,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1322,7 +1313,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<AccountManageView />), element: withLoadingComponent(<AccountManageView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1410, id: 1310,
title: '账号信息', title: '账号信息',
icon: <UserOutlined />, icon: <UserOutlined />,
}, },
...@@ -1332,7 +1323,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1332,7 +1323,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<AccountLimit />), element: withLoadingComponent(<AccountLimit />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1420, id: 1320,
title: '权限角色', title: '权限角色',
icon: <TeamOutlined />, icon: <TeamOutlined />,
}, },
...@@ -1342,11 +1333,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1342,11 +1333,11 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<LimitInfo />), element: withLoadingComponent(<LimitInfo />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 28300, id: 1321,
title: '权限信息', title: '权限信息',
icon: <UserOutlined />, icon: <UserOutlined />,
hidden: true, hidden: true,
pid: 1420, pid: 1320,
}, },
}, },
{ {
...@@ -1354,7 +1345,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1354,7 +1345,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<CompanyListView />), element: withLoadingComponent(<CompanyListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1430, id: 1330,
title: '单位管理', title: '单位管理',
icon: <BankOutlined />, icon: <BankOutlined />,
}, },
...@@ -1364,11 +1355,11 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1364,11 +1355,11 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<CompanyDetailView />), element: withLoadingComponent(<CompanyDetailView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1430, id: 1331,
title: '单位详情', title: '单位详情',
icon: <BankOutlined />, icon: <BankOutlined />,
hidden: true, hidden: true,
pid: 1430, pid: 1330,
}, },
}, },
{ {
...@@ -1376,10 +1367,9 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1376,10 +1367,9 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<CompanyMemberView />), element: withLoadingComponent(<CompanyMemberView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1460, id: 1340,
title: '成员管理', title: '成员管理',
icon: <TeamOutlined />, icon: <TeamOutlined />,
develop: true,
}, },
}, },
{ {
...@@ -1387,7 +1377,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1387,7 +1377,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<AddressManageView />), element: withLoadingComponent(<AddressManageView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 1440, id: 1350,
title: '地址管理', title: '地址管理',
icon: <EnvironmentOutlined />, icon: <EnvironmentOutlined />,
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论