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
d58fefa4
Commit
d58fefa4
authored
Jan 06, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:处理订单内部流转组件与能力中心显示不一致的问题
parent
18560d91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
15 deletions
+24
-15
index.tsx
src/components/AuditProcess/index.tsx
+24
-15
No files found.
src/components/AuditProcess/index.tsx
View file @
d58fefa4
...
...
@@ -2,13 +2,13 @@
* @Author: XieZhiXiong
* @Date: 2020-09-15 17:48:36
* @LastEditors: zwp
* @LastEditTime: 202
0-12-01 18:12
:54
* @LastEditTime: 202
1-01-06 10:54
:54
* @Description: 内外部流转记录组件
*/
import
React
from
'react'
;
import
{
Steps
,
Tabs
,
import
{
Steps
,
Tabs
,
}
from
'antd'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
styles
from
'./index.less'
;
...
...
@@ -16,17 +16,25 @@ import styles from './index.less';
interface
AuditProcessProp
{
outerVerifyCurrent
?:
number
;
innerVerifyCurrent
?:
number
;
outerVerifySteps
?:
{
step
:
number
,
stepName
:
string
,
roleName
:
string
}[];
innerVerifySteps
?:
{
step
:
number
,
stepName
:
string
,
roleName
:
string
}[];
outerVerifySteps
?:
{
step
:
number
,
stepName
:
string
,
roleName
:
string
,
}[];
innerVerifySteps
?:
{
step
:
number
,
stepName
:
string
,
roleName
:
string
,
}[];
customTitleKey
?:
string
customKey
?:
string
};
const
AuditProcess
:
React
.
FC
<
AuditProcessProp
>
=
({
outerVerifyCurrent
=
0
,
innerVerifyCurrent
=
0
,
outerVerifySteps
=
[],
innerVerifySteps
=
[],
const
AuditProcess
:
React
.
FC
<
AuditProcessProp
>
=
({
outerVerifyCurrent
=
0
,
innerVerifyCurrent
=
0
,
outerVerifySteps
=
[],
innerVerifySteps
=
[],
customTitleKey
,
customKey
})
=>
(
...
...
@@ -37,14 +45,15 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
<
Tabs
.
TabPane
tab=
"外部审核流程"
key=
"1"
>
<
Steps
style=
{
{
marginTop
:
30
}
}
progressDot
current=
{
outerVerifyCurrent
}
>
{
outerVerifySteps
.
map
(
item
=>
(
<
Steps
.
Step
<
Steps
.
Step
key=
{
customKey
?
item
[
customKey
]
:
item
.
step
}
title=
{
customTitleKey
?
item
[
customTitleKey
]
:
item
.
stepName
}
description=
{
item
.
roleName
}
status=
{
item
[
"isExecute"
]
?
"finish"
:
"wait"
}
/>
))
}
</
Steps
>
</
Tabs
.
TabPane
>
</
Tabs
.
TabPane
>
}
{
innerVerifySteps
?.
length
>
0
&&
...
...
@@ -55,6 +64,7 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
key=
{
customKey
?
item
[
customKey
]
:
item
.
step
}
title=
{
customTitleKey
?
item
[
customTitleKey
]
:
item
.
stepName
}
description=
{
item
.
roleName
}
status=
{
item
[
"isExecute"
]
?
"finish"
:
"wait"
}
/>
))
}
</
Steps
>
...
...
@@ -64,4 +74,4 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
</
MellowCard
>
);
export
default
AuditProcess
;
\ No newline at end of file
export
default
AuditProcess
;
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