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

lab_xuhui 发布系统代码 [ibiz-task,任务调度]

上级 a3402e76
...@@ -1044,28 +1044,16 @@ export default class JobsInfoGridViewBase extends Vue { ...@@ -1044,28 +1044,16 @@ export default class JobsInfoGridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'jobsinfos', parameterName: 'jobsinfo' }, { pathName: 'jobsinfos', parameterName: 'jobsinfo' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openDrawer = (view: any, data: any) => { const openIndexViewTab = (data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data); const _data: any = { w: (new Date().getTime()) };
container.subscribe((result: any) => { Object.assign(_data, data);
if (!result || !Object.is(result.ret, 'OK')) { const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
return; this.$router.push(routePath);
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
} }
const view: any = { openIndexViewTab(data);
viewname: 'jobs-info-edit-view',
height: 0,
width: 0,
title: this.$t('entities.jobsinfo.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
...@@ -1097,31 +1085,29 @@ export default class JobsInfoGridViewBase extends Vue { ...@@ -1097,31 +1085,29 @@ export default class JobsInfoGridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'jobsinfos', parameterName: 'jobsinfo' }, { pathName: 'jobsinfos', parameterName: 'jobsinfo' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
if (fullargs && fullargs.length > 0) {
const _args = fullargs[0];
if (_args['srfprocessdefinitionkey'] && _args['srftaskdefinitionkey']) {
Object.assign(data, {
processDefinitionKey: _args['srfprocessdefinitionkey'],
taskDefinitionKey: _args['srftaskdefinitionkey']
});
if (_args['srftaskid']) {
Object.assign(data, { 'srftaskid': _args['srftaskid'] });
}
}
}
if(fullargs && fullargs.copymode){ if(fullargs && fullargs.copymode){
Object.assign(data,{copymode:true}); Object.assign(data,{copymode:true});
} }
const openDrawer = (view: any, data: any) => { const openIndexViewTab = (data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data); const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
container.subscribe((result: any) => { this.$router.push(routePath);
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
} }
const view: any = { openIndexViewTab(data);
viewname: 'jobs-info-edit-view',
height: 0,
width: 0,
title: this.$t('entities.jobsinfo.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册