{{each $.data.workLogList}}
{{if $.fromActivityType==="begin"}}
{{$.fromActivityName}}
{{$.arrivedTime.substring(0,15)}}
{{end if}}
{{if $.fromActivityType!=="begin"}}
{{$.fromActivityName}}
{{$.routeName}}
{{$.arrivedTime.substring(0,15)}}
{{if $.taskList.concat($.taskCompletedList).length>3}}
...
{{end if}}
{{each $.taskList.concat($.taskCompletedList).slice(0,3).reverse() }}
{{o2.name.cn($.person)}}
{{if $.completedTime}}
{{end if}}
{{end each}}
{{end if}}
{{if $.arrivedActivityType==="end" || $.arrivedActivityType==="cancel"}}
{{$.arrivedActivityName}}
{{$.arrivedTime.substring(0,15)}}
{{end if}}
{{end each}}
{{each $.data.workList}}
{{$.activityArrivedTime.substring(0,16)}}
{{$._.lp.workFlowTo}}[{{$.activityName}}]
{{$._.lp.taskPerson}}
{{(function(){
var taskList = [];
$._.data.workLogList.forEach(function(log){
if (log.work===$.id){
if (log.taskList && log.taskList.length){
log.taskList.forEach(function(task){
taskList.push(o2.name.cn(task.person)+"("+o2.name.cn(task.unit)+")");
});
}
}
});
return taskList.join(", ");
})()}}
{{end each}}
{{each $.data.workCompletedList}}
{{$.completedTime.substring(0,16)}}
{{$._.lp.workFlowTo}}[{{$.activityName}}]
{{end each}}