Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
e68cfd9f
提交
e68cfd9f
authored
9月 18, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:采购订单筛选
上级
a0f43900
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
5 行删除
+28
-5
index.tsx
src/pages/dataDashboards/index.tsx
+4
-0
index.tsx
src/pages/orderManage/procurementOrder/orderList/index.tsx
+8
-1
router.tsx
src/router/router.tsx
+16
-4
没有找到文件。
src/pages/dataDashboards/index.tsx
0 → 100644
浏览文件 @
e68cfd9f
const
DataDashboards
=
()
=>
{
return
<
div
className=
'data-dashboards'
></
div
>;
};
export
default
DataDashboards
;
src/pages/orderManage/procurementOrder/orderList/index.tsx
浏览文件 @
e68cfd9f
...
...
@@ -88,6 +88,7 @@ const ProcurementOrderList = () => {
pageSize
:
10
,
totalCount
:
0
,
});
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
);
const
tableColumns
:
ColumnsType
<
procurementOrderListType
[
0
]
>
=
[
{
title
:
'商品'
,
...
...
@@ -244,11 +245,13 @@ const ProcurementOrderList = () => {
};
// 采购订单列表
const
getListPurchaseOrder
=
(
query
?:
procurementOrderParamsType
)
=>
{
setLoading
(
true
);
OrderManageAPI
.
getListPurchaseOrder
({
pageSize
:
pagination
.
pageSize
,
pageNo
:
pagination
.
pageNo
,
...
query
,
}).
then
(({
result
})
=>
{
setLoading
(
false
);
pagination
.
totalCount
=
result
.
totalCount
;
setPagination
({
...
pagination
});
setTableData
(
result
.
list
||
[]);
...
...
@@ -278,7 +281,10 @@ const ProcurementOrderList = () => {
const
searchSuccess
=
(
value
:
any
)
=>
{
pagination
.
pageNo
=
1
;
pagination
.
pageSize
=
10
;
const
reqData
=
{
...
filterObjAttr
(
value
,
[
'rangeTime'
]),
...
query
};
const
reqData
=
{
...
filterObjAttr
(
value
,
[
'rangeTime'
]),
statusCode
:
tranStatusList
[
statusCodeButtonIndex
].
value
,
};
setQuery
({
...
reqData
});
getListPurchaseOrder
(
reqData
);
};
...
...
@@ -407,6 +413,7 @@ const ProcurementOrderList = () => {
columns=
{
tableColumns
}
dataSource=
{
tableData
}
rowKey=
'id'
loading=
{
loading
}
pagination=
{
{
total
:
pagination
.
totalCount
,
pageSize
:
pagination
.
pageSize
,
...
...
src/router/router.tsx
浏览文件 @
e68cfd9f
...
...
@@ -36,11 +36,12 @@ import {
VerifiedOutlined
,
AccountBookOutlined
,
EnvironmentOutlined
,
BarChartOutlined
,
}
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'
;
// 数据看板
const
DataBoardView
=
React
.
lazy
(()
=>
import
(
'~/pages/dataDashboards'
));
// 登录
import
LoginView
from
'~/pages/common/login'
;
...
...
@@ -185,7 +186,7 @@ const RealNameAuthView = React.lazy(() => import('~/pages/systemManage/realNameA
// const CouponDetailed = React.lazy(() => import('src/pages/couponManage/couponDetailed')); //优惠券明细
export
interface
RouteObjectType
{
path
:
AgnosticIndexRouteObject
[
'path'
]
;
path
:
string
;
element
:
any
;
errorElement
?:
React
.
ReactNode
|
null
;
children
?:
Array
<
RouteObject
&
RouteObjectType
>
;
...
...
@@ -228,6 +229,17 @@ export const whiteRouterList: Array<RouteObject & RouteObjectType> = [
// 路由数组
export
const
routerList
:
Array
<
RouteObjectType
>
=
[
{
path
:
'/dataDashboards'
,
element
:
withLoadingComponent
(<
DataBoardView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
icon
:
<
BarChartOutlined
/>,
title
:
'数据看板'
,
id
:
300
,
develop
:
true
,
},
},
{
path
:
'/customManage'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论