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

lab_gzf 部署微服务应用

上级 5bee3b22
......@@ -220,7 +220,7 @@
"memo": "系统自动添加"
},
"eamapplygridview": {
"title": "维护申请表格视图",
"title": "维护申请信息",
"caption": "维护申请",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Apply",
......
......@@ -27,7 +27,7 @@ export default {
},
gridview: {
caption: "维护申请",
title: "维护申请表格视图",
title: "维护申请信息",
},
summaryview: {
caption: "维护申请",
......@@ -117,6 +117,14 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem12_openquickcreateview: {
caption: "新建",
tip: "新建",
},
tbitem14: {
caption: "-",
tip: "",
},
tbitem2: {
caption: "Edit",
tip: "Edit {0}",
......
......@@ -26,7 +26,7 @@ export default {
},
gridview: {
caption: "维护申请",
title: "维护申请表格视图",
title: "维护申请信息",
},
summaryview: {
caption: "维护申请",
......@@ -116,6 +116,14 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem12_openquickcreateview: {
caption: "新建",
tip: "新建",
},
tbitem14: {
caption: "-",
tip: "",
},
tbitem2: {
caption: "编辑",
tip: "编辑",
......
......@@ -184,7 +184,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "58b301299902245cdd7dfd5ae23545b4"
},
"eamapplygridview": {
"title": "维护申请表格视图",
"title": "维护申请信息",
"caption": "维护申请",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Apply",
......
......@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
/**
* 维护申请表格视图视图基类
* 维护申请信息视图基类
*
* @export
* @class EAMApplyGridViewBase
......@@ -103,6 +103,9 @@ export class EAMApplyGridViewBase extends GridViewBase {
* @memberof EAMApplyGridView
*/
public toolBarModels: any = {
tbitem12_openquickcreateview: { name: 'tbitem12_openquickcreateview', caption: '新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'OpenQuickCreateView', target: 'NONE', class: '' } },
tbitem14: { name: 'tbitem14', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', caption: '编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -171,6 +174,9 @@ export class EAMApplyGridViewBase extends GridViewBase {
* @memberof EAMApplyGridViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem12_openquickcreateview')) {
this.toolbar_tbitem12_openquickcreateview_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
......@@ -279,6 +285,35 @@ export class EAMApplyGridViewBase extends GridViewBase {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem12_openquickcreateview_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:EAMApplyUIService = new EAMApplyUIService();
curUIService.EAMApply_OpenQuickCreateView(datas,contextJO, paramJO, $event, xData,this,"EAMApply");
}
/**
* 逻辑事件
*
......
<studio-view-style2 viewName="eamapplygridview" viewTitle="维护申请表格视图" class='degridview eamapply-grid-view'>
<studio-view-style2 viewName="eamapplygridview" viewTitle="维护申请信息" class='degridview eamapply-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
......
......@@ -7,7 +7,7 @@ import view_grid from '@widgets/eamapply/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamapply/default-searchform/default-searchform.vue';
/**
* 维护申请表格视图视图
* 维护申请信息视图
*
* @export
* @class EAMApplyGridView
......
......@@ -112,6 +112,117 @@ export default class EAMApplyUIServiceBase extends UIService {
public initDeMainStateOPPrivsMap(){
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async EAMApply_OpenQuickCreateView(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'NONE';
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'eamapplies', parameterName: 'eamapply' },
];
actionContext.closeView(null);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = actionContext.$appdrawer.openDrawer(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);
}
if (this.EAMApply_OpenInfo_MainView && this.EAMApply_OpenInfo_MainView instanceof Function) {
this.EAMApply_OpenInfo_MainView(result.datas[0],context,params, $event, xData,actionContext);
}
return result.datas;
});
}
const view: any = {
viewname: 'eamapply-quick-create-view',
height: 0,
width: 0,
title: actionContext.$t('entities.eamapply.views.quickcreateview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 打开主信息界面
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async EAMApply_OpenInfo_MainView(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { eamapply: '%eamapply%' });
Object.assign(params, { eamapplyid: '%eamapply%' });
Object.assign(params, { eamapplyname: '%eamapplyname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'eamapplies', parameterName: 'eamapply' },
{ pathName: 'infoview', parameterName: 'infoview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
}
openIndexViewTab(data);
}
/**
* 获取指定数据的重定向页面
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册