Elemet id: ${element.id}
@@ -279,10 +288,6 @@ export default {
创建时间:${this.parseTime(this.processInstance.createTime)}`;
} else if (element.type === 'bpmn:UserTask') {
// debugger
- const activity = this.activityList.find(m => m.key === element.id);
- if (!activity) {
- return;
- }
let task = this.taskList.find(m => m.id === activity.taskId); // 找到活动对应的 taskId
if (!task) {
return;
@@ -297,6 +302,14 @@ export default {
if (task.reason) {
html += `
审批建议:${task.reason}
`
}
+ } else if (element.type === 'bpmn:ServiceTask' && this.processInstance) {
+ if(activity.startTime>0){
+ html = `
创建时间:${this.parseTime(activity.startTime)}
`;
+ }
+ if(activity.endTime>0){
+ html += `
结束时间:${this.parseTime(activity.endTime)}
`
+ }
+ console.log(html)
} else if (element.type === 'bpmn:EndEvent' && this.processInstance) {
html = `
结果:${this.getDictDataLabel(this.DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT, this.processInstance.result)}
`;
if (this.processInstance.endTime) {
@@ -471,4 +484,4 @@ export default {
color: #fafafa;
width: 200px;
}
-
+
\ No newline at end of file