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

jackwang 部署微服务应用

上级 3525e7f8
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
"memo": "" "memo": ""
}, },
"hrlegalv_001": { "hrlegalv_001": {
"title": "法人选项操作视图", "title": "法人快速新建",
"caption": "快速新建", "caption": "快速新建",
"viewtype": "DEOPTVIEW", "viewtype": "DEOPTVIEW",
"viewmodule": "Base", "viewmodule": "Base",
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"hrlegaltabexpview": { "hrlegaltabexpview": {
"title": "法人分页导航视图", "title": "法人信息",
"caption": "法人信息", "caption": "法人信息",
"viewtype": "DETABEXPVIEW", "viewtype": "DETABEXPVIEW",
"viewmodule": "Base", "viewmodule": "Base",
......
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
}, },
v_001: { v_001: {
caption: "快速新建", caption: "快速新建",
title: "法人选项操作视图", title: "法人快速新建",
}, },
editview: { editview: {
caption: "法人", caption: "法人",
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
}, },
tabexpview: { tabexpview: {
caption: "法人信息", caption: "法人信息",
title: "法人分页导航视图", title: "法人信息",
}, },
}, },
main_form: { main_form: {
...@@ -137,49 +137,13 @@ export default { ...@@ -137,49 +137,13 @@ export default {
}, },
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem1: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close", caption: "Save And Close",
tip: "Save And Close Window", tip: "Save And Close Window",
}, },
tbitem6: { tbitem2: {
caption: "-", caption: "关闭",
tip: "", tip: "关闭",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
}, },
}, },
tabexpviewtoolbar_toolbar: { tabexpviewtoolbar_toolbar: {
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
}, },
v_001: { v_001: {
caption: "快速新建", caption: "快速新建",
title: "法人选项操作视图", title: "法人快速新建",
}, },
editview: { editview: {
caption: "法人", caption: "法人",
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
}, },
tabexpview: { tabexpview: {
caption: "法人信息", caption: "法人信息",
title: "法人分页导航视图", title: "法人信息",
}, },
}, },
main_form: { main_form: {
...@@ -136,49 +136,13 @@ export default { ...@@ -136,49 +136,13 @@ export default {
}, },
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem1: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭", caption: "保存并关闭",
tip: "保存并关闭", tip: "保存并关闭",
}, },
tbitem6: { tbitem2: {
caption: "-", caption: "关闭",
tip: "", tip: "关闭",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
}, },
}, },
tabexpviewtoolbar_toolbar: { tabexpviewtoolbar_toolbar: {
......
...@@ -104,7 +104,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -104,7 +104,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "9559258a9c3ac118e15ead941b780682" "viewtag": "9559258a9c3ac118e15ead941b780682"
}, },
"hrlegalv_001": { "hrlegalv_001": {
"title": "法人选项操作视图", "title": "法人快速新建",
"caption": "快速新建", "caption": "快速新建",
"viewtype": "DEOPTVIEW", "viewtype": "DEOPTVIEW",
"viewmodule": "Base", "viewmodule": "Base",
...@@ -136,7 +136,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -136,7 +136,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "e50ad3e1883bafa2d6f264d44ca8ff89" "viewtag": "e50ad3e1883bafa2d6f264d44ca8ff89"
}, },
"hrlegaltabexpview": { "hrlegaltabexpview": {
"title": "法人分页导航视图", "title": "法人信息",
"caption": "法人信息", "caption": "法人信息",
"viewtype": "DETABEXPVIEW", "viewtype": "DETABEXPVIEW",
"viewmodule": "Base", "viewmodule": "Base",
......
<studio-view-style2 viewName="hrlegaldashboardview" viewTitle="法人数据看板视图" class='deportalview hrlegal-dashboard-view'> <studio-view-style2 viewName="hrlegaldashboardview" viewTitle="法人数据看板视图" class='deportalview hrlegal-dashboard-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_dashboard <view_dashboard
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
......
...@@ -99,23 +99,9 @@ export class HRLegalEditViewBase extends EditViewBase { ...@@ -99,23 +99,9 @@ export class HRLegalEditViewBase extends EditViewBase {
* @memberof HRLegalEditView * @memberof HRLegalEditView
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '', class: '' } }, tbitem1: { name: 'tbitem1', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
tbitem4: { name: 'tbitem4', caption: '保存并新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并新建', iconcls: 'sx-tb-saveandnew', icon: '../sasrfex/images/default/icon_saveandnew.png', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndNew', target: '', class: '' } }, tbitem2: { name: 'tbitem2', caption: '关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Exit', target: '', class: '' } },
tbitem5: { name: 'tbitem5', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem7: { name: 'tbitem7', caption: '删除并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY', class: '' } },
tbitem8: { name: 'tbitem8', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem12: { name: 'tbitem12', caption: '新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } },
tbitem13: { name: 'tbitem13', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem14: { name: 'tbitem14', caption: '拷贝', 'isShowCaption': true, 'isShowIcon': true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY', class: '' } },
tbitem16: { name: 'tbitem16', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem22: { name: 'tbitem22', caption: '帮助', 'isShowCaption': true, 'isShowIcon': true, tooltip: '帮助', iconcls: 'fa fa-question', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Help', target: '', class: '' } },
}; };
...@@ -165,35 +151,11 @@ export class HRLegalEditViewBase extends EditViewBase { ...@@ -165,35 +151,11 @@ export class HRLegalEditViewBase extends EditViewBase {
* @memberof HRLegalEditViewBase * @memberof HRLegalEditViewBase
*/ */
public toolbar_click($event: any, $event2?: any): void { public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem3_click(null, '', $event2); this.toolbar_tbitem1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem15')) { if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem15_click(null, '', $event2); this.toolbar_tbitem2_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem22')) {
this.toolbar_tbitem22_click(null, '', $event2);
} }
} }
...@@ -238,63 +200,7 @@ export class HRLegalEditViewBase extends EditViewBase { ...@@ -238,63 +200,7 @@ export class HRLegalEditViewBase extends EditViewBase {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) { public toolbar_tbitem1_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem4_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -322,35 +228,7 @@ export class HRLegalEditViewBase extends EditViewBase { ...@@ -322,35 +228,7 @@ export class HRLegalEditViewBase extends EditViewBase {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public toolbar_tbitem7_click(params: any = {}, tag?: any, $event?: any) { public toolbar_tbitem2_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -367,202 +245,9 @@ export class HRLegalEditViewBase extends EditViewBase { ...@@ -367,202 +245,9 @@ export class HRLegalEditViewBase extends EditViewBase {
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"HRLegal"); this.Exit(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem10_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem12_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem14_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem15_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem22_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.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"HRLegal");
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public SaveAndNew(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.saveAndNew instanceof Function)) {
return;
}
xData.saveAndNew().then((response: any) => {
if (!response || response.status !== 200) {
_this.$emit('viewdataschange', JSON.stringify({status:'error',action:'saveAndNew'}));
return;
}
_this.$emit('viewdataschange', JSON.stringify({status:'success',action:'saveAndNew',data:response.data}));
if (xData.autoLoad instanceof Function) {
xData.autoLoad();
}
});
}
/** /**
* 保存并关闭 * 保存并关闭
* *
...@@ -597,7 +282,7 @@ export class HRLegalEditViewBase extends EditViewBase { ...@@ -597,7 +282,7 @@ export class HRLegalEditViewBase extends EditViewBase {
} }
} }
/** /**
* 删除并关闭 * 关闭
* *
* @param {any[]} args 当前数据 * @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文 * @param {any} contextJO 行为附加上下文
...@@ -607,169 +292,12 @@ export class HRLegalEditViewBase extends EditViewBase { ...@@ -607,169 +292,12 @@ export class HRLegalEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase * @memberof HRLegalEditViewBase
*/ */
public RemoveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; this.closeView(args);
if (xData && xData.removeAndExit instanceof Function) {
xData.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){ if(window.parent){
window.parent.postMessage([{ ...response.data }],'*'); window.parent.postMessage([{ ...args }],'*');
} }
});
} else if (_this.removeAndExit && _this.removeAndExit instanceof Function) {
_this.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
} }
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public SaveAndStart(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.wfstart instanceof Function)) {
return;
}
xData.wfstart(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if(window.parent){
window.parent.postMessage({ ..._data },'*');
}
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
}
});
}
/**
* 当前流程步骤
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public ViewWFStep(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.wfsubmit instanceof Function)) {
return;
}
xData.wfsubmit(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
} else if (_this.$tabPageExp) {
_this.$tabPageExp.onClose(_this.$route.fullPath);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { hrlegal: args[0].hrlegal });
}
if(!params) params = {};
Object.assign(params,{copymode:true});
_this.opendata([{ ...data }], params, $event, xData);
} else {
Object.assign(this.viewparams,{copymode:true});
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) {
return ;
}
xData.print();
}
/**
* 帮助
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRLegalEditViewBase
*/
public Help(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '帮助未支持' });
}
} }
\ No newline at end of file
...@@ -103,7 +103,7 @@ export class HRLegalGridViewBase extends GridViewBase { ...@@ -103,7 +103,7 @@ export class HRLegalGridViewBase extends GridViewBase {
* @memberof HRLegalGridView * @memberof HRLegalGridView
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem1_ff_002: { name: 'tbitem1_ff_002', caption: '新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '新建', iconcls: 'fa fa-user-plus', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'FF_002', target: 'SINGLEKEY', class: '' } }, tbitem1_ff_002: { name: 'tbitem1_ff_002', caption: '新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '新建', iconcls: 'fa fa-user-plus', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'FF_002', target: 'NONE', class: '' } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem4: { name: 'tbitem4', 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: '' } }, tbitem4: { name: 'tbitem4', 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: '' } },
...@@ -523,7 +523,7 @@ export class HRLegalGridViewBase extends GridViewBase { ...@@ -523,7 +523,7 @@ export class HRLegalGridViewBase extends GridViewBase {
const view: any = { const view: any = {
viewname: 'hrlegal-v-001', viewname: 'hrlegal-v-001',
height: 0, height: 0,
width: 800, width: 600,
title: this.$t('entities.hrlegal.views.v_001.title'), title: this.$t('entities.hrlegal.views.v_001.title'),
placement: 'DRAWER_RIGHT', placement: 'DRAWER_RIGHT',
}; };
......
...@@ -6,7 +6,7 @@ import TabExpViewEngine from '@engine/view/tab-exp-view-engine'; ...@@ -6,7 +6,7 @@ import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
import HRLegalUIService from '@/uiservice/hrlegal/hrlegal-ui-service'; import HRLegalUIService from '@/uiservice/hrlegal/hrlegal-ui-service';
/** /**
* 法人分页导航视图视图基类 * 法人信息视图基类
* *
* @export * @export
* @class HRLegalTabExpViewBase * @class HRLegalTabExpViewBase
......
<studio-view-style2 viewName="hrlegaltabexpview" viewTitle="法人分页导航视图" class='detabexpview hrlegal-tab-exp-view'> <studio-view-style2 viewName="hrlegaltabexpview" viewTitle="法人信息" class='detabexpview hrlegal-tab-exp-view'>
<template slot='title'> <template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span> <span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template> </template>
......
...@@ -6,7 +6,7 @@ import { HRLegalTabExpViewBase } from './hrlegal-tab-exp-view-base'; ...@@ -6,7 +6,7 @@ import { HRLegalTabExpViewBase } from './hrlegal-tab-exp-view-base';
import view_tabexppanel from '@widgets/hrlegal/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel.vue'; import view_tabexppanel from '@widgets/hrlegal/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel.vue';
/** /**
* 法人分页导航视图视图 * 法人信息视图
* *
* @export * @export
* @class HRLegalTabExpView * @class HRLegalTabExpView
......
...@@ -6,7 +6,7 @@ import OptionViewEngine from '@engine/view/option-view-engine'; ...@@ -6,7 +6,7 @@ import OptionViewEngine from '@engine/view/option-view-engine';
import HRLegalUIService from '@/uiservice/hrlegal/hrlegal-ui-service'; import HRLegalUIService from '@/uiservice/hrlegal/hrlegal-ui-service';
/** /**
* 法人选项操作视图视图基类 * 法人快速新建视图基类
* *
* @export * @export
* @class HRLegalV_001Base * @class HRLegalV_001Base
......
<studio-view-style2 viewName="hrlegalv_001" viewTitle="法人选项操作视图" class='deoptview hrlegal-v-001'> <studio-view-style2 viewName="hrlegalv_001" viewTitle="法人快速新建" class='deoptview hrlegal-v-001'>
<template slot='title'> <template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span> <span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template> </template>
......
...@@ -6,7 +6,7 @@ import { HRLegalV_001Base } from './hrlegal-v-001-base'; ...@@ -6,7 +6,7 @@ import { HRLegalV_001Base } from './hrlegal-v-001-base';
import view_form from '@widgets/hrlegal/ef-001-form/ef-001-form.vue'; import view_form from '@widgets/hrlegal/ef-001-form/ef-001-form.vue';
/** /**
* 法人选项操作视图视图 * 法人快速新建视图
* *
* @export * @export
* @class HRLegalV_001 * @class HRLegalV_001
......
<studio-view-style2 viewName="hrlegalv_002" viewTitle="法人编辑视图" class='deeditview hrlegal-v-002'> <studio-view-style2 viewName="hrlegalv_002" viewTitle="法人编辑视图" class='deeditview hrlegal-v-002'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form <view_form
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
......
...@@ -248,10 +248,7 @@ export default class HRLegalUIServiceBase extends UIService { ...@@ -248,10 +248,7 @@ export default class HRLegalUIServiceBase extends UIService {
let parentViewParam:any = {}; let parentViewParam:any = {};
const _this: any = actionContext; const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args); const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY'; const actionTarget: string | null = 'NONE';
Object.assign(context, { hrlegal: '%hrlegal%' });
Object.assign(params, { legalid: '%hrlegal%' });
Object.assign(params, { legalname: '%legalname%' });
if(_this.context){ if(_this.context){
parentContext = _this.context; parentContext = _this.context;
} }
...@@ -287,7 +284,7 @@ export default class HRLegalUIServiceBase extends UIService { ...@@ -287,7 +284,7 @@ export default class HRLegalUIServiceBase extends UIService {
const view: any = { const view: any = {
viewname: 'hrlegal-v-001', viewname: 'hrlegal-v-001',
height: 0, height: 0,
width: 800, width: 600,
placement: 'DRAWER_RIGHT', placement: 'DRAWER_RIGHT',
}; };
openDrawer(view, data); openDrawer(view, data);
...@@ -333,7 +330,6 @@ export default class HRLegalUIServiceBase extends UIService { ...@@ -333,7 +330,6 @@ export default class HRLegalUIServiceBase extends UIService {
{ pathName: 'hrlegals', parameterName: 'hrlegal' }, { pathName: 'hrlegals', parameterName: 'hrlegal' },
{ pathName: 'editview', parameterName: 'editview' }, { pathName: 'editview', parameterName: 'editview' },
]; ];
actionContext.closeView(null);
const openIndexViewTab = (data: any) => { const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data); const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath); actionContext.$router.push(routePath);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册