|
@@ -14,10 +14,10 @@ function TimeNode(props) {
|
|
|
onApprove,
|
|
|
} = props;
|
|
|
|
|
|
- if (active !== 0) {
|
|
|
+ if (!list || list.FlowNodes?.length != 0) {
|
|
|
return (
|
|
|
<div className={styles.top}>
|
|
|
- <Steps current={current}>
|
|
|
+ <Steps current={current} status={active == 0 ? 'error' : 'process'}>
|
|
|
{list.FlowNodes.map(item => (
|
|
|
<Step
|
|
|
key={item.id}
|
|
@@ -27,7 +27,7 @@ function TimeNode(props) {
|
|
|
))}
|
|
|
</Steps>
|
|
|
<div className={styles.btns} style={{ marginLeft: 80 }}>
|
|
|
- {isAuditor && (
|
|
|
+ {active == 0 ? <Button type="primary" disabled>审批拒绝</Button> : isAuditor && active != 0 && (
|
|
|
<>
|
|
|
<Button type="primary" onClick={() => onApprove(true)}>
|
|
|
审批通过
|