Commit 66cfe68d authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复外部流转跳转流程 Step 状态不对的问题

parent e4afb4bb
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-29 10:47:07
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-10-27 10:33:24
* @LastEditTime: 2021-01-06 11:44:39
* @Description: 外部流转组件
*/
import React from 'react';
......@@ -14,6 +14,7 @@ interface OuterCirculation {
steps: {
title: string,
description: string,
status: 'finish' | 'wait',
}[];
current: number;
};
......@@ -35,7 +36,12 @@ const OuterCirculation: React.FC<OuterCirculation> = ({
{(steps && steps.length > 0) ? (
<Steps style={{ marginTop: 30 }} progressDot current={current}>
{steps.map((item, index) => (
<Steps.Step key={index} title={item.title} description={item.description} />
<Steps.Step
key={index}
title={item.title}
description={item.description}
status={item.status}
/>
))}
</Steps>
) : (
......
......@@ -361,6 +361,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
title: item.taskName,
description: item.roleName,
step: item.step,
status: item.isExecute ? 'finish' : 'wait',
})) :
[]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment