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

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 9bb47062
...@@ -1320,17 +1320,30 @@ export default class IBIZBOOKUsr6GridViewBase extends Vue { ...@@ -1320,17 +1320,30 @@ export default class IBIZBOOKUsr6GridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' }, { pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'optionview', parameterName: 'optionview' },
]; ];
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 openPopupModal = (view: any, data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data); let container: Subject<any> = this.$appmodal.openModal(view, tempContext, data);
this.$router.push(routePath); container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
} }
openIndexViewTab(data); if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'ibizbookoption-view',
height: 800,
width: 1000,
title: this.$t('entities.ibizbook.views.optionview.title'),
};
openPopupModal(view, data);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册