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

ibiz4j 发布系统代码 [ibz-dst,应用]

上级 ff48b884
...@@ -1159,16 +1159,28 @@ export default class TableSyncGridViewBase extends Vue { ...@@ -1159,16 +1159,28 @@ export default class TableSyncGridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'tablesyncs', parameterName: 'tablesync' }, { pathName: 'tablesyncs', parameterName: 'tablesync' },
{ 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;
}
xData.refresh(result.datas);
});
} }
openIndexViewTab(data); const view: any = {
viewname: 'table-sync-edit-view',
height: 0,
width: 0,
title: this.$t('entities.tablesync.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
...@@ -1200,17 +1212,31 @@ export default class TableSyncGridViewBase extends Vue { ...@@ -1200,17 +1212,31 @@ export default class TableSyncGridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'tablesyncs', parameterName: 'tablesync' }, { pathName: 'tablesyncs', parameterName: 'tablesync' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
if(fullargs && fullargs.copymode){ if(fullargs && fullargs.copymode){
Object.assign(data,{copymode:true}); Object.assign(data,{copymode:true});
} }
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;
}
xData.refresh(result.datas);
});
} }
openIndexViewTab(data); const view: any = {
viewname: 'table-sync-edit-view',
height: 0,
width: 0,
title: this.$t('entities.tablesync.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册