|
@@ -46,25 +46,23 @@ function TimeNode(props) {
|
|
|
|
|
|
if (!list || list.FlowNodes?.length != 0) {
|
|
|
return (
|
|
|
- <div className={styles.top}>
|
|
|
+ <>
|
|
|
<Steps current={current} status={active == 0 ? 'error' : 'process'}>
|
|
|
{list.FlowNodes.map(item => (
|
|
|
<Step key={item.id} title={item.node} description={getDescription(item)} />
|
|
|
))}
|
|
|
</Steps>
|
|
|
- <div className={styles.btns} style={{ marginLeft: 80 }}>
|
|
|
- {isAuditor && active != 0 && (
|
|
|
- <>
|
|
|
- <Button type="primary" onClick={() => setAuditVisible(1)}>
|
|
|
- 审批通过
|
|
|
- </Button>
|
|
|
- <Button onClick={() => setAuditVisible(2)} danger>
|
|
|
- 审批拒绝
|
|
|
- </Button>
|
|
|
- </>
|
|
|
- )}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ {isAuditor && active != 0 && (
|
|
|
+ <div className={styles.btns} style={{ margin: '40px 0' }}>
|
|
|
+ <Button type="primary" onClick={() => setAuditVisible(1)}>
|
|
|
+ 审批通过
|
|
|
+ </Button>
|
|
|
+ <Button onClick={() => setAuditVisible(2)} danger>
|
|
|
+ 审批拒绝
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
+ </>
|
|
|
);
|
|
|
}
|
|
|
// else {
|