|
@@ -27,12 +27,12 @@ function TimeNode(props) {
|
|
const { current, list, active } = flow;
|
|
const { current, list, active } = flow;
|
|
const nodeId = version.template_node_id;
|
|
const nodeId = version.template_node_id;
|
|
|
|
|
|
- const showBackBtn = useMemo(() => {
|
|
|
|
- if (!nodeId || flowDetail.nodes.length == 0) return false;
|
|
|
|
- const node = flowDetail.nodes.find(item => item.Id == nodeId);
|
|
|
|
- if (node.label == '三级审批1') return true;
|
|
|
|
- return false;
|
|
|
|
- }, [nodeId, flowDetail]);
|
|
|
|
|
|
+ // const showBackBtn = useMemo(() => {
|
|
|
|
+ // if (!nodeId || flowDetail.nodes.length == 0) return false;
|
|
|
|
+ // const node = flowDetail.nodes.find(item => item.Id == nodeId);
|
|
|
|
+ // if (node.label == '三级审批1') return true;
|
|
|
|
+ // return false;
|
|
|
|
+ // }, [nodeId, flowDetail]);
|
|
|
|
|
|
function calculateHoursDifference(date1, date2) {
|
|
function calculateHoursDifference(date1, date2) {
|
|
const timestamp1 = date1.getTime(); // 获取第一个Date对象的时间戳(以毫秒为单位)
|
|
const timestamp1 = date1.getTime(); // 获取第一个Date对象的时间戳(以毫秒为单位)
|