提交 1b139fb3 编写于 作者: 蔡祥熠

Merge branch 'feature/Process.log_add_postloadline_event' into 'develop'

Merge of feature/[流程管理]流程记录增加加载每行记录的事件 to develop

See merge request o2oa/o2oa!1401
......@@ -29,6 +29,10 @@
"code": "",
"html": ""
},
"postLoadLine" : {
"code": "",
"html": ""
},
"load" : {
"code": "",
"html": ""
......
......@@ -2,7 +2,7 @@ MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
MWF.xApplication.process.Xform.Log = MWF.APPLog = new Class({
Extends: MWF.APP$Module,
options: {
"moduleEvents": ["load", "queryLoad", "postLoad", "postLoadData"]
"moduleEvents": ["load", "queryLoad", "postLoad", "postLoadData", "postLoadLine"]
},
_loadUserInterface: function(){
......@@ -538,6 +538,12 @@ MWF.xApplication.process.Xform.Log = MWF.APPLog = new Class({
textNode.set("html", html);
if(iconNode)iconNode.setStyle("background-image", "url("+"../x_component_process_Xform/$Form/"+this.form.options.style+"/icon/rightRed.png)");
}
this.fireEvent("postLoadLine",[{
"data" : task,
"node" : logTaskNode,
"log" : this,
"type" : isTask ? "task" : "taskCompleted"
}]);
},
......@@ -1551,6 +1557,12 @@ MWF.xApplication.process.Xform.Log = MWF.APPLog = new Class({
textNode.set("html", html);
if(iconNode)iconNode.setStyle("background-image", "url("+"../x_component_process_Xform/$Form/"+this.form.options.style+"/icon/rightRed.png)");
}
this.fireEvent("postLoadLine",[{
"data" : task,
"node" : logTaskNode,
"log" : this,
"type" : isTask ? "task" : "taskCompleted"
}]);
},
loadMediaOpinion: function(atts, node, type){
atts.each(function(att){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册