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

lab_gzf 部署微服务应用

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