提交 d713e453 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibz-wf,统一工作流]

上级 be676437
......@@ -297,7 +297,7 @@ export default class WFProcessInstanceActiveInstanceGridViewBase extends Vue {
* @memberof WFProcessInstanceActiveInstanceGridView
*/
public toolBarModels: any = {
deuiaction1_jump: { name: 'deuiaction1_jump', actiontarget: 'NONE', caption: '流程跳转', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Jump', target: 'SINGLEKEY' } },
deuiaction1_jump: { name: 'deuiaction1_jump', actiontarget: 'NONE', caption: '流程跳转', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Jump', target: 'SINGLEDATA' } },
deuiaction1_restart: { name: 'deuiaction1_restart', actiontarget: 'NONE', caption: '重启流程', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Restart', target: 'SINGLEKEY' } },
......
......@@ -130,50 +130,7 @@ export default class WFProcessInstanceUIServiceBase extends UIService {
*/
public async WFProcessInstance_Jump(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
Object.assign(params,{processdefinitionkey:"%processdefinitionkey%"});
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { wfprocessinstance: '%wfprocessinstance%' });
Object.assign(params, { id: '%wfprocessinstance%' });
Object.assign(params, { name: '%name%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'wfprocessinstances', parameterName: 'wfprocessinstance' },
];
const openPopupModal = (view: any, data: any) => {
let container: Subject<any> = actionContext.$appmodal.openModal(view, context, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
const _this: any = actionContext;
_this.closeView(null);
return result.datas;
});
}
const view: any = {
viewname: 'wfprocess-instance-active-instance-option-view',
height: 0,
width: 0,
title: actionContext.$t('entities.wfprocessinstance.views.activeinstanceoptionview.title'),
};
openPopupModal(view, data);
actionContext.$Notice.error({ title: '错误', desc: '不支持单项数据' });
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册