|
楼主 |
发表于 2021-9-3 14:26:19
|
显示全部楼层
showDetail : function(me,url,operation) {
var windowContainer = me.comp('windowContainer');
windowContainer.set({'process':me.comp('mainData').getProcess()});
var data = me.comp('mainData');
if (operation == 'normal') {
if ((data.getValue('fPingShenZhuangTai') == '未提交'|| data.getValue('fPSZT') == '未提交') && data.getValue('sCreatorID') == me.getContext().getCurrentPersonMemberID()) {
me.comp('detailContents').to('writeContent');
windowContainer.setActivity(me.activitys.tbBus);
var url = this.getWaitURL(me);
windowContainer.refresh(url, {
flag : true
});
} else {
me.comp('detailContents').to('querCcontent');
}
} else if (operation == 'new') {
me.comp('detailContents').to('writeContent');
windowContainer.setActivity(me.activitys.ps);
windowContainer.refresh(url, {flag : true});
}
}
这个是 windowContainer 调用代码 process 和activity 都是设置好了的 |
|