|
@@ -1,5 +1,5 @@
|
|
|
import React, { useMemo, useEffect, useState, useRef } from 'react';
|
|
|
-import { Steps, Popover } from 'antd';
|
|
|
+import { Steps, Popover, Alert } from 'antd';
|
|
|
import styles from './Index.less';
|
|
|
import { queryDDProcessesForecast } from '@/services/boom';
|
|
|
|
|
@@ -70,7 +70,7 @@ function AuditFlow(props) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- return <div style={{ marginTop: 20 }}>{item}</div>;
|
|
|
+ return <div style={{ margin: '20px auto' }}>{item}</div>;
|
|
|
};
|
|
|
const customDot = (dot, { status, index }) => {
|
|
|
let item = flow.workflowActivityRules[index];
|
|
@@ -126,15 +126,17 @@ function AuditFlow(props) {
|
|
|
}, [processCode, formComponentValues]);
|
|
|
|
|
|
return (
|
|
|
- <div className={styles.top}>
|
|
|
- <Steps current={current} progressDot={customDot} direction={direction}>
|
|
|
- {flow.workflowActivityRules.map(item => (
|
|
|
- <Step key={item.activityId} title={item?.activityName} />
|
|
|
- ))}
|
|
|
- {/* <Step key={item.activityId} title={item?.activityName} description={renderDesc(item)} /> */}
|
|
|
- </Steps>
|
|
|
+ <>
|
|
|
+ <div className={styles.top}>
|
|
|
+ <Steps current={current} progressDot={customDot} direction={direction}>
|
|
|
+ {flow.workflowActivityRules.map(item => (
|
|
|
+ <Step key={item.activityId} title={item?.activityName} />
|
|
|
+ ))}
|
|
|
+ {/* <Step key={item.activityId} title={item?.activityName} description={renderDesc(item)} /> */}
|
|
|
+ </Steps>
|
|
|
+ </div>
|
|
|
{status !== undefined && renderAlert()}
|
|
|
- </div>
|
|
|
+ </>
|
|
|
);
|
|
|
}
|
|
|
|