|
发表于 2023-6-14 09:59:05
|
显示全部楼层
不是常用流程,是新建流程就如此,应用市场中的移动门户和其他门户中新建流程的都是如此,其中脚本如下
this.form.get("div_homepage_content").hide();
debugger;
this.content = this.page.get("div_homepage_content").node;
o2.requireApp([["process.TaskCenter", "lp."+o2.language], ["process.TaskCenter", ""]],"", function(){
var obj = {
"lp": MWF.xApplication.process.TaskCenter.LP,
"content": this.content,
"addEvent": function(type, fun){
//this.addEvent(type, fun);
}.bind(this),
"getAction": function (callback) {
debugger
if (!this.action) {
this.action = MWF.Actions.get("x_processplatform_assemble_surface");
if (callback) callback();
} else {
debugger
if (callback) callback();
}
},
"desktop": layout.desktop,
"refreshAll": function(){},
"notice": this.notice,
}
o2.JSON.get("../x_component_process_TaskCenter/$Main/default/css.wcss", function(data){
obj.css = data;
}, false);
debugger
if (!this.processStarter) this.processStarter = new MWF.xApplication.process.TaskCenter.Starter(obj, {
"onStartProcess": function(){
debugger //if (this.currentTab.options.type == "task") this.currentTab.reload();
}.bind(this)
});
debugger;
this.processStarter.load();
}.bind(this), true, true);
|
|