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

ibiz4j 发布系统代码

上级 3d05666d
...@@ -1070,16 +1070,28 @@ export default class IBZTeamGridViewBase extends Vue { ...@@ -1070,16 +1070,28 @@ export default class IBZTeamGridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibzteams', parameterName: 'ibzteam' }, { pathName: 'ibzteams', parameterName: 'ibzteam' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openIndexViewTab = (data: any) => { const openDrawer = (view: any, data: any) => {
const _data: any = { w: (new Date().getTime()) }; let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
Object.assign(_data, data); container.subscribe((result: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data); if (!result || !Object.is(result.ret, 'OK')) {
this.$router.push(routePath); return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
} }
openIndexViewTab(data); xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'ibzteam-edit-view',
height: 0,
width: 0,
title: this.$t('entities.ibzteam.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
...@@ -1111,14 +1123,28 @@ export default class IBZTeamGridViewBase extends Vue { ...@@ -1111,14 +1123,28 @@ export default class IBZTeamGridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibzteams', parameterName: 'ibzteam' }, { pathName: 'ibzteams', parameterName: 'ibzteam' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openIndexViewTab = (data: any) => { const openDrawer = (view: any, data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data); let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
this.$router.push(routePath); container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
} }
openIndexViewTab(data); xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'ibzteam-edit-view',
height: 0,
width: 0,
title: this.$t('entities.ibzteam.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册