|
@@ -191,6 +191,7 @@
|
|
hide-timestamp
|
|
hide-timestamp
|
|
size="large"
|
|
size="large"
|
|
placement="top"
|
|
placement="top"
|
|
|
|
+ :class="{ 'timeline-item-stop': flow.nextIsNewFlow }"
|
|
>
|
|
>
|
|
<div class="flow-item">
|
|
<div class="flow-item">
|
|
<p v-if="flow.createTime" class="flow-item-time">
|
|
<p v-if="flow.createTime" class="flow-item-time">
|
|
@@ -650,8 +651,11 @@ export default {
|
|
REJECT: "danger",
|
|
REJECT: "danger",
|
|
END: "success"
|
|
END: "success"
|
|
};
|
|
};
|
|
-
|
|
|
|
- this.flowHistoryList = data.tfFlowViewLogResultList.map(item => {
|
|
|
|
|
|
+ let nextFlowId = "";
|
|
|
|
+ this.flowHistoryList = data.tfFlowViewLogResultList.map((item, index) => {
|
|
|
|
+ const nextItem = data.tfFlowViewLogResultList[index + 1];
|
|
|
|
+ nextFlowId = nextItem ? nextItem.flowId : item.flowId;
|
|
|
|
+ item.nextIsNewFlow = nextFlowId !== item.flowId;
|
|
item.type = FLOW_STATUS[item.approveOperation];
|
|
item.type = FLOW_STATUS[item.approveOperation];
|
|
item.attachments = item.paperAttachmentId
|
|
item.attachments = item.paperAttachmentId
|
|
? JSON.parse(item.paperAttachmentId)
|
|
? JSON.parse(item.paperAttachmentId)
|
|
@@ -667,6 +671,7 @@ export default {
|
|
approveOperation: flowIsEnd ? "END" : "",
|
|
approveOperation: flowIsEnd ? "END" : "",
|
|
approveUserName: data.currFlowTaskResult.approveUserNames, //审批人
|
|
approveUserName: data.currFlowTaskResult.approveUserNames, //审批人
|
|
createTime: null,
|
|
createTime: null,
|
|
|
|
+ nextIsNewFlow: false,
|
|
attachments: []
|
|
attachments: []
|
|
});
|
|
});
|
|
},
|
|
},
|