Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
c54b2ec1
Commit
c54b2ec1
authored
Apr 19, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 补全类型
parent
97202b89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
59 deletions
+53
-59
index.tsx
src/pages/returnManage/components/DetailInfo/index.tsx
+0
-7
index.tsx
src/pages/returnManage/components/ProductList/index.tsx
+53
-52
No files found.
src/pages/returnManage/components/DetailInfo/index.tsx
View file @
c54b2ec1
...
...
@@ -111,13 +111,6 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
{
title
:
'订单号'
,
dataIndex
:
'orderNo'
,
render
:
(
text
,
record
)
=>
(
<
EyePreview
url=
{
`${target}?orderNo=${text}`
}
>
{
text
}
</
EyePreview
>
),
},
{
title
:
'商品ID'
,
...
...
src/pages/returnManage/components/ProductList/index.tsx
View file @
c54b2ec1
/*
* @Author: XieZhiXiong
* @Date: 2020-11-03 11:38:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-05 14:58:55
* @Description: 商品列表
*/
import
React
from
'react'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
import
{
EditableColumns
}
from
'@/components/PolymericTable/interface'
;
interface
HistoryListHistoryListProps
{
dataSource
:
{
[
key
:
string
]:
any
,
}[];
// 标题
title
?:
string
;
// 表格列
columns
:
EditableColumns
[];
// rowKey
rowKey
?:
string
;
// 目标路径
target
?:
string
;
// loading
loading
?:
boolean
;
};
const
ProductList
:
React
.
FC
<
HistoryListHistoryListProps
>
=
({
dataSource
=
[],
title
=
'标题'
,
columns
=
[],
rowKey
=
'id'
,
target
,
loading
=
false
,
})
=>
{
return
(
<
MellowCard
title=
{
title
}
>
<
PolymericTable
rowKey=
{
rowKey
}
dataSource=
{
dataSource
}
columns=
{
columns
}
loading=
{
loading
}
pagination=
{
null
}
/>
</
MellowCard
>
);
};
/*
* @Author: XieZhiXiong
* @Date: 2020-11-03 11:38:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-05 14:58:55
* @Description: 商品列表
*/
import
React
from
'react'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
import
{
EditableColumns
}
from
'@/components/PolymericTable/interface'
;
interface
HistoryListHistoryListProps
{
dataSource
:
{
[
key
:
string
]:
any
,
}[];
// 标题
title
?:
string
;
// 表格列
columns
:
EditableColumns
[];
// rowKey
rowKey
?:
string
;
// 目标路径
target
?:
string
;
// loading
loading
?:
boolean
;
};
const
ProductList
:
React
.
FC
<
HistoryListHistoryListProps
>
=
({
dataSource
=
[],
title
=
'标题'
,
columns
=
[],
rowKey
=
'id'
,
target
,
loading
=
false
,
})
=>
{
return
(
<
MellowCard
title=
{
title
}
>
<
PolymericTable
rowKey=
{
rowKey
}
dataSource=
{
dataSource
}
columns=
{
columns
}
loading=
{
loading
}
pagination=
{
undefined
}
/>
</
MellowCard
>
);
};
export
default
ProductList
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment