Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
1e1ed168
提交
1e1ed168
authored
6月 03, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:客户列表
上级
f76b2dd2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
119 行增加
和
82 行删除
+119
-82
index.tsx
src/pages/customManage/customList/index.tsx
+7
-0
router.tsx
src/router/router.tsx
+112
-82
没有找到文件。
src/pages/customManage/customList/index.tsx
0 → 100644
浏览文件 @
1e1ed168
import
React
from
'react'
;
function
CustomListView
()
{
return
<
div
>
CustomList
</
div
>;
}
export
default
CustomListView
;
src/router/router.tsx
浏览文件 @
1e1ed168
...
...
@@ -11,24 +11,28 @@ import {
ShoppingOutlined
,
ShopOutlined
,
CreditCardOutlined
,
SmileOutlined
,
TeamOutlined
,
}
from
'@ant-design/icons'
;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import
{
AgnosticIndexRouteObject
}
from
'@remix-run/router'
;
import
{
Spin
}
from
'antd'
;
// 登录
import
LoginView
from
'~/pages/common/login'
;
// 积分
import
{
PointList
}
from
'~/pages/pointManage/pointList'
;
import
{
PointDetail
}
from
'~/pages/pointManage/pointList/detail'
;
import
{
PointRules
}
from
'~/pages/pointManage/pointRules'
;
import
PointDetailList
from
'~/pages/pointManage/pointDetail'
;
// 分成
import
DivideOrder
from
'~/pages/pointManage/divideOrder'
;
import
DivideRules
from
'~/pages/pointManage/divideRules'
;
import
LoginView
from
'~/pages/common/login'
;
import
ProductOrderDetail
from
'~/pages/orderManage/productOrder/detail'
;
import
ServiceOrderDetail
from
'~/pages/orderManage/serviceOrder/detail'
;
import
EquipmentOrderDetail
from
'~/pages/orderManage/equipmentOrder/detail'
;
// 客户列表
import
CustomListView
from
'~/pages/customManage/customList'
;
// 活动
const
ActivityList
=
React
.
lazy
(()
=>
import
(
'src/pages/activityManage/activityList'
));
//活动管理
//服务
//
服务
const
ServiceListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/serviceManage/serviceList'
));
const
ServiceDetailView
=
React
.
lazy
(
()
=>
import
(
'~/pages/mallManage/serviceManage/serviceDetail'
),
...
...
@@ -36,21 +40,26 @@ const ServiceDetailView = React.lazy(
const
ServiceIntroduceView
=
React
.
lazy
(
()
=>
import
(
'~/pages/mallManage/serviceManage/serviceIntroduce'
),
);
//产品
//
产品
const
ProduceListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/produceManage/produceList'
));
//行业
//
行业
const
IndustryListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/industryManage/industryList'
));
//订单
//
订单
const
ProductOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/productOrder'
));
//销售订单
const
EquipmentOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/equipmentOrder'
));
//设备订单
const
ServiceOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/serviceOrder'
));
//服务订单
const
ProductOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/productOrder/detail'
));
const
ServiceOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/serviceOrder/detail'
));
const
EquipmentOrderDetail
=
React
.
lazy
(()
=>
import
(
'~/pages/orderManage/equipmentOrder/detail'
));
// 优惠券
const
CouponList
=
React
.
lazy
(()
=>
import
(
'src/pages/couponManage/couponList'
));
//优惠券管理
const
CouponDetail
=
React
.
lazy
(()
=>
import
(
'src/pages/couponManage/couponList/detail'
));
//优惠券明细
const
SplitCouponList
=
React
.
lazy
(()
=>
import
(
'src/pages/couponManage/splitCouponList'
));
//裂变优惠券
const
SplitCouponOperate
=
React
.
lazy
(
()
=>
import
(
'src/pages/couponManage/splitCouponList/addOrEditOrDetail'
),
);
//裂变优惠券操作
);
//
裂变优惠券操作
const
CouponDetailed
=
React
.
lazy
(()
=>
import
(
'src/pages/couponManage/couponDetailed'
));
//优惠券明细
export
interface
RouteObjectType
{
path
:
AgnosticIndexRouteObject
[
'path'
];
...
...
@@ -81,22 +90,70 @@ const withLoadingComponent = (comp: JSX.Element) => (
// 路由数组
export
const
routerList
:
Array
<
RouteObjectType
>
=
[
{
path
:
'/
activity
Manage'
,
path
:
'/
order
Manage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
1
9
000
,
icon
:
<
Gift
Outlined
/>,
title
:
'
活动
管理'
,
id
:
1
0
000
,
icon
:
<
Bars
Outlined
/>,
title
:
'
订单
管理'
,
},
children
:
[
{
path
:
'/
activityManage/activityList
'
,
element
:
withLoadingComponent
(<
ActivityList
/>),
path
:
'/
orderManage/productOrder
'
,
element
:
withLoadingComponent
(<
ProductOrderView
/>),
meta
:
{
id
:
19100
,
title
:
'活动列表'
,
icon
:
<
GiftOutlined
/>,
id
:
10010
,
title
:
'商城订单'
,
icon
:
<
ShoppingOutlined
/>,
},
},
{
path
:
'/orderManage/productOrder/detail'
,
element
:
withLoadingComponent
(<
ProductOrderDetail
/>),
meta
:
{
id
:
10010
,
title
:
'商城订单 / 详情'
,
icon
:
<
ShoppingOutlined
/>,
hidden
:
true
,
},
},
{
path
:
'/orderManage/equipmentOrder'
,
element
:
withLoadingComponent
(<
EquipmentOrderView
/>),
meta
:
{
id
:
10020
,
title
:
'租赁订单'
,
icon
:
<
ShopOutlined
/>,
},
},
{
path
:
'/orderManage/equipmentOrder/detail'
,
element
:
withLoadingComponent
(<
EquipmentOrderDetail
/>),
meta
:
{
id
:
10020
,
title
:
'租赁订单 / 详情'
,
icon
:
<
ShopOutlined
/>,
hidden
:
true
,
},
},
{
path
:
'/orderManage/serviceOrder'
,
element
:
withLoadingComponent
(<
ServiceOrderView
/>),
meta
:
{
id
:
10030
,
title
:
'服务订单'
,
icon
:
<
CreditCardOutlined
/>,
},
},
{
path
:
'/orderManage/serviceOrder/detail'
,
element
:
withLoadingComponent
(<
ServiceOrderDetail
/>),
meta
:
{
id
:
10010
,
title
:
'服务订单 / 详情'
,
icon
:
<
CreditCardOutlined
/>,
hidden
:
true
,
},
},
],
...
...
@@ -107,7 +164,7 @@ export const routerList: Array<RouteObjectType> = [
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
10100
,
icon
:
<
MacCommand
Outlined
/>,
icon
:
<
Shop
Outlined
/>,
title
:
'商品管理'
,
},
children
:
[
...
...
@@ -116,7 +173,7 @@ export const routerList: Array<RouteObjectType> = [
element
:
withLoadingComponent
(<
ServiceListView
/>),
meta
:
{
id
:
10110
,
icon
:
<
MacCommand
Outlined
/>,
icon
:
<
Smile
Outlined
/>,
title
:
'服务管理'
,
},
},
...
...
@@ -125,7 +182,7 @@ export const routerList: Array<RouteObjectType> = [
element
:
withLoadingComponent
(<
ServiceDetailView
/>),
meta
:
{
id
:
10120
,
icon
:
<
MacCommand
Outlined
/>,
icon
:
<
Smile
Outlined
/>,
title
:
'服务详情'
,
hidden
:
true
,
},
...
...
@@ -135,7 +192,7 @@ export const routerList: Array<RouteObjectType> = [
element
:
withLoadingComponent
(<
ServiceIntroduceView
/>),
meta
:
{
id
:
10120
,
icon
:
<
MacCommand
Outlined
/>,
icon
:
<
Smile
Outlined
/>,
title
:
'服务介绍'
,
hidden
:
true
,
},
...
...
@@ -145,7 +202,7 @@ export const routerList: Array<RouteObjectType> = [
element
:
withLoadingComponent
(<
ProduceListView
/>),
meta
:
{
id
:
10130
,
icon
:
<
MacCommand
Outlined
/>,
icon
:
<
Smile
Outlined
/>,
title
:
'产品管理'
,
},
},
...
...
@@ -154,77 +211,29 @@ export const routerList: Array<RouteObjectType> = [
element
:
withLoadingComponent
(<
IndustryListView
/>),
meta
:
{
id
:
10140
,
icon
:
<
MacCommand
Outlined
/>,
icon
:
<
Smile
Outlined
/>,
title
:
'行业方案'
,
},
},
],
},
{
path
:
'/
order
Manage'
,
path
:
'/
custom
Manage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
10
000
,
icon
:
<
Bars
Outlined
/>,
title
:
'
订单
管理'
,
id
:
22
000
,
icon
:
<
Team
Outlined
/>,
title
:
'
客户
管理'
,
},
children
:
[
{
path
:
'/orderManage/productOrder'
,
element
:
withLoadingComponent
(<
ProductOrderView
/>),
meta
:
{
id
:
10010
,
title
:
'商城订单'
,
icon
:
<
ShoppingOutlined
/>,
},
},
{
path
:
'/orderManage/productOrder/detail'
,
element
:
withLoadingComponent
(<
ProductOrderDetail
/>),
path
:
'/customManage/customList'
,
element
:
withLoadingComponent
(<
CustomListView
/>),
meta
:
{
id
:
10010
,
title
:
'商城订单 / 详情'
,
icon
:
<
ShoppingOutlined
/>,
hidden
:
true
,
},
},
{
path
:
'/orderManage/equipmentOrder'
,
element
:
withLoadingComponent
(<
EquipmentOrderView
/>),
meta
:
{
id
:
10020
,
title
:
'租赁订单'
,
icon
:
<
ShopOutlined
/>,
},
},
{
path
:
'/orderManage/equipmentOrder/detail'
,
element
:
withLoadingComponent
(<
EquipmentOrderDetail
/>),
meta
:
{
id
:
10020
,
title
:
'租赁订单 / 详情'
,
icon
:
<
ShopOutlined
/>,
hidden
:
true
,
},
},
{
path
:
'/orderManage/serviceOrder'
,
element
:
withLoadingComponent
(<
ServiceOrderView
/>),
meta
:
{
id
:
10030
,
title
:
'服务订单'
,
icon
:
<
CreditCardOutlined
/>,
},
},
{
path
:
'/orderManage/serviceOrder/detail'
,
element
:
withLoadingComponent
(<
ServiceOrderDetail
/>),
meta
:
{
id
:
10010
,
title
:
'服务订单 / 详情'
,
icon
:
<
CreditCardOutlined
/>,
hidden
:
true
,
id
:
26100
,
title
:
'客户列表'
,
icon
:
<
BarsOutlined
/>,
},
},
],
...
...
@@ -375,6 +384,27 @@ export const routerList: Array<RouteObjectType> = [
},
],
},
{
path
:
'/activityManage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
19000
,
icon
:
<
GiftOutlined
/>,
title
:
'活动管理'
,
},
children
:
[
{
path
:
'/activityManage/activityList'
,
element
:
withLoadingComponent
(<
ActivityList
/>),
meta
:
{
id
:
19100
,
title
:
'活动列表'
,
icon
:
<
GiftOutlined
/>,
},
},
],
},
];
// 路由白名单
export
const
whiteRouterList
:
Array
<
RouteObject
&
RouteObjectType
>
=
[
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论