```
//重写流程记录组件
MWF.xDesktop.requireApp("process.Xform", "Log", null, false);
MWF.APPLog.implement({
_loadUserInterface: function(){
this.node.empty();
this.node.setStyle("-webkit-user-select", "text");
if (this.form.businessData){
if (this.json.logType!=="record"){
if (this.form.businessData.workLogList){
if( this.form.businessData.work.completedTime && !this.form.isCheckWorkLogEndActivity ){
this.checkWorkLogEndActivity();
}
this.workLog = Array.clone(this.form.businessData.workLogList);
this.fireEvent("postLoadData");
this.loadWorkLog();
}
}else{
if (this.form.businessData.recordList){
var map = {};
(this.form.businessData.recordList || []).each(function(log){
if(log.type === "currentTask"){
map[log.person] = log;
}
})
o2.Actions.load("x_processplatform_assemble_surface").TaskAction.listWithJob(this.form.businessData.work.job,function( json ){
json.data.each(function(d){
if( map[d.person] ) map[d.person].viewTime = d.viewTime
}.bind(this));
this.workLog = Array.clone(this.form.businessData.recordList);
this.fireEvent("postLoadData");
this.loadRecordLog();
}.bind(this));
}
}
}
},
})
```
评论