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

jackwang 部署微服务应用

上级 a96e6e86
......@@ -151,7 +151,6 @@ export default {
menuitem10: "职位",
menuitem11: "职位",
menuitem12: "职务",
menuitem8: "测试",
bottom_exp: "底部内容",
footer_left: "底部左侧",
footer_center: "底部中间",
......
......@@ -151,7 +151,6 @@ export default {
menuitem10: "职位",
menuitem11: "职位",
menuitem12: "职务",
menuitem8: "测试",
bottom_exp: "底部内容",
footer_left: "底部左侧",
footer_center: "底部中间",
......
......@@ -62,6 +62,31 @@ export default {
uiactions: {
},
},
if_001_form: {
details: {
group1: "职务信息",
druipart1: "",
grouppanel1: "技能",
druipart2: "",
grouppanel2: "证书",
druipart3: "",
grouppanel3: "教育",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "职务标识",
srfmajortext: "职务名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
hrdutyname: "职务名称",
memo: "备注",
hrdutyid: "职务标识",
},
uiactions: {
},
},
main_form: {
details: {
group1: "职务基本信息",
......@@ -84,8 +109,7 @@ export default {
main_grid: {
columns: {
hrdutyname: "职务名称",
updateman: "更新人",
updatedate: "更新时间",
memo: "备注",
},
uiactions: {
},
......@@ -97,53 +121,11 @@ export default {
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
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: {
tbitem1_ff_003: {
caption: "编辑",
tip: "编辑",
},
tbitem1_remove_sep: {
caption: "",
tip: "",
......@@ -152,10 +134,6 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem1_ff_003: {
caption: "编辑",
tip: "编辑",
},
tbitem2: {
caption: "-",
tip: "",
......@@ -207,4 +185,50 @@ export default {
tip: "Filter",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
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",
},
},
};
\ No newline at end of file
......@@ -61,6 +61,31 @@ export default {
uiactions: {
},
},
if_001_form: {
details: {
group1: "职务信息",
druipart1: "",
grouppanel1: "技能",
druipart2: "",
grouppanel2: "证书",
druipart3: "",
grouppanel3: "教育",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "职务标识",
srfmajortext: "职务名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
hrdutyname: "职务名称",
memo: "备注",
hrdutyid: "职务标识",
},
uiactions: {
},
},
main_form: {
details: {
group1: "职务基本信息",
......@@ -83,8 +108,7 @@ export default {
main_grid: {
columns: {
hrdutyname: "职务名称",
updateman: "更新人",
updatedate: "更新时间",
memo: "备注",
},
uiactions: {
},
......@@ -96,53 +120,11 @@ export default {
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
},
},
tabexpviewtoolbar_toolbar: {
tbitem1_ff_003: {
caption: "编辑",
tip: "编辑",
},
tbitem1_remove_sep: {
caption: "",
tip: "",
......@@ -151,10 +133,6 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem1_ff_003: {
caption: "编辑",
tip: "编辑",
},
tbitem2: {
caption: "-",
tip: "",
......@@ -206,4 +184,50 @@ export default {
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
},
},
};
\ No newline at end of file
......@@ -287,24 +287,6 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
textcls: '',
appfunctag: '_5',
resourcetag: '',
},
{
id: 'ED02F38F-5988-4458-95BB-75F91E922110',
name: 'menuitem8',
text: '测试',
type: 'MENUITEM',
counterid: '',
tooltip: '测试',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '_7',
resourcetag: '',
},
],
},
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrdutycerts\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutycertid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutycertid, tempValue.hrdutycertid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Select");
......@@ -115,6 +144,33 @@ mock.onGet(new RegExp(/^\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Create");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutycertid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Create
mock.onPost(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Create");
......@@ -141,6 +197,33 @@ mock.onPost(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((conf
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Update");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutycertid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Update
mock.onPut(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Update");
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((confi
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: GetDraft");
console.table({url:config.url, method: config.method, data:config.data});
// GetDraft
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// GetDraft
mock.onGet(new RegExp(/^\/hrdutycerts\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: GetDraft");
......@@ -195,6 +297,33 @@ mock.onGet(new RegExp(/^\/hrdutycerts\/getdraft$/)).reply((config: any) => {
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: CheckKey");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutycertid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: CheckKey");
......@@ -233,6 +362,33 @@ mock.onPost(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).r
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Save");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutycertid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Save
mock.onPost(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Save");
......@@ -271,6 +427,51 @@ mock.onPost(new RegExp(/^\/hrdutycerts\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/fetchdefault$/).exec(config.url);
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
if (items.length > 0 && paramArray.length > 0) {
paramArray.forEach((paramkey: any) => {
if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) {
let keysGrounp: Array<any> = tempValue[paramkey].split(new RegExp(/[\;]/));
let tempArray: Array<any> = [];
keysGrounp.forEach((singlekey: any) => {
let _items = items.filter((item: any) => { return item[paramkey] == singlekey });
if(_items.length >0){
tempArray.push(..._items);
}
})
items = tempArray;
} else {
items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] });
}
})
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(items);
console.groupEnd();
console.groupEnd();
return [status, items];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hrdutycerts\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: FetchDefault");
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrdutycerts\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply(
console.groupEnd();
return [status, records ? records : []];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock.onDelete(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Remove");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutycertid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutycertid, tempValue.hrdutycertid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((con
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Get");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutycertid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutycertid, tempValue.hrdutycertid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrdutycerts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutycert 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrdutyedus\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyeduid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutyeduid, tempValue.hrdutyeduid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Select");
......@@ -115,6 +144,33 @@ mock.onGet(new RegExp(/^\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply(
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Create");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyeduid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Create
mock.onPost(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Create");
......@@ -141,6 +197,33 @@ mock.onPost(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((confi
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Update");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyeduid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Update
mock.onPut(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Update");
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: GetDraft");
console.table({url:config.url, method: config.method, data:config.data});
// GetDraft
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// GetDraft
mock.onGet(new RegExp(/^\/hrdutyedus\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: GetDraft");
......@@ -195,6 +297,33 @@ mock.onGet(new RegExp(/^\/hrdutyedus\/getdraft$/)).reply((config: any) => {
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: CheckKey");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyeduid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: CheckKey");
......@@ -233,6 +362,33 @@ mock.onPost(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).re
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Save");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyeduid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Save
mock.onPost(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Save");
......@@ -271,6 +427,51 @@ mock.onPost(new RegExp(/^\/hrdutyedus\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply(
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/fetchdefault$/).exec(config.url);
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
if (items.length > 0 && paramArray.length > 0) {
paramArray.forEach((paramkey: any) => {
if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) {
let keysGrounp: Array<any> = tempValue[paramkey].split(new RegExp(/[\;]/));
let tempArray: Array<any> = [];
keysGrounp.forEach((singlekey: any) => {
let _items = items.filter((item: any) => { return item[paramkey] == singlekey });
if(_items.length >0){
tempArray.push(..._items);
}
})
items = tempArray;
} else {
items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] });
}
})
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(items);
console.groupEnd();
console.groupEnd();
return [status, items];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hrdutyedus\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: FetchDefault");
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrdutyedus\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((
console.groupEnd();
return [status, records ? records : []];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock.onDelete(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Remove");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyeduid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutyeduid, tempValue.hrdutyeduid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((conf
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Get");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyeduid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutyeduid, tempValue.hrdutyeduid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrdutyedus\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyedu 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrdutyskills\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyskillid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutyskillid, tempValue.hrdutyskillid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Select");
......@@ -115,6 +144,33 @@ mock.onGet(new RegExp(/^\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).repl
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Create");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyskillid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Create
mock.onPost(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Create");
......@@ -141,6 +197,33 @@ mock.onPost(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((con
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Update");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyskillid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Update
mock.onPut(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Update");
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((conf
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: GetDraft");
console.table({url:config.url, method: config.method, data:config.data});
// GetDraft
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// GetDraft
mock.onGet(new RegExp(/^\/hrdutyskills\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: GetDraft");
......@@ -195,6 +297,33 @@ mock.onGet(new RegExp(/^\/hrdutyskills\/getdraft$/)).reply((config: any) => {
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: CheckKey");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyskillid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: CheckKey");
......@@ -233,6 +362,33 @@ mock.onPost(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Save");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyskillid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Save
mock.onPost(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Save");
......@@ -271,6 +427,51 @@ mock.onPost(new RegExp(/^\/hrdutyskills\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).repl
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/fetchdefault$/).exec(config.url);
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
if (items.length > 0 && paramArray.length > 0) {
paramArray.forEach((paramkey: any) => {
if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) {
let keysGrounp: Array<any> = tempValue[paramkey].split(new RegExp(/[\;]/));
let tempArray: Array<any> = [];
keysGrounp.forEach((singlekey: any) => {
let _items = items.filter((item: any) => { return item[paramkey] == singlekey });
if(_items.length >0){
tempArray.push(..._items);
}
})
items = tempArray;
} else {
items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] });
}
})
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(items);
console.groupEnd();
console.groupEnd();
return [status, items];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hrdutyskills\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: FetchDefault");
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrdutyskills\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply
console.groupEnd();
return [status, records ? records : []];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock.onDelete(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Remove");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyskillid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutyskillid, tempValue.hrdutyskillid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((co
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Get");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['hrdutyid','hrdutyskillid'];
const matchArray:any = new RegExp(/^\/hrduties\/([a-zA-Z0-9\-\;]{1,35})\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.hrdutyskillid, tempValue.hrdutyskillid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrdutyskills\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdutyskill 方法: Get");
......
......@@ -561,19 +561,36 @@ export class HRDutyCertGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
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 openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
openIndexViewTab(data);
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'hrduty-cert-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutycert.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......@@ -595,17 +612,36 @@ export class HRDutyCertGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
openIndexViewTab(data);
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'hrduty-cert-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutycert.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import HRDutyCertService from '@/service/hrduty-cert/hrduty-cert-service';
import HRDutyCertAuthService from '@/authservice/hrduty-cert/hrduty-cert-auth-service';
import OptionViewEngine from '@engine/view/option-view-engine';
import HRDutyCertUIService from '@/uiservice/hrduty-cert/hrduty-cert-ui-service';
/**
* 职务证书视图基类
*
* @export
* @class HRDutyCertV_001Base
* @extends {OptionViewBase}
*/
export class HRDutyCertV_001Base extends OptionViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDutyCertV_001Base
*/
protected appDeName: string = 'hrdutycert';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDutyCertV_001Base
*/
protected appDeKey: string = 'hrdutycertid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDutyCertV_001Base
*/
protected appDeMajor: string = 'hrdutycertname';
/**
* 实体服务对象
*
* @type {HRDutyCertService}
* @memberof HRDutyCertV_001Base
*/
protected appEntityService: HRDutyCertService = new HRDutyCertService;
/**
* 实体权限服务对象
*
* @type HRDutyCertUIService
* @memberof HRDutyCertV_001Base
*/
public appUIService: HRDutyCertUIService = new HRDutyCertUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDutyCertV_001Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDutyCertV_001Base
*/
protected model: any = {
srfCaption: 'entities.hrdutycert.views.v_001.caption',
srfTitle: 'entities.hrdutycert.views.v_001.title',
srfSubTitle: 'entities.hrdutycert.views.v_001.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDutyCertV_001Base
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '2ee255b61cfa5e9bb8991f1421e807c3';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDutyCertV_001Base
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRDutyCertV_001Base
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hrdutycert',
majorPSDEField: 'hrdutycertname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_001Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_001Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_001Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrdutycertv_001" viewTitle="职务证书" class='deoptview hrduty-cert-v-001'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./hrduty-cert-v-001.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDutyCertV_001Base } from './hrduty-cert-v-001-base';
import view_form from '@widgets/hrduty-cert/main-form/main-form.vue';
/**
* 职务证书视图
*
* @export
* @class HRDutyCertV_001
* @extends {HRDutyCertV_001Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRDutyCertV_001 extends HRDutyCertV_001Base { }
</script>
import { Subject } from 'rxjs';
import { GridView9Base } from '@/studio-core';
import HRDutyCertService from '@/service/hrduty-cert/hrduty-cert-service';
import HRDutyCertAuthService from '@/authservice/hrduty-cert/hrduty-cert-auth-service';
import GridView9Engine from '@engine/view/grid-view9-engine';
import HRDutyCertUIService from '@/uiservice/hrduty-cert/hrduty-cert-ui-service';
import CodeListService from "@service/app/codelist-service";
/**
* 职务证书嵌入职务视图基类
*
* @export
* @class HRDutyCertV_002Base
* @extends {GridView9Base}
*/
export class HRDutyCertV_002Base extends GridView9Base {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDutyCertV_002Base
*/
protected appDeName: string = 'hrdutycert';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDutyCertV_002Base
*/
protected appDeKey: string = 'hrdutycertid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDutyCertV_002Base
*/
protected appDeMajor: string = 'hrdutycertname';
/**
* 实体服务对象
*
* @type {HRDutyCertService}
* @memberof HRDutyCertV_002Base
*/
protected appEntityService: HRDutyCertService = new HRDutyCertService;
/**
* 实体权限服务对象
*
* @type HRDutyCertUIService
* @memberof HRDutyCertV_002Base
*/
public appUIService: HRDutyCertUIService = new HRDutyCertUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDutyCertV_002Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDutyCertV_002Base
*/
protected model: any = {
srfCaption: 'entities.hrdutycert.views.v_002.caption',
srfTitle: 'entities.hrdutycert.views.v_002.title',
srfSubTitle: 'entities.hrdutycert.views.v_002.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDutyCertV_002Base
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '3180604a9489c03131e6642e456cd5c0';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDutyCertV_002Base
*/
public engine: GridView9Engine = new GridView9Engine();
/**
* 引擎初始化
*
* @public
* @memberof HRDutyCertV_002Base
*/
public engineInit(): void {
this.engine.init({
view: this,
opendata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.opendata(args,fullargs, params, $event, xData);
},
newdata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.newdata(args,fullargs, params, $event, xData);
},
grid: this.$refs.grid,
keyPSDEField: 'hrdutycert',
majorPSDEField: 'hrdutycertname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_002Base
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_002Base
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_002Base
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_002Base
*/
public grid_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'remove', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyCertV_002Base
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDutyCertV_002
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
const data: any = {};
if(args[0].srfsourcekey){
data.srfsourcekey = args[0].srfsourcekey;
}
let tempContext = JSON.parse(JSON.stringify(this.context));
delete tempContext.hrdutycert;
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
];
const _this: any = this;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(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: 'hrduty-cert-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutycert.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDutyCertV_002
*/
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
const localContext: any = null;
const localViewParam: any =null;
const data: any = {};
let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
];
const _this: any = this;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(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: 'hrduty-cert-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutycert.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @protected
* @type {(0 | 1 | 2)}
* @memberof HRDutyCertV_002Base
*/
protected gridRowActiveMode: 0 | 1 | 2 = 0;
}
\ No newline at end of file
<studio-embed-view-style2 viewName="hrdutycertv_002" viewTitle="职务证书嵌入职务" class='degridview9 hrduty-cert-v-002'>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-embed-view-style2>
\ No newline at end of file
<template src="./hrduty-cert-v-002.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDutyCertV_002Base } from './hrduty-cert-v-002-base';
import view_grid from '@widgets/hrduty-cert/main-grid/main-grid.vue';
/**
* 职务证书嵌入职务视图
*
* @export
* @class HRDutyCertV_002
* @extends {HRDutyCertV_002Base}
*/
@Component({
components: {
view_grid,
}
})
@VueLifeCycleProcessing()
export default class HRDutyCertV_002 extends HRDutyCertV_002Base { }
</script>
......@@ -561,19 +561,36 @@ export class HRDutyEduGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
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 openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
openIndexViewTab(data);
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'hrduty-edu-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyedu.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......@@ -595,17 +612,36 @@ export class HRDutyEduGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
openIndexViewTab(data);
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'hrduty-edu-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyedu.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
<studio-view-style2 viewName="hrdutyedugridview" viewTitle="职务教育表格视图" class='degridview hrduty-edu-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="教育" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import HRDutyEduService from '@/service/hrduty-edu/hrduty-edu-service';
import HRDutyEduAuthService from '@/authservice/hrduty-edu/hrduty-edu-auth-service';
import OptionViewEngine from '@engine/view/option-view-engine';
import HRDutyEduUIService from '@/uiservice/hrduty-edu/hrduty-edu-ui-service';
/**
* 职务教育视图基类
*
* @export
* @class HRDutyEduV_001Base
* @extends {OptionViewBase}
*/
export class HRDutyEduV_001Base extends OptionViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDutyEduV_001Base
*/
protected appDeName: string = 'hrdutyedu';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDutyEduV_001Base
*/
protected appDeKey: string = 'hrdutyeduid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDutyEduV_001Base
*/
protected appDeMajor: string = 'hrdutyeduname';
/**
* 实体服务对象
*
* @type {HRDutyEduService}
* @memberof HRDutyEduV_001Base
*/
protected appEntityService: HRDutyEduService = new HRDutyEduService;
/**
* 实体权限服务对象
*
* @type HRDutyEduUIService
* @memberof HRDutyEduV_001Base
*/
public appUIService: HRDutyEduUIService = new HRDutyEduUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDutyEduV_001Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDutyEduV_001Base
*/
protected model: any = {
srfCaption: 'entities.hrdutyedu.views.v_001.caption',
srfTitle: 'entities.hrdutyedu.views.v_001.title',
srfSubTitle: 'entities.hrdutyedu.views.v_001.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDutyEduV_001Base
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '06dd873e0c67a6a416c76c9803fd80bd';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDutyEduV_001Base
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRDutyEduV_001Base
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hrdutyedu',
majorPSDEField: 'hrdutyeduname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_001Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_001Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_001Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrdutyeduv_001" viewTitle="职务教育" class='deoptview hrduty-edu-v-001'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./hrduty-edu-v-001.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDutyEduV_001Base } from './hrduty-edu-v-001-base';
import view_form from '@widgets/hrduty-edu/main-form/main-form.vue';
/**
* 职务教育视图
*
* @export
* @class HRDutyEduV_001
* @extends {HRDutyEduV_001Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRDutyEduV_001 extends HRDutyEduV_001Base { }
</script>
import { Subject } from 'rxjs';
import { GridView9Base } from '@/studio-core';
import HRDutyEduService from '@/service/hrduty-edu/hrduty-edu-service';
import HRDutyEduAuthService from '@/authservice/hrduty-edu/hrduty-edu-auth-service';
import GridView9Engine from '@engine/view/grid-view9-engine';
import HRDutyEduUIService from '@/uiservice/hrduty-edu/hrduty-edu-ui-service';
import CodeListService from "@service/app/codelist-service";
/**
* 职务教育嵌入职务视图基类
*
* @export
* @class HRDutyEduV_002Base
* @extends {GridView9Base}
*/
export class HRDutyEduV_002Base extends GridView9Base {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDutyEduV_002Base
*/
protected appDeName: string = 'hrdutyedu';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDutyEduV_002Base
*/
protected appDeKey: string = 'hrdutyeduid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDutyEduV_002Base
*/
protected appDeMajor: string = 'hrdutyeduname';
/**
* 实体服务对象
*
* @type {HRDutyEduService}
* @memberof HRDutyEduV_002Base
*/
protected appEntityService: HRDutyEduService = new HRDutyEduService;
/**
* 实体权限服务对象
*
* @type HRDutyEduUIService
* @memberof HRDutyEduV_002Base
*/
public appUIService: HRDutyEduUIService = new HRDutyEduUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDutyEduV_002Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDutyEduV_002Base
*/
protected model: any = {
srfCaption: 'entities.hrdutyedu.views.v_002.caption',
srfTitle: 'entities.hrdutyedu.views.v_002.title',
srfSubTitle: 'entities.hrdutyedu.views.v_002.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDutyEduV_002Base
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '069985244f19f8c6f8e74e39ef573e9a';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDutyEduV_002Base
*/
public engine: GridView9Engine = new GridView9Engine();
/**
* 引擎初始化
*
* @public
* @memberof HRDutyEduV_002Base
*/
public engineInit(): void {
this.engine.init({
view: this,
opendata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.opendata(args,fullargs, params, $event, xData);
},
newdata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.newdata(args,fullargs, params, $event, xData);
},
grid: this.$refs.grid,
keyPSDEField: 'hrdutyedu',
majorPSDEField: 'hrdutyeduname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_002Base
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_002Base
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_002Base
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_002Base
*/
public grid_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'remove', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutyEduV_002Base
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDutyEduV_002
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
const data: any = {};
if(args[0].srfsourcekey){
data.srfsourcekey = args[0].srfsourcekey;
}
let tempContext = JSON.parse(JSON.stringify(this.context));
delete tempContext.hrdutyedu;
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
];
const _this: any = this;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(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: 'hrduty-edu-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyedu.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDutyEduV_002
*/
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
const localContext: any = null;
const localViewParam: any =null;
const data: any = {};
let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
];
const _this: any = this;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(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: 'hrduty-edu-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyedu.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @protected
* @type {(0 | 1 | 2)}
* @memberof HRDutyEduV_002Base
*/
protected gridRowActiveMode: 0 | 1 | 2 = 0;
}
\ No newline at end of file
<studio-embed-view-style2 viewName="hrdutyeduv_002" viewTitle="职务教育嵌入职务" class='degridview9 hrduty-edu-v-002'>
<i-input slot="quickSearch" v-model="query" search @on-search="onSearch($event)" placeholder="教育" />
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-embed-view-style2>
\ No newline at end of file
<template src="./hrduty-edu-v-002.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDutyEduV_002Base } from './hrduty-edu-v-002-base';
import view_grid from '@widgets/hrduty-edu/main-grid/main-grid.vue';
/**
* 职务教育嵌入职务视图
*
* @export
* @class HRDutyEduV_002
* @extends {HRDutyEduV_002Base}
*/
@Component({
components: {
view_grid,
}
})
@VueLifeCycleProcessing()
export default class HRDutyEduV_002 extends HRDutyEduV_002Base { }
</script>
......@@ -561,19 +561,36 @@ export class HRDutySkillGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
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 openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
openIndexViewTab(data);
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'hrduty-skill-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyskill.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......@@ -595,17 +612,36 @@ export class HRDutySkillGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
openIndexViewTab(data);
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'hrduty-skill-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyskill.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
<studio-view-style2 viewName="hrdutyskillgridview" viewTitle="职务技能表格视图" class='degridview hrduty-skill-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="技能" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import HRDutySkillService from '@/service/hrduty-skill/hrduty-skill-service';
import HRDutySkillAuthService from '@/authservice/hrduty-skill/hrduty-skill-auth-service';
import OptionViewEngine from '@engine/view/option-view-engine';
import HRDutySkillUIService from '@/uiservice/hrduty-skill/hrduty-skill-ui-service';
/**
* 职务技能视图基类
*
* @export
* @class HRDutySkillV_001Base
* @extends {OptionViewBase}
*/
export class HRDutySkillV_001Base extends OptionViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDutySkillV_001Base
*/
protected appDeName: string = 'hrdutyskill';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDutySkillV_001Base
*/
protected appDeKey: string = 'hrdutyskillid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDutySkillV_001Base
*/
protected appDeMajor: string = 'hrdutyskillname';
/**
* 实体服务对象
*
* @type {HRDutySkillService}
* @memberof HRDutySkillV_001Base
*/
protected appEntityService: HRDutySkillService = new HRDutySkillService;
/**
* 实体权限服务对象
*
* @type HRDutySkillUIService
* @memberof HRDutySkillV_001Base
*/
public appUIService: HRDutySkillUIService = new HRDutySkillUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDutySkillV_001Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDutySkillV_001Base
*/
protected model: any = {
srfCaption: 'entities.hrdutyskill.views.v_001.caption',
srfTitle: 'entities.hrdutyskill.views.v_001.title',
srfSubTitle: 'entities.hrdutyskill.views.v_001.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDutySkillV_001Base
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'd2411142d3398651fb50d214bcfc3e3d';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDutySkillV_001Base
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRDutySkillV_001Base
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hrdutyskill',
majorPSDEField: 'hrdutyskillname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_001Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_001Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_001Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrdutyskillv_001" viewTitle="职务技能" class='deoptview hrduty-skill-v-001'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./hrduty-skill-v-001.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDutySkillV_001Base } from './hrduty-skill-v-001-base';
import view_form from '@widgets/hrduty-skill/main-form/main-form.vue';
/**
* 职务技能视图
*
* @export
* @class HRDutySkillV_001
* @extends {HRDutySkillV_001Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRDutySkillV_001 extends HRDutySkillV_001Base { }
</script>
import { Subject } from 'rxjs';
import { GridView9Base } from '@/studio-core';
import HRDutySkillService from '@/service/hrduty-skill/hrduty-skill-service';
import HRDutySkillAuthService from '@/authservice/hrduty-skill/hrduty-skill-auth-service';
import GridView9Engine from '@engine/view/grid-view9-engine';
import HRDutySkillUIService from '@/uiservice/hrduty-skill/hrduty-skill-ui-service';
import CodeListService from "@service/app/codelist-service";
/**
* 职务技能嵌入职务视图基类
*
* @export
* @class HRDutySkillV_002Base
* @extends {GridView9Base}
*/
export class HRDutySkillV_002Base extends GridView9Base {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDutySkillV_002Base
*/
protected appDeName: string = 'hrdutyskill';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDutySkillV_002Base
*/
protected appDeKey: string = 'hrdutyskillid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDutySkillV_002Base
*/
protected appDeMajor: string = 'hrdutyskillname';
/**
* 实体服务对象
*
* @type {HRDutySkillService}
* @memberof HRDutySkillV_002Base
*/
protected appEntityService: HRDutySkillService = new HRDutySkillService;
/**
* 实体权限服务对象
*
* @type HRDutySkillUIService
* @memberof HRDutySkillV_002Base
*/
public appUIService: HRDutySkillUIService = new HRDutySkillUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDutySkillV_002Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDutySkillV_002Base
*/
protected model: any = {
srfCaption: 'entities.hrdutyskill.views.v_002.caption',
srfTitle: 'entities.hrdutyskill.views.v_002.title',
srfSubTitle: 'entities.hrdutyskill.views.v_002.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDutySkillV_002Base
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '6d4cab857af2830b37515c2015a40e5f';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDutySkillV_002Base
*/
public engine: GridView9Engine = new GridView9Engine();
/**
* 引擎初始化
*
* @public
* @memberof HRDutySkillV_002Base
*/
public engineInit(): void {
this.engine.init({
view: this,
opendata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.opendata(args,fullargs, params, $event, xData);
},
newdata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.newdata(args,fullargs, params, $event, xData);
},
grid: this.$refs.grid,
keyPSDEField: 'hrdutyskill',
majorPSDEField: 'hrdutyskillname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_002Base
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_002Base
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_002Base
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_002Base
*/
public grid_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'remove', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDutySkillV_002Base
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDutySkillV_002
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
const data: any = {};
if(args[0].srfsourcekey){
data.srfsourcekey = args[0].srfsourcekey;
}
let tempContext = JSON.parse(JSON.stringify(this.context));
delete tempContext.hrdutyskill;
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
];
const _this: any = this;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(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: 'hrduty-skill-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyskill.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDutySkillV_002
*/
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
const localContext: any = null;
const localViewParam: any =null;
const data: any = {};
let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrduty && true){
deResParameters = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
]
}
const parameters: any[] = [
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
];
const _this: any = this;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(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: 'hrduty-skill-v-001',
height: 0,
width: 600,
title: this.$t('entities.hrdutyskill.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @protected
* @type {(0 | 1 | 2)}
* @memberof HRDutySkillV_002Base
*/
protected gridRowActiveMode: 0 | 1 | 2 = 0;
}
\ No newline at end of file
<studio-embed-view-style2 viewName="hrdutyskillv_002" viewTitle="职务技能嵌入职务" class='degridview9 hrduty-skill-v-002'>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-embed-view-style2>
\ No newline at end of file
<template src="./hrduty-skill-v-002.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDutySkillV_002Base } from './hrduty-skill-v-002-base';
import view_grid from '@widgets/hrduty-skill/main-grid/main-grid.vue';
/**
* 职务技能嵌入职务视图
*
* @export
* @class HRDutySkillV_002
* @extends {HRDutySkillV_002Base}
*/
@Component({
components: {
view_grid,
}
})
@VueLifeCycleProcessing()
export default class HRDutySkillV_002 extends HRDutySkillV_002Base { }
</script>
......@@ -99,11 +99,11 @@ export class HRDutyTabExpViewBase extends TabExpViewBase {
* @memberof HRDutyTabExpView
*/
public toolBarModels: any = {
tbitem1_ff_003: { name: 'tbitem1_ff_003', caption: '编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'FF_003', target: 'SINGLEKEY', class: '' } },
tbitem1_remove_sep: { name: 'tbitem1_remove_sep', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem1_remove: { name: 'tbitem1_remove', caption: '删除并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'SINGLEKEY', class: '' } },
tbitem1_ff_003: { name: 'tbitem1_ff_003', caption: '编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'FF_003', target: 'SINGLEKEY', class: '' } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem22: { name: 'tbitem22', 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: '' } },
......@@ -153,12 +153,12 @@ export class HRDutyTabExpViewBase extends TabExpViewBase {
* @memberof HRDutyTabExpViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1_remove')) {
this.toolbar_tbitem1_remove_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem1_ff_003')) {
this.toolbar_tbitem1_ff_003_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem1_remove')) {
this.toolbar_tbitem1_remove_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem22')) {
this.toolbar_tbitem22_click(null, '', $event2);
}
......@@ -172,7 +172,7 @@ export class HRDutyTabExpViewBase extends TabExpViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_remove_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem1_ff_003_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -189,7 +189,7 @@ export class HRDutyTabExpViewBase extends TabExpViewBase {
}
// 界面行为
const curUIService:HRDutyUIService = new HRDutyUIService();
curUIService.HRDuty_Remove(datas,contextJO, paramJO, $event, xData,this,"HRDuty");
curUIService.HRDuty_FF_003(datas,contextJO, paramJO, $event, xData,this,"HRDuty");
}
/**
......@@ -200,7 +200,7 @@ export class HRDutyTabExpViewBase extends TabExpViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_ff_003_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem1_remove_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -217,7 +217,7 @@ export class HRDutyTabExpViewBase extends TabExpViewBase {
}
// 界面行为
const curUIService:HRDutyUIService = new HRDutyUIService();
curUIService.HRDuty_FF_003(datas,contextJO, paramJO, $event, xData,this,"HRDuty");
curUIService.HRDuty_Remove(datas,contextJO, paramJO, $event, xData,this,"HRDuty");
}
/**
......
......@@ -3,7 +3,7 @@
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDutyV_002Base } from './hrduty-v-002-base';
import view_form from '@widgets/hrduty/main-form/main-form.vue';
import view_form from '@widgets/hrduty/if-001-form/if-001-form.vue';
/**
* 职务信息视图
......
......@@ -3,11 +3,11 @@ export const PageComponents = {
Vue.component('hremployee-pickup-view', () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'));
Vue.component('hrpost-v-004', () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'));
Vue.component('hroperation-unit-edit-view', () => import('@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'));
Vue.component('hrduty-edit-view', () => import('@pages/human-resource/hrduty-edit-view/hrduty-edit-view.vue'));
Vue.component('hrpost-grid-view', () => import('@pages/human-resource/hrpost-grid-view/hrpost-grid-view.vue'));
Vue.component('hrduty-v-001', () => import('@pages/human-resource/hrduty-v-001/hrduty-v-001.vue'));
Vue.component('hrpost-v-002', () => import('@pages/human-resource/hrpost-v-002/hrpost-v-002.vue'));
Vue.component('hrdistribution-edit-view', () => import('@pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.vue'));
Vue.component('hrduty-cert-v-002', () => import('@pages/human-resource/hrduty-cert-v-002/hrduty-cert-v-002.vue'));
Vue.component('hrorg-contact-grid-view', () => import('@pages/base/hrorg-contact-grid-view/hrorg-contact-grid-view.vue'));
Vue.component('hroperation-unit-v-001', () => import('@pages/base/hroperation-unit-v-001/hroperation-unit-v-001.vue'));
Vue.component('hroperation-unit-grid-view', () => import('@pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.vue'));
......@@ -18,28 +18,29 @@ export const PageComponents = {
Vue.component('hromhierarchy-grid-view', () => import('@pages/base/hromhierarchy-grid-view/hromhierarchy-grid-view.vue'));
Vue.component('hroperation-unit-v-002', () => import('@pages/base/hroperation-unit-v-002/hroperation-unit-v-002.vue'));
Vue.component('hrduty-cert-grid-view', () => import('@pages/human-resource/hrduty-cert-grid-view/hrduty-cert-grid-view.vue'));
Vue.component('hrduty-skill-v-002', () => import('@pages/human-resource/hrduty-skill-v-002/hrduty-skill-v-002.vue'));
Vue.component('hrpost-rel-v-002', () => import('@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue'));
Vue.component('hremployee-pickup-grid-view', () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'));
Vue.component('hrorganization-pickup-view', () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'));
Vue.component('hrduty-edu-grid-view', () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue'));
Vue.component('hrorganization-pickup-view', () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'));
Vue.component('hrlegal-grid-view', () => import('@pages/base/hrlegal-grid-view/hrlegal-grid-view.vue'));
Vue.component('hromhierarchy-tree-exp-view', () => import('@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue'));
Vue.component('hrpost-v-006', () => import('@pages/human-resource/hrpost-v-006/hrpost-v-006.vue'));
Vue.component('hrlegal-v-002', () => import('@pages/base/hrlegal-v-002/hrlegal-v-002.vue'));
Vue.component('hroperation-unit-tab-exp-view', () => import('@pages/base/hroperation-unit-tab-exp-view/hroperation-unit-tab-exp-view.vue'));
Vue.component('hrduty-edu-edit-view', () => import('@pages/human-resource/hrduty-edu-edit-view/hrduty-edu-edit-view.vue'));
Vue.component('hrorg-address-grid-view', () => import('@pages/base/hrorg-address-grid-view/hrorg-address-grid-view.vue'));
Vue.component('hrpost-pickup-view', () => import('@pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue'));
Vue.component('hrduty-cert-v-001', () => import('@pages/human-resource/hrduty-cert-v-001/hrduty-cert-v-001.vue'));
Vue.component('hrduty-tab-exp-view', () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue'));
Vue.component('hrduty-cert-edit-view', () => import('@pages/human-resource/hrduty-cert-edit-view/hrduty-cert-edit-view.vue'));
Vue.component('hrlegal-dashboard-view', () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'));
Vue.component('hrorganization-pickup-grid-view', () => import('@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'));
Vue.component('hrlegal-dashboard-view', () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'));
Vue.component('hrlegal-v-001', () => import('@pages/base/hrlegal-v-001/hrlegal-v-001.vue'));
Vue.component('hrpost-pickup-grid-view', () => import('@pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue'));
Vue.component('hrduty-skill-grid-view', () => import('@pages/human-resource/hrduty-skill-grid-view/hrduty-skill-grid-view.vue'));
Vue.component('hrduty-edu-v-001', () => import('@pages/human-resource/hrduty-edu-v-001/hrduty-edu-v-001.vue'));
Vue.component('hrpost-dashboard-view', () => import('@pages/human-resource/hrpost-dashboard-view/hrpost-dashboard-view.vue'));
Vue.component('hrduty-skill-edit-view', () => import('@pages/human-resource/hrduty-skill-edit-view/hrduty-skill-edit-view.vue'));
Vue.component('hrorg-address-edit-view', () => import('@pages/base/hrorg-address-edit-view/hrorg-address-edit-view.vue'));
Vue.component('hrduty-skill-v-001', () => import('@pages/human-resource/hrduty-skill-v-001/hrduty-skill-v-001.vue'));
Vue.component('hrduty-dashboard-view', () => import('@pages/human-resource/hrduty-dashboard-view/hrduty-dashboard-view.vue'));
Vue.component('hrorganization-edit-view', () => import('@pages/base/hrorganization-edit-view/hrorganization-edit-view.vue'));
Vue.component('hromhierarchy-cat-grid-view', () => import('@pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue'));
......@@ -56,10 +57,10 @@ export const PageComponents = {
Vue.component('hromhierarchy-cat-pickup-view', () => import('@pages/base/hromhierarchy-cat-pickup-view/hromhierarchy-cat-pickup-view.vue'));
Vue.component('hrpost-v-005', () => import('@pages/human-resource/hrpost-v-005/hrpost-v-005.vue'));
Vue.component('hrlegal-edit-view', () => import('@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'));
Vue.component('hrpost-rel-grid-view', () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'));
Vue.component('hrorganization-grid-view', () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'));
Vue.component('hromhierarchy-edit-view', () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'));
Vue.component('hrorganization-grid-view', () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'));
Vue.component('hrduty-pickup-view', () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'));
Vue.component('hrpost-rel-grid-view', () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'));
Vue.component('hromhierarchy-cat-edit-view', () => import('@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue'));
Vue.component('hrorg-contact-edit-view', () => import('@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'));
Vue.component('hromhierarchy-cat-v-002', () => import('@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'));
......@@ -70,5 +71,6 @@ export const PageComponents = {
Vue.component('hrdistribution-v-001', () => import('@pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue'));
Vue.component('hrduty-grid-view', () => import('@pages/human-resource/hrduty-grid-view/hrduty-grid-view.vue'));
Vue.component('hrpost-edit-view', () => import('@pages/human-resource/hrpost-edit-view/hrpost-edit-view.vue'));
Vue.component('hrduty-edu-v-002', () => import('@pages/human-resource/hrduty-edu-v-002/hrduty-edu-v-002.vue'));
}
};
\ No newline at end of file
......@@ -85,20 +85,6 @@ const router = new Router({
},
component: () => import('@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'),
},
{
path: 'hrduties/:hrduty?/editview/:editview?',
meta: {
caption: 'entities.hrduty.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-edit-view/hrduty-edit-view.vue'),
},
{
path: 'hrposts/:hrpost?/gridview/:gridview?',
meta: {
......@@ -170,6 +156,35 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.vue'),
},
{
path: 'hrduties/:hrduty?/hrdutycerts/:hrdutycert?/v_002/:v_002?',
meta: {
caption: 'entities.hrdutycert.views.v_002.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
{ pathName: 'v_002', parameterName: 'v_002' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-cert-v-002/hrduty-cert-v-002.vue'),
},
{
path: 'hrdutycerts/:hrdutycert?/v_002/:v_002?',
meta: {
caption: 'entities.hrdutycert.views.v_002.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
{ pathName: 'v_002', parameterName: 'v_002' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-cert-v-002/hrduty-cert-v-002.vue'),
},
{
path: 'hroperationunits/:hroperationunit?/hrorgcontacts/:hrorgcontact?/gridview/:gridview?',
meta: {
......@@ -401,6 +416,21 @@ const router = new Router({
},
component: () => import('@pages/base/hroperation-unit-v-002/hroperation-unit-v-002.vue'),
},
{
path: 'hrduties/:hrduty?/hrdutycerts/:hrdutycert?/gridview/:gridview?',
meta: {
caption: 'entities.hrdutycert.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-cert-grid-view/hrduty-cert-grid-view.vue'),
},
{
path: 'hrdutycerts/:hrdutycert?/gridview/:gridview?',
meta: {
......@@ -415,6 +445,35 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrduty-cert-grid-view/hrduty-cert-grid-view.vue'),
},
{
path: 'hrduties/:hrduty?/hrdutyskills/:hrdutyskill?/v_002/:v_002?',
meta: {
caption: 'entities.hrdutyskill.views.v_002.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'v_002', parameterName: 'v_002' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-skill-v-002/hrduty-skill-v-002.vue'),
},
{
path: 'hrdutyskills/:hrdutyskill?/v_002/:v_002?',
meta: {
caption: 'entities.hrdutyskill.views.v_002.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'v_002', parameterName: 'v_002' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-skill-v-002/hrduty-skill-v-002.vue'),
},
{
path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/v_002/:v_002?',
meta: {
......@@ -459,18 +518,19 @@ const router = new Router({
component: () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'),
},
{
path: 'hrorganizations/:hrorganization?/pickupview/:pickupview?',
path: 'hrduties/:hrduty?/hrdutyedus/:hrdutyedu?/gridview/:gridview?',
meta: {
caption: 'entities.hrorganization.views.pickupview.title',
caption: 'entities.hrdutyedu.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'),
component: () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue'),
},
{
path: 'hrdutyedus/:hrdutyedu?/gridview/:gridview?',
......@@ -486,6 +546,20 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue'),
},
{
path: 'hrorganizations/:hrorganization?/pickupview/:pickupview?',
meta: {
caption: 'entities.hrorganization.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'),
},
{
path: 'hrlegals/:hrlegal?/gridview/:gridview?',
meta: {
......@@ -571,20 +645,6 @@ const router = new Router({
},
component: () => import('@pages/base/hroperation-unit-tab-exp-view/hroperation-unit-tab-exp-view.vue'),
},
{
path: 'hrdutyedus/:hrdutyedu?/editview/:editview?',
meta: {
caption: 'entities.hrdutyedu.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-edu-edit-view/hrduty-edu-edit-view.vue'),
},
{
path: 'hroperationunits/:hroperationunit?/hrorgaddresses/:hrorgaddress?/gridview/:gridview?',
meta: {
......@@ -644,46 +704,47 @@ const router = new Router({
component: () => import('@pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue'),
},
{
path: 'hrduties/:hrduty?/tabexpview/:tabexpview?',
path: 'hrduties/:hrduty?/hrdutycerts/:hrdutycert?/v_001/:v_001?',
meta: {
caption: 'entities.hrduty.views.tabexpview.title',
caption: 'entities.hrdutycert.views.v_001.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
{ pathName: 'v_001', parameterName: 'v_001' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue'),
component: () => import('@pages/human-resource/hrduty-cert-v-001/hrduty-cert-v-001.vue'),
},
{
path: 'hrdutycerts/:hrdutycert?/editview/:editview?',
path: 'hrdutycerts/:hrdutycert?/v_001/:v_001?',
meta: {
caption: 'entities.hrdutycert.views.editview.title',
caption: 'entities.hrdutycert.views.v_001.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrdutycerts', parameterName: 'hrdutycert' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'v_001', parameterName: 'v_001' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-cert-edit-view/hrduty-cert-edit-view.vue'),
component: () => import('@pages/human-resource/hrduty-cert-v-001/hrduty-cert-v-001.vue'),
},
{
path: 'hrlegals/:hrlegal?/dashboardview/:dashboardview?',
path: 'hrduties/:hrduty?/tabexpview/:tabexpview?',
meta: {
caption: 'entities.hrlegal.views.dashboardview.title',
caption: 'entities.hrduty.views.tabexpview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrlegals', parameterName: 'hrlegal' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'),
component: () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue'),
},
{
path: 'hrorganizations/:hrorganization?/pickupgridview/:pickupgridview?',
......@@ -699,6 +760,20 @@ const router = new Router({
},
component: () => import('@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'),
},
{
path: 'hrlegals/:hrlegal?/dashboardview/:dashboardview?',
meta: {
caption: 'entities.hrlegal.views.dashboardview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrlegals', parameterName: 'hrlegal' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'),
},
{
path: 'hrlegals/:hrlegal?/v_001/:v_001?',
meta: {
......@@ -727,6 +802,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue'),
},
{
path: 'hrduties/:hrduty?/hrdutyskills/:hrdutyskill?/gridview/:gridview?',
meta: {
caption: 'entities.hrdutyskill.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-skill-grid-view/hrduty-skill-grid-view.vue'),
},
{
path: 'hrdutyskills/:hrdutyskill?/gridview/:gridview?',
meta: {
......@@ -742,32 +832,47 @@ const router = new Router({
component: () => import('@pages/human-resource/hrduty-skill-grid-view/hrduty-skill-grid-view.vue'),
},
{
path: 'hrposts/:hrpost?/dashboardview/:dashboardview?',
path: 'hrduties/:hrduty?/hrdutyedus/:hrdutyedu?/v_001/:v_001?',
meta: {
caption: 'entities.hrpost.views.dashboardview.title',
caption: 'entities.hrdutyedu.views.v_001.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'v_001', parameterName: 'v_001' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrpost-dashboard-view/hrpost-dashboard-view.vue'),
component: () => import('@pages/human-resource/hrduty-edu-v-001/hrduty-edu-v-001.vue'),
},
{
path: 'hrdutyskills/:hrdutyskill?/editview/:editview?',
path: 'hrdutyedus/:hrdutyedu?/v_001/:v_001?',
meta: {
caption: 'entities.hrdutyskill.views.editview.title',
caption: 'entities.hrdutyedu.views.v_001.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'v_001', parameterName: 'v_001' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-edu-v-001/hrduty-edu-v-001.vue'),
},
{
path: 'hrposts/:hrpost?/dashboardview/:dashboardview?',
meta: {
caption: 'entities.hrpost.views.dashboardview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-skill-edit-view/hrduty-skill-edit-view.vue'),
component: () => import('@pages/human-resource/hrpost-dashboard-view/hrpost-dashboard-view.vue'),
},
{
path: 'hroperationunits/:hroperationunit?/hrorgaddresses/:hrorgaddress?/editview/:editview?',
......@@ -813,6 +918,35 @@ const router = new Router({
},
component: () => import('@pages/base/hrorg-address-edit-view/hrorg-address-edit-view.vue'),
},
{
path: 'hrduties/:hrduty?/hrdutyskills/:hrdutyskill?/v_001/:v_001?',
meta: {
caption: 'entities.hrdutyskill.views.v_001.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'v_001', parameterName: 'v_001' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-skill-v-001/hrduty-skill-v-001.vue'),
},
{
path: 'hrdutyskills/:hrdutyskill?/v_001/:v_001?',
meta: {
caption: 'entities.hrdutyskill.views.v_001.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrdutyskills', parameterName: 'hrdutyskill' },
{ pathName: 'v_001', parameterName: 'v_001' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-skill-v-001/hrduty-skill-v-001.vue'),
},
{
path: 'hrduties/:hrduty?/dashboardview/:dashboardview?',
meta: {
......@@ -1083,33 +1217,33 @@ const router = new Router({
component: () => import('@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'),
},
{
path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?',
path: 'hromhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/editview/:editview?',
meta: {
caption: 'entities.hrpostrel.views.gridview.title',
caption: 'entities.hromhierarchy.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'hromhierarchycats', parameterName: 'hromhierarchycat' },
{ pathName: 'hromhierarchies', parameterName: 'hromhierarchy' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'),
},
{
path: 'hrpostrels/:hrpostrel?/gridview/:gridview?',
path: 'hromhierarchies/:hromhierarchy?/editview/:editview?',
meta: {
caption: 'entities.hrpostrel.views.gridview.title',
caption: 'entities.hromhierarchy.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'hromhierarchies', parameterName: 'hromhierarchy' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'),
},
{
path: 'hrorganizations/:hrorganization?/gridview/:gridview?',
......@@ -1126,47 +1260,47 @@ const router = new Router({
component: () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'),
},
{
path: 'hromhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/editview/:editview?',
path: 'hrduties/:hrduty?/pickupview/:pickupview?',
meta: {
caption: 'entities.hromhierarchy.views.editview.title',
caption: 'entities.hrduty.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hromhierarchycats', parameterName: 'hromhierarchycat' },
{ pathName: 'hromhierarchies', parameterName: 'hromhierarchy' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'),
component: () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'),
},
{
path: 'hromhierarchies/:hromhierarchy?/editview/:editview?',
path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?',
meta: {
caption: 'entities.hromhierarchy.views.editview.title',
caption: 'entities.hrpostrel.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hromhierarchies', parameterName: 'hromhierarchy' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'),
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
},
{
path: 'hrduties/:hrduty?/pickupview/:pickupview?',
path: 'hrpostrels/:hrpostrel?/gridview/:gridview?',
meta: {
caption: 'entities.hrduty.views.pickupview.title',
caption: 'entities.hrpostrel.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'),
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
},
{
path: 'hromhierarchycats/:hromhierarchycat?/editview/:editview?',
......@@ -1398,6 +1532,35 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrpost-edit-view/hrpost-edit-view.vue'),
},
{
path: 'hrduties/:hrduty?/hrdutyedus/:hrdutyedu?/v_002/:v_002?',
meta: {
caption: 'entities.hrdutyedu.views.v_002.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'v_002', parameterName: 'v_002' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-edu-v-002/hrduty-edu-v-002.vue'),
},
{
path: 'hrdutyedus/:hrdutyedu?/v_002/:v_002?',
meta: {
caption: 'entities.hrdutyedu.views.v_002.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrdutyedus', parameterName: 'hrdutyedu' },
{ pathName: 'v_002', parameterName: 'v_002' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-edu-v-002/hrduty-edu-v-002.vue'),
},
...indexRoutes,
],
},
......
......@@ -48,6 +48,11 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutycert){
let res:any = Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutycerts/${context.hrdutycert}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrdutycerts/${context.hrdutycert}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutycerts`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutycert){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrduties/${context.hrduty}/hrdutycerts/${context.hrdutycert}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrdutycerts/${context.hrdutycert}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutycert){
let res:any = Http.getInstance().delete(`/hrduties/${context.hrduty}/hrdutycerts/${context.hrdutycert}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrdutycerts/${context.hrdutycert}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutycert){
let res:any = await Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutycerts/${context.hrdutycert}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrdutycerts/${context.hrdutycert}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let res:any = await Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutycerts/getdraft`,isloading);
res.data.hrdutycert = data.hrdutycert;
return res;
}
let res:any = await Http.getInstance().get(`/hrdutycerts/getdraft`,isloading);
res.data.hrdutycert = data.hrdutycert;
......@@ -149,6 +190,13 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutycert){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutycerts/${context.hrdutycert}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrdutycerts/${context.hrdutycert}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutycert){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutycerts/${context.hrdutycert}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrdutycerts/${context.hrdutycert}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRDutyCertServiceBase extends EntityService {
* @memberof HRDutyCertServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutycerts/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrdutycerts/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyedu){
let res:any = Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyedus/${context.hrdutyedu}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrdutyedus/${context.hrdutyedu}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutyedus`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyedu){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrduties/${context.hrduty}/hrdutyedus/${context.hrdutyedu}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrdutyedus/${context.hrdutyedu}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyedu){
let res:any = Http.getInstance().delete(`/hrduties/${context.hrduty}/hrdutyedus/${context.hrdutyedu}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrdutyedus/${context.hrdutyedu}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyedu){
let res:any = await Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyedus/${context.hrdutyedu}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrdutyedus/${context.hrdutyedu}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let res:any = await Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyedus/getdraft`,isloading);
res.data.hrdutyedu = data.hrdutyedu;
return res;
}
let res:any = await Http.getInstance().get(`/hrdutyedus/getdraft`,isloading);
res.data.hrdutyedu = data.hrdutyedu;
......@@ -149,6 +190,13 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyedu){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutyedus/${context.hrdutyedu}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrdutyedus/${context.hrdutyedu}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyedu){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutyedus/${context.hrdutyedu}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrdutyedus/${context.hrdutyedu}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRDutyEduServiceBase extends EntityService {
* @memberof HRDutyEduServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyedus/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrdutyedus/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyskill){
let res:any = Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyskills/${context.hrdutyskill}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrdutyskills/${context.hrdutyskill}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutyskills`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyskill){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrduties/${context.hrduty}/hrdutyskills/${context.hrdutyskill}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrdutyskills/${context.hrdutyskill}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyskill){
let res:any = Http.getInstance().delete(`/hrduties/${context.hrduty}/hrdutyskills/${context.hrdutyskill}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrdutyskills/${context.hrdutyskill}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyskill){
let res:any = await Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyskills/${context.hrdutyskill}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrdutyskills/${context.hrdutyskill}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let res:any = await Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyskills/getdraft`,isloading);
res.data.hrdutyskill = data.hrdutyskill;
return res;
}
let res:any = await Http.getInstance().get(`/hrdutyskills/getdraft`,isloading);
res.data.hrdutyskill = data.hrdutyskill;
......@@ -149,6 +190,13 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyskill){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutyskills/${context.hrdutyskill}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrdutyskills/${context.hrdutyskill}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && context.hrdutyskill){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrduties/${context.hrduty}/hrdutyskills/${context.hrdutyskill}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrdutyskills/${context.hrdutyskill}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRDutySkillServiceBase extends EntityService {
* @memberof HRDutySkillServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrduty && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrduties/${context.hrduty}/hrdutyskills/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrdutyskills/fetchdefault`,tempData,isloading);
return res;
......
......@@ -73,6 +73,9 @@ export default class HRDutyServiceBase extends EntityService {
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hrduties`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrdutycerts',JSON.stringify(res.data.hrdutycerts?res.data.hrdutycerts:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrdutyedus',JSON.stringify(res.data.hrdutyedus?res.data.hrdutyedus:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrdutyskills',JSON.stringify(res.data.hrdutyskills?res.data.hrdutyskills:[]));
return res;
}
......
......@@ -40,6 +40,25 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '069985244f19f8c6f8e74e39ef573e9a',
viewmodule: 'HumanResource',
viewname: 'HRDutyEduV_002',
viewaction: '',
viewdatachange: false,
refviews: [
'06dd873e0c67a6a416c76c9803fd80bd',
],
},
{
viewtag: '06dd873e0c67a6a416c76c9803fd80bd',
viewmodule: 'HumanResource',
viewname: 'HRDutyEduV_001',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '07e98f33b8d972b70860e615aaa10b89',
viewmodule: 'Base',
......@@ -79,16 +98,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'e3878971a0f023a84eb5047806090ef0',
],
},
{
viewtag: '12bdd00f130135bc6c85947eeaff67fb',
viewmodule: 'HumanResource',
viewname: 'HRDutyCertEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'06dd873e0c67a6a416c76c9803fd80bd',
],
},
{
......@@ -175,6 +185,15 @@ export const viewstate: any = {
'045cc74f78937b52db67b8239361d181',
],
},
{
viewtag: '2ee255b61cfa5e9bb8991f1421e807c3',
viewmodule: 'HumanResource',
viewname: 'HRDutyCertV_001',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '3110aca6f6c27996e9874cfb924c569f',
viewmodule: 'Base',
......@@ -185,6 +204,16 @@ export const viewstate: any = {
'90f2bd2f58c482b25a1e1db0f8e4ca26',
],
},
{
viewtag: '3180604a9489c03131e6642e456cd5c0',
viewmodule: 'HumanResource',
viewname: 'HRDutyCertV_002',
viewaction: '',
viewdatachange: false,
refviews: [
'2ee255b61cfa5e9bb8991f1421e807c3',
],
},
{
viewtag: '3274463a5fe4c1bcb99fee2240c044ed',
viewmodule: 'HumanResource',
......@@ -231,7 +260,6 @@ export const viewstate: any = {
'0d8ac739134947cc5f6545d4041024de',
'b9130f18de0b66cd31ecaddb5a841aae',
'41036146909ab3f28ff59b80370514b2',
'188f3997d02da7fc34bac190ccd439e6',
'114f056047eddd92374e982356e59852',
],
},
......@@ -284,6 +312,9 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'3180604a9489c03131e6642e456cd5c0',
'6d4cab857af2830b37515c2015a40e5f',
'069985244f19f8c6f8e74e39ef573e9a',
],
},
{
......@@ -306,15 +337,6 @@ export const viewstate: any = {
'4f567c340cbb4271d44543b278d29d0f',
],
},
{
viewtag: '62468a4082892d924fe855427a8cd0cb',
viewmodule: 'HumanResource',
viewname: 'HRDutyEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '6395cba44e6d6151f19e543b55d88845',
viewmodule: 'HumanResource',
......@@ -355,6 +377,16 @@ export const viewstate: any = {
'04c02737ae62a4f4c014607441ee0401',
],
},
{
viewtag: '6d4cab857af2830b37515c2015a40e5f',
viewmodule: 'HumanResource',
viewname: 'HRDutySkillV_002',
viewaction: '',
viewdatachange: false,
refviews: [
'd2411142d3398651fb50d214bcfc3e3d',
],
},
{
viewtag: '73f27ddcf2a626455aa88f4a052db014',
viewmodule: 'HumanResource',
......@@ -411,7 +443,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'a54a950e4550856191ac9bb32f77b863',
'd2411142d3398651fb50d214bcfc3e3d',
],
},
{
......@@ -454,15 +486,6 @@ export const viewstate: any = {
'ec9d9fe37bbfc3fcb623e2dc34b48dbc',
],
},
{
viewtag: 'a54a950e4550856191ac9bb32f77b863',
viewmodule: 'HumanResource',
viewname: 'HRDutySkillEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'aa2c4d945f9d880dd836ebe74ca9f547',
viewmodule: 'Base',
......@@ -479,7 +502,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'12bdd00f130135bc6c85947eeaff67fb',
'2ee255b61cfa5e9bb8991f1421e807c3',
],
},
{
......@@ -518,8 +541,8 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'62468a4082892d924fe855427a8cd0cb',
'11c1ce686ccb8c2a9bb66a8cde3b93be',
'02571ad88a921ccc490d7b727b4f767d',
'aeb8d0367c4a34ad420ba08085acc8ce',
'532833b3a07947f04a46adcc957a0ca6',
'8959a1a3f5b43dbc52182d6cf04f00a1',
......@@ -615,6 +638,15 @@ export const viewstate: any = {
'7ad274dc8cc9e8f7e464195ca0953dc3',
],
},
{
viewtag: 'd2411142d3398651fb50d214bcfc3e3d',
viewmodule: 'HumanResource',
viewname: 'HRDutySkillV_001',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'd32b549b3c49b790b092eca97d1de2c1',
viewmodule: 'Base',
......@@ -664,15 +696,6 @@ export const viewstate: any = {
'26838780ace211d1714a2887e9039888',
],
},
{
viewtag: 'e3878971a0f023a84eb5047806090ef0',
viewmodule: 'HumanResource',
viewname: 'HRDutyEduEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'e50ad3e1883bafa2d6f264d44ca8ff89',
viewmodule: 'Base',
......
......@@ -153,17 +153,28 @@ export default class HRDutyUIServiceBase extends UIService {
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'editview', parameterName: 'editview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
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);
}
return null;
return result.datas;
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'hrduty-v-001',
height: 0,
width: 600,
title: actionContext.$t('entities.hrduty.views.v_001.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
......
......@@ -29,8 +29,6 @@ export class PIMBase extends Vue {
this.click_9(item); break;
case '_5':
this.click_5(item); break;
case '_7':
this.click_7(item); break;
default:
judge = false;
console.warn('未指定应用功能');
......@@ -202,29 +200,6 @@ export class PIMBase extends Vue {
})
}
/**
* 组织层次结构
*
* @param {*} [item={}]
* @memberof PIM
*/
public click_7(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'hromhierarchies', parameterName: 'hromhierarchy' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 绘制内容
*
......
......@@ -320,27 +320,6 @@ export default class PIMModel {
viewname: 'hrduty-grid-view',
resourcetag: '',
}
,
{
id: 'ED02F38F-5988-4458-95BB-75F91E922110',
name: 'menuitem8',
text: '测试',
type: 'MENUITEM',
counterid: '',
tooltip: '测试',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '_7',
appfuncyype: 'APPVIEW',
viewname: 'hromhierarchy-grid-view',
resourcetag: '',
}
,
],
}
......@@ -518,18 +497,6 @@ export default class PIMModel {
{ pathName: 'gridview', parameterName: 'gridview' },
],
},
{
appfunctag: '_7',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'hromhierarchygridview',
deResParameters: [],
routepath: '/pim/:pim?/hromhierarchies/:hromhierarchy?/gridview/:gridview?',
parameters: [
{ pathName: 'hromhierarchies', parameterName: 'hromhierarchy' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
},
];
/**
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import HRDutyService from '@/service/hrduty/hrduty-service';
import IF_001Service from './if-001-form-service';
import HRDutyUIService from '@/uiservice/hrduty/hrduty-ui-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {IF_001EditFormBase}
*/
export class IF_001EditFormBase extends EditFormControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected controlType: string = 'FORM';
/**
* 建构部件服务对象
*
* @type {IF_001Service}
* @memberof IF_001EditFormBase
*/
public service: IF_001Service = new IF_001Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HRDutyService}
* @memberof IF_001EditFormBase
*/
public appEntityService: HRDutyService = new HRDutyService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected appDeName: string = 'hrduty';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected appDeLogicName: string = '职务';
/**
* 界面UI服务对象
*
* @type {HRDutyUIService}
* @memberof IF_001EditFormBase
*/
public appUIService:HRDutyUIService = new HRDutyUIService(this.$store);
/**
* 关系界面数量
*
* @protected
* @type {number}
* @memberof IF_001EditFormBase
*/
protected drCount: number = 3;
/**
* 表单数据对象
*
* @type {*}
* @memberof IF_001EditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
hrdutyname: null,
memo: null,
hrdutyid: null,
hrduty:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof IF_001EditFormBase
*/
public rules: any = {
}
/**
* 属性值规则
*
* @type {*}
* @memberof IF_001Base
*/
public deRules:any = {
};
/**
* 详情模型集合
*
* @type {*}
* @memberof IF_001EditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '职务信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hrduty.if_001_form', extractMode: 'ITEM', details: [] } }),
druipart1: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
grouppanel1: new FormGroupPanelModel({ caption: '技能', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hrduty.if_001_form', extractMode: 'ITEM', details: [] } }),
druipart2: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart2', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
grouppanel2: new FormGroupPanelModel({ caption: '证书', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hrduty.if_001_form', extractMode: 'ITEM', details: [] } }),
druipart3: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart3', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
grouppanel3: new FormGroupPanelModel({ caption: '教育', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hrduty.if_001_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfkey: new FormItemModel({ caption: '职务标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfmajortext: new FormItemModel({ caption: '职务名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hrdutyname: new FormItemModel({ caption: '职务名称', detailType: 'FORMITEM', name: 'hrdutyname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
memo: new FormItemModel({ caption: '备注', detailType: 'FORMITEM', name: 'memo', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hrdutyid: new FormItemModel({ caption: '职务标识', detailType: 'FORMITEM', name: 'hrdutyid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
};
}
\ No newline at end of file
/**
* IF_001 部件模型
*
* @export
* @class IF_001Model
*/
export default class IF_001Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof IF_001Model
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'hrdutyid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'hrdutyname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'hrdutyname',
prop: 'hrdutyname',
dataType: 'TEXT',
},
{
name: 'memo',
prop: 'memo',
dataType: 'LONGTEXT_1000',
},
{
name: 'hrdutyid',
prop: 'hrdutyid',
dataType: 'GUID',
},
{
name: 'hrduty',
prop: 'hrdutyid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import HRDutyService from '@/service/hrduty/hrduty-service';
import IF_001Model from './if-001-form-model';
/**
* IF_001 部件服务对象
*
* @export
* @class IF_001Service
*/
export default class IF_001Service extends ControlService {
/**
* 职务服务对象
*
* @type {HRDutyService}
* @memberof IF_001Service
*/
public appEntityService: HRDutyService = new HRDutyService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof IF_001Service
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of IF_001Service.
*
* @param {*} [opts={}]
* @memberof IF_001Service
*/
constructor(opts: any = {}) {
super(opts);
this.model = new IF_001Model();
}
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof IF_001Service
*/
private doItems(promise: Promise<any>, deKeyField: string, deName: string): Promise<any> {
return new Promise((resolve, reject) => {
promise.then((response: any) => {
if (response && response.status === 200) {
const data = response.data;
data.forEach((item:any,index:number) =>{
item[deName] = item[deKeyField];
data[index] = item;
});
resolve(data);
} else {
reject([])
}
}).catch((response: any) => {
reject([])
});
});
}
/**
* 获取跨实体数据集合
*
* @param {string} serviceName 服务名称
* @param {string} interfaceName 接口名称
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any[]>}
* @memberof IF_001Service
*/
@Errorlog
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0;
data.size = data.size ? data.size : 1000;
return Promise.reject([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public wfstart(action: string,context: any = {},data: any = {}, isloading?: boolean,localdata?:any): Promise<any> {
data = this.handleWFData(data);
context = this.handleRequestData(action,context,data).context;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](context,data, isloading,localdata);
} else {
result = this.appEntityService.WFStart(context,data, isloading,localdata);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public wfsubmit(action: string,context: any = {}, data: any = {}, isloading?: boolean,localdata?:any): Promise<any> {
data = this.handleWFData(data,true);
context = this.handleRequestData(action,context,data,true).context;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](context,data, isloading,localdata);
} else {
result = this.appEntityService.WFSubmit(context,data, isloading,localdata);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Create(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public delete(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Remove(Context,Data, isloading);
}
result.then((response) => {
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public update(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Update(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public get(action: string,context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Get(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public loadDraft(action: string,context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
//仿真主键数据
const PrimaryKey = Util.createUUID();
Data.hrdutyid = PrimaryKey;
Data.hrduty = PrimaryKey;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.GetDraft(Context,Data, isloading);
}
result.then((response) => {
response.data.hrdutyid = PrimaryKey;
this.handleResponse(action, response, true);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 前台逻辑
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@Errorlog
public frontLogic(action:string,context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any)=>{
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
return Promise.reject({ status: 500, data: { title: '失败', message: '系统异常' } });
}
result.then((response) => {
this.handleResponse(action, response,true);
resolve(response);
}).catch(response => {
reject(response);
});
})
}
/**
* 处理请求数据
*
* @param action 行为
* @param data 数据
* @memberof IF_001Service
*/
public handleRequestData(action: string,context:any, data: any = {},isMerge:boolean = false){
let mode: any = this.getMode();
if (!mode && mode.getDataItems instanceof Function) {
return data;
}
let formItemItems: any[] = mode.getDataItems();
let requestData:any = {};
if(isMerge && (data && data.viewparams)){
Object.assign(requestData,data.viewparams);
}
formItemItems.forEach((item:any) =>{
if(item && item.dataType && Object.is(item.dataType,'FONTKEY')){
if(item && item.prop){
requestData[item.prop] = context[item.name];
}
}else{
if(item && item.prop){
requestData[item.prop] = data[item.name];
}
}
});
let tempContext:any = JSON.parse(JSON.stringify(context));
if(tempContext && tempContext.srfsessionid){
tempContext.srfsessionkey = tempContext.srfsessionid;
delete tempContext.srfsessionid;
}
return {context:tempContext,data:requestData};
}
/**
* 通过属性名称获取表单项名称
*
* @param name 实体属性名称
* @memberof IF_001Service
*/
public getItemNameByDeName(name:string) :string{
let itemName = name;
let mode: any = this.getMode();
if (!mode && mode.getDataItems instanceof Function) {
return name;
}
let formItemItems: any[] = mode.getDataItems();
formItemItems.forEach((item:any)=>{
if(item.prop === name){
itemName = item.name;
}
});
return itemName.trim();
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-form info-form-mode' ref='form' id='hrduty_if_001' style="">
<input style="display:none;" />
<row >
<i-col class="form-layout-container" v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.group1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrduty.if_001_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="true" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group1" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.hrdutyname.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='hrdutyname' :itemRules="this.rules.hrdutyname" class='' :caption="$t('entities.hrduty.if_001_form.details.hrdutyname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.hrdutyname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='hrdutyname' :value="data.hrdutyname" dataType="TEXT" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.memo.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 18, offset: 0 }" :xl="{ span: 18, offset: 0 }">
<app-form-item name='memo' :itemRules="this.rules.memo" class='' :caption="$t('entities.hrduty.if_001_form.details.memo')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.memo.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='memo' :value="data.memo" dataType="LONGTEXT_1000" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrduty.if_001_form.details.grouppanel1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="true" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel1" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.druipart1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-druipart
:formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='hrduty'
:parentdata='{"srfparentdefname":"HRDUTYID","srfparentdename":"HRDUTY","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDUTYSKILL_HRDUTY_HRDUTYID","SRFDER1NID":"DER1N_HRDUTYSKILL_HRDUTY_HRDUTYID"}'
:parameters="[
{ pathName: 'hrduties', parameterName: 'hrduty' },
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='hrduty'
parentName="HRDuty"
refviewtype='DEGRIDVIEW9'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='hrduty-skill-v-002'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style="overflow: auto;">
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel2" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrduty.if_001_form.details.grouppanel2')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="true" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel2" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.druipart2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-druipart
:formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='hrduty'
:parentdata='{"srfparentdefname":"HRDUTYID","srfparentdename":"HRDUTY","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDUTYCERT_HRDUTY_HRDUTYID","SRFDER1NID":"DER1N_HRDUTYCERT_HRDUTY_HRDUTYID"}'
:parameters="[
{ pathName: 'hrduties', parameterName: 'hrduty' },
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='hrduty'
parentName="HRDuty"
refviewtype='DEGRIDVIEW9'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='hrduty-cert-v-002'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style="overflow: auto;">
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel3" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel3.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrduty.if_001_form.details.grouppanel3')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="true" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel3" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.druipart3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-druipart
:formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='hrduty'
:parentdata='{"srfparentdefname":"HRDUTYID","srfparentdename":"HRDUTY","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDUTYEDU_HRDUTY_HRDUTYID","SRFDER1NID":"DER1N_HRDUTYEDU_HRDUTY_HRDUTYID"}'
:parameters="[
{ pathName: 'hrduties', parameterName: 'hrduty' },
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='hrduty'
parentName="HRDuty"
refviewtype='DEGRIDVIEW9'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='hrduty-edu-v-002'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style="overflow: auto;">
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
<template src="./if-001-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { IF_001EditFormBase } from './if-001-form-base';
/**
* form部件
*
* @export
* @class IF_001EditForm
* @extends {IF_001EditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class IF_001EditForm extends IF_001EditFormBase { }
</script>
......@@ -101,17 +101,9 @@ export class MainGridBase extends GridControlBase {
isEnableRowEdit: false,
},
{
name: 'updateman',
label: '更新人',
langtag: 'entities.hrduty.main_grid.columns.updateman',
show: true,
util: 'PX',
isEnableRowEdit: false,
},
{
name: 'updatedate',
label: '更新时间',
langtag: 'entities.hrduty.main_grid.columns.updatedate',
name: 'memo',
label: '备注',
langtag: 'entities.hrduty.main_grid.columns.memo',
show: true,
util: 'PX',
isEnableRowEdit: false,
......@@ -151,8 +143,7 @@ export class MainGridBase extends GridControlBase {
*/
public hasRowEdit: any = {
'hrdutyname':false,
'updateman':false,
'updatedate':false,
'memo':false,
};
/**
......@@ -178,14 +169,6 @@ export class MainGridBase extends GridControlBase {
*/
public async formatExcelData(filterVal: any, jsonData: any, codelistColumns?: any[]): Promise<any> {
return super.formatExcelData(filterVal, jsonData, [
{
name: 'updateman',
srfkey: 'SysOperator',
codelistType : 'DYNAMIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
]);
}
......
......@@ -27,20 +27,15 @@ export default class MainModel {
}else{
return [
{
name: 'hrdutyname',
prop: 'hrdutyname',
dataType: 'TEXT',
name: 'memo',
prop: 'memo',
dataType: 'LONGTEXT_1000',
},
{
name: 'updateman',
prop: 'updateman',
name: 'hrdutyname',
prop: 'hrdutyname',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srfmajortext',
prop: 'hrdutyname',
......
......@@ -35,29 +35,15 @@
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updateman')">
<el-table-column show-overflow-tooltip :prop="'updateman'" :label="$t('entities.hrduty.main_grid.columns.updateman')" :width="150" :align="'left'" :sortable="'custom'">
<template v-if="getColumnState('memo')">
<el-table-column show-overflow-tooltip :prop="'memo'" :label="$t('entities.hrduty.main_grid.columns.memo')" :width="300" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.hrduty.main_grid.columns.updateman')}}
{{$t('entities.hrduty.main_grid.columns.memo')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.updateman" tag='SysOperator' codelistType='DYNAMIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updatedate')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.hrduty.main_grid.columns.updatedate')" :width="150" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.hrduty.main_grid.columns.updatedate')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD HH:mm:ss" :data="row.updatedate"></app-format-data>
<span>{{row.memo}}</span>
</template>
</el-table-column>
</template>
......
......@@ -37,11 +37,11 @@
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
mvn clean package -Phrapi
cd humanresource-provider/humanresource-provider-hrapi
mvn -Phrapi docker:build
mvn -Phrapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-provider-hrapi.yaml iBizEE --with-registry-auth
mvn clean package -Ppim
cd humanresource-app/humanresource-app-pim
mvn -Ppim docker:build
mvn -Ppim docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-app-pim.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE 8080
EXPOSE 10327
ADD humanresource-app-pim.jar /humanresource-app-pim.jar
......@@ -3,9 +3,25 @@ services:
humanresource-app-pim:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports:
- "8080:8080"
- "10327:10327"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10327
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -145,7 +145,7 @@
{
"appid":"PIM",
"appname":"基础管理",
"appmenu":[{"menuid":"PIM", "menuname":"PIM", "menuitem":[{ "id":"user_menus" , "name":"用户菜单" , "items":[{ "id":"menuitem3" , "name":"设置" }]},{ "id":"top_menus" , "name":"顶部菜单" , "items":[{ "id":"menuitem1" , "name":"-" }]},{ "id":"left_exp" , "name":"左侧菜单" , "items":[{ "id":"menuitem5" , "name":"人员" , "items":[{ "id":"menuitem15" , "name":"员工信息" }]},{ "id":"menuitem2" , "name":"组织" , "items":[{ "id":"menuitem4" , "name":"法人" },{ "id":"menuitem6" , "name":"运营单位" },{ "id":"menuitem7" , "name":"组织层次结构" },{ "id":"menuitem9" , "name":"所有组织" }]},{ "id":"menuitem10" , "name":"职位" , "items":[{ "id":"menuitem11" , "name":"职位" },{ "id":"menuitem12" , "name":"职务" },{ "id":"menuitem8" , "name":"测试" }]}]},{ "id":"bottom_exp" , "name":"底部内容" },{ "id":"footer_left" , "name":"底部左侧" },{ "id":"footer_center" , "name":"底部中间" },{ "id":"footer_right" , "name":"底部右侧" }] }]
"appmenu":[{"menuid":"PIM", "menuname":"PIM", "menuitem":[{ "id":"user_menus" , "name":"用户菜单" , "items":[{ "id":"menuitem3" , "name":"设置" }]},{ "id":"top_menus" , "name":"顶部菜单" , "items":[{ "id":"menuitem1" , "name":"-" }]},{ "id":"left_exp" , "name":"左侧菜单" , "items":[{ "id":"menuitem5" , "name":"人员" , "items":[{ "id":"menuitem15" , "name":"员工信息" }]},{ "id":"menuitem2" , "name":"组织" , "items":[{ "id":"menuitem4" , "name":"法人" },{ "id":"menuitem6" , "name":"运营单位" },{ "id":"menuitem7" , "name":"组织层次结构" },{ "id":"menuitem9" , "name":"所有组织" }]},{ "id":"menuitem10" , "name":"职位" , "items":[{ "id":"menuitem11" , "name":"职位" },{ "id":"menuitem12" , "name":"职务" }]}]},{ "id":"bottom_exp" , "name":"底部内容" },{ "id":"footer_left" , "name":"底部左侧" },{ "id":"footer_center" , "name":"底部中间" },{ "id":"footer_right" , "name":"底部右侧" }] }]
}
]
}
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar
EXPOSE 10317
EXPOSE 8081
ADD humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar
......@@ -3,25 +3,9 @@ services:
humanresource-provider-hrapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
ports:
- "10317:10317"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10317
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册