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

lab_gzf 部署微服务应用

上级 7bee11b3
...@@ -511,27 +511,16 @@ export class EAMAssetChildGridViewBase extends GridViewBase { ...@@ -511,27 +511,16 @@ export class EAMAssetChildGridViewBase extends GridViewBase {
} }
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'eamassets', parameterName: 'eamasset' }, { pathName: 'eamassets', parameterName: 'eamasset' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openPopupModal = (view: any, data: any) => { const openIndexViewTab = (data: any) => {
let container: Subject<any> = this.$appmodal.openModal(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: 'eamasset-edit-view',
height: 0,
width: 0,
title: this.$t('entities.eamasset.views.editview.title'),
};
openPopupModal(view, data);
} }
...@@ -561,27 +550,14 @@ export class EAMAssetChildGridViewBase extends GridViewBase { ...@@ -561,27 +550,14 @@ export class EAMAssetChildGridViewBase extends GridViewBase {
} }
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'eamassets', parameterName: 'eamasset' }, { pathName: 'eamassets', parameterName: 'eamasset' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openPopupModal = (view: any, data: any) => { const openIndexViewTab = (data: any) => {
let container: Subject<any> = this.$appmodal.openModal(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; openIndexViewTab(data);
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'eamasset-edit-view',
height: 0,
width: 0,
title: this.$t('entities.eamasset.views.editview.title'),
};
openPopupModal(view, data);
} }
......
...@@ -511,27 +511,16 @@ export class EAMAssetLocationAssetGridViewBase extends GridViewBase { ...@@ -511,27 +511,16 @@ export class EAMAssetLocationAssetGridViewBase extends GridViewBase {
} }
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'eamassets', parameterName: 'eamasset' }, { pathName: 'eamassets', parameterName: 'eamasset' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openPopupModal = (view: any, data: any) => { const openIndexViewTab = (data: any) => {
let container: Subject<any> = this.$appmodal.openModal(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: 'eamasset-edit-view',
height: 0,
width: 0,
title: this.$t('entities.eamasset.views.editview.title'),
};
openPopupModal(view, data);
} }
......
...@@ -161,28 +161,18 @@ export default class EAMAssetUIServiceBase extends UIService { ...@@ -161,28 +161,18 @@ export default class EAMAssetUIServiceBase extends UIService {
} }
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'eamassets', parameterName: 'eamasset' }, { pathName: 'eamassets', parameterName: 'eamasset' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
actionContext.closeView(null); actionContext.closeView(null);
const openPopupModal = (view: any, data: any) => { const openIndexViewTab = (data: any) => {
let container: Subject<any> = actionContext.$appmodal.openModal(view, context, data); const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
container.subscribe((result: any) => { actionContext.$router.push(routePath);
if (!result || !Object.is(result.ret, 'OK')) { if (xData && xData.refresh && xData.refresh instanceof Function) {
return; xData.refresh(args);
}
const _this: any = actionContext;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
} }
const view: any = { return null;
viewname: 'eamasset-edit-view', }
height: 0, openIndexViewTab(data);
width: 0,
title: actionContext.$t('entities.eamasset.views.editview.title'),
};
openPopupModal(view, data);
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册