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

jackwang 部署微服务应用

上级 1347fed7
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrcontracts\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid','hrcontractid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([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.hrcontractid, tempValue.hrcontractid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid','hrcontractid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([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(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((conf
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid','hrcontractid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([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(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((confi
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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(/^\/hrcontracts\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrcontracts\/getdraft$/)).reply((config: any) => {
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid','hrcontractid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([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(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).r
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid','hrcontractid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([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(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrcontracts\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/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(/^\/hrcontracts\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrcontracts\/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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid','hrcontractid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([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.hrcontractid, tempValue.hrcontractid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((con
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: 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> = ['employeeid','hrcontractid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrcontracts\/([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.hrcontractid, tempValue.hrcontractid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrcontracts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrcontract 方法: Get");
......
......@@ -116,6 +116,35 @@ mock.onGet(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid','hrdistributionid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([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.hrdistributionid, tempValue.hrdistributionid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: Select");
......@@ -170,6 +199,33 @@ mock.onPost(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([
console.groupEnd();
return [status, {}];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid','hrdistributionid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([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(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -223,6 +279,33 @@ mock.onPut(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a
console.groupEnd();
return [status, {}];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid','hrdistributionid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([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(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -265,6 +348,8 @@ mock.onPut(new RegExp(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((c
// GetDraft
mock.onGet(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: GetDraft");
......@@ -281,6 +366,23 @@ mock.onGet(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/get
return [status, {}];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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(/^\/hrdistributions\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: GetDraft");
......@@ -323,6 +425,33 @@ mock.onPost(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid','hrdistributionid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([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(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -388,6 +517,33 @@ mock.onPost(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([
console.groupEnd();
return [status, {}];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid','hrdistributionid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([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(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -471,6 +627,51 @@ mock.onGet(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/fet
console.groupEnd();
return [status, items];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/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(/^\/hrdistributions\/fetchdefault$/)).reply((config: any) => {
......@@ -516,22 +717,36 @@ mock.onGet(new RegExp(/^\/hrdistributions\/fetchdefault(\?[\w-./?%&=,]*)*$/)).re
return [status, records ? records : []];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
......@@ -566,6 +781,34 @@ mock.onDelete(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid','hrdistributionid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([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.hrdistributionid, tempValue.hrdistributionid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: Remove");
......@@ -622,6 +865,34 @@ mock.onGet(new RegExp(/^\/hrposts\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: 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> = ['employeeid','hrdistributionid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrdistributions\/([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.hrdistributionid, tempValue.hrdistributionid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrdistribution 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hreducations\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid','hreducationid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([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.hreducationid, tempValue.hreducationid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hreducations\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hreducations\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).repl
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid','hreducationid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([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(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((con
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid','hreducationid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([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(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((conf
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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(/^\/hreducations\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hreducations\/getdraft$/)).reply((config: any) => {
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid','hreducationid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([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(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid','hreducationid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([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(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hreducations\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).repl
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/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(/^\/hreducations\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hreducations\/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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid','hreducationid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([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.hreducationid, tempValue.hreducationid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hreducations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hreducations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((co
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: 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> = ['employeeid','hreducationid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hreducations\/([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.hreducationid, tempValue.hreducationid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hreducations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hreducation 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrpapers\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid','hrpaperid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([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.hrpaperid, tempValue.hrpaperid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((c
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid','hrpaperid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([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(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config:
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid','hrpaperid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([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(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config:
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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(/^\/hrpapers\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrpapers\/getdraft$/)).reply((config: any) => {
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid','hrpaperid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([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(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).repl
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid','hrpaperid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([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(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrpapers\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((c
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/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(/^\/hrpapers\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrpapers\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((co
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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid','hrpaperid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([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.hrpaperid, tempValue.hrpaperid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: 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> = ['employeeid','hrpaperid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpapers\/([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.hrpaperid, tempValue.hrpaperid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrpapers\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpaper 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrpatents\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid','hrpatentid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([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.hrpatentid, tempValue.hrpatentid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid','hrpatentid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([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(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid','hrpatentid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([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(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config:
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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(/^\/hrpatents\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrpatents\/getdraft$/)).reply((config: any) => {
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid','hrpatentid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([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(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).rep
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid','hrpatentid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([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(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrpatents\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/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(/^\/hrpatents\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrpatents\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((c
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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid','hrpatentid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([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.hrpatentid, tempValue.hrpatentid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((confi
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: 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> = ['employeeid','hrpatentid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrpatents\/([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.hrpatentid, tempValue.hrpatentid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrpatents\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrpatent 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrresearches\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid','hrresearchid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([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.hrresearchid, tempValue.hrresearchid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).repl
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid','hrresearchid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([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(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((con
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid','hrresearchid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([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(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((conf
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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(/^\/hrresearches\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrresearches\/getdraft$/)).reply((config: any) => {
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid','hrresearchid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([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(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid','hrresearchid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([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(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrresearches\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).repl
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/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(/^\/hrresearches\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrresearches\/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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid','hrresearchid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([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.hrresearchid, tempValue.hrresearchid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((co
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: 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> = ['employeeid','hrresearchid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrresearches\/([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.hrresearchid, tempValue.hrresearchid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrresearches\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrresearch 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrrewards\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid','hrrewardid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([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.hrrewardid, tempValue.hrrewardid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid','hrrewardid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([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(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid','hrrewardid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([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(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config:
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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(/^\/hrrewards\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrrewards\/getdraft$/)).reply((config: any) => {
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid','hrrewardid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([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(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).rep
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid','hrrewardid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([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(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrrewards\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/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(/^\/hrrewards\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrrewards\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((c
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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid','hrrewardid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([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.hrrewardid, tempValue.hrrewardid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((confi
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: 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> = ['employeeid','hrrewardid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrrewards\/([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.hrrewardid, tempValue.hrrewardid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrrewards\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrreward 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrtechnicaltitles\/batch$/)).reply((config: any) =>
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid','hrtechnicaltitleid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([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.hrtechnicaltitleid, tempValue.hrtechnicaltitleid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})\/select$/))
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid','hrtechnicaltitleid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([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(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid','hrtechnicaltitleid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([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(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply(
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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(/^\/hrtechnicaltitles\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrtechnicaltitles\/getdraft$/)).reply((config: any) =>
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid','hrtechnicaltitleid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([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(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid','hrtechnicaltitleid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([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(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrtechnicaltitles\/?([a-zA-Z0-9\-\;]{0,35})\/save$/))
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/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(/^\/hrtechnicaltitles\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrtechnicaltitles\/fetchdefault(\?[\w-./?%&=,]*)*$/)).
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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid','hrtechnicaltitleid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([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.hrtechnicaltitleid, tempValue.hrtechnicaltitleid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})$/)).repl
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: 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> = ['employeeid','hrtechnicaltitleid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtechnicaltitles\/([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.hrtechnicaltitleid, tempValue.hrtechnicaltitleid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrtechnicaltitles\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtechnicaltitle 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrtrainingrecords\/batch$/)).reply((config: any) =>
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid','hrtrainingrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([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.hrtrainingrecordid, tempValue.hrtrainingrecordid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/))
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid','hrtrainingrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([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(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid','hrtrainingrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([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(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply(
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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(/^\/hrtrainingrecords\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrtrainingrecords\/getdraft$/)).reply((config: any) =>
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid','hrtrainingrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([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(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid','hrtrainingrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([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(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrtrainingrecords\/?([a-zA-Z0-9\-\;]{0,35})\/save$/))
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/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(/^\/hrtrainingrecords\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrtrainingrecords\/fetchdefault(\?[\w-./?%&=,]*)*$/)).
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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid','hrtrainingrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([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.hrtrainingrecordid, tempValue.hrtrainingrecordid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).repl
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: 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> = ['employeeid','hrtrainingrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrtrainingrecords\/([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.hrtrainingrecordid, tempValue.hrtrainingrecordid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrtrainingrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrtrainingrecord 方法: Get");
......
......@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrworkrecords\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid','hrworkrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([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.hrworkrecordid, tempValue.hrworkrecordid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Select
mock.onGet(new RegExp(/^\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: Select");
......@@ -114,6 +143,33 @@ mock.onGet(new RegExp(/^\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).rep
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid','hrworkrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([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(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -140,6 +196,33 @@ mock.onPost(new RegExp(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((co
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid','hrworkrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([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(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
......@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((con
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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(/^\/hrworkrecords\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: GetDraft");
......@@ -194,6 +296,33 @@ mock.onGet(new RegExp(/^\/hrworkrecords\/getdraft$/)).reply((config: any) => {
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid','hrworkrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([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(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
......@@ -232,6 +361,33 @@ mock.onPost(new RegExp(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/))
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid','hrworkrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([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(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
......@@ -270,6 +426,51 @@ mock.onPost(new RegExp(/^\/hrworkrecords\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).rep
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/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(/^\/hrworkrecords\/fetchdefault$/)).reply((config: any) => {
......@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrworkrecords\/fetchdefault(\?[\w-./?%&=,]*)*$/)).repl
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(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid','hrworkrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([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.hrworkrecordid, tempValue.hrworkrecordid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: Remove");
......@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((c
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: 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> = ['employeeid','hrworkrecordid'];
const matchArray:any = new RegExp(/^\/hremployees\/([a-zA-Z0-9\-\;]{1,35})\/hrworkrecords\/([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.hrworkrecordid, tempValue.hrworkrecordid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/hrworkrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:hrworkrecord 方法: Get");
......
......@@ -561,7 +561,12 @@ export class HRContractGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrcontracts', parameterName: 'hrcontract' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRContractGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrcontracts', parameterName: 'hrcontract' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -562,9 +562,9 @@ export class HRDistributionGridViewBase extends GridViewBase {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......@@ -613,9 +613,9 @@ export class HRDistributionGridViewBase extends GridViewBase {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......
......@@ -214,9 +214,9 @@ export class HRDistributionV_001Base extends GridView9Base {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......@@ -253,9 +253,9 @@ export class HRDistributionV_001Base extends GridView9Base {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......
......@@ -561,7 +561,12 @@ export class HREducationGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hreducations', parameterName: 'hreducation' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HREducationGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hreducations', parameterName: 'hreducation' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRResearchGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrresearches', parameterName: 'hrresearch' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRResearchGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrresearches', parameterName: 'hrresearch' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRRewardGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrrewards', parameterName: 'hrreward' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRRewardGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrrewards', parameterName: 'hrreward' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRTechnicalTitleGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtechnicaltitles', parameterName: 'hrtechnicaltitle' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRTechnicalTitleGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtechnicaltitles', parameterName: 'hrtechnicaltitle' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRTrainingRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtrainingrecords', parameterName: 'hrtrainingrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRTrainingRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtrainingrecords', parameterName: 'hrtrainingrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRWorkRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrworkrecords', parameterName: 'hrworkrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRWorkRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrworkrecords', parameterName: 'hrworkrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -43,6 +43,21 @@ const router = new Router({
},
component: () => import('@pages/ungroup/pim/pim.vue'),
children: [
{
path: 'hremployees/:hremployee?/hrrewards/:hrreward?/gridview/:gridview?',
meta: {
caption: 'entities.hrreward.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrrewards', parameterName: 'hrreward' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrreward-grid-view/hrreward-grid-view.vue'),
},
{
path: 'hrrewards/:hrreward?/gridview/:gridview?',
meta: {
......@@ -242,6 +257,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrcontracts/:hrcontract?/gridview/:gridview?',
meta: {
caption: 'entities.hrcontract.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrcontracts', parameterName: 'hrcontract' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrcontract-grid-view/hrcontract-grid-view.vue'),
},
{
path: 'hrcontracts/:hrcontract?/gridview/:gridview?',
meta: {
......@@ -512,6 +542,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'),
},
{
path: 'hremployees/:hremployee?/hrresearches/:hrresearch?/gridview/:gridview?',
meta: {
caption: 'entities.hrresearch.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrresearches', parameterName: 'hrresearch' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrresearch-grid-view/hrresearch-grid-view.vue'),
},
{
path: 'hrresearches/:hrresearch?/gridview/:gridview?',
meta: {
......@@ -709,6 +754,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrpost-rel-edit-view/hrpost-rel-edit-view.vue'),
},
{
path: 'hremployees/:hremployee?/hreducations/:hreducation?/gridview/:gridview?',
meta: {
caption: 'entities.hreducation.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hreducations', parameterName: 'hreducation' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hreducation-grid-view/hreducation-grid-view.vue'),
},
{
path: 'hreducations/:hreducation?/gridview/:gridview?',
meta: {
......@@ -822,6 +882,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrpost-grid-view/hrpost-grid-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrworkrecords/:hrworkrecord?/editview/:editview?',
meta: {
caption: 'entities.hrworkrecord.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrworkrecords', parameterName: 'hrworkrecord' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrwork-record-edit-view/hrwork-record-edit-view.vue'),
},
{
path: 'hrworkrecords/:hrworkrecord?/editview/:editview?',
meta: {
......@@ -865,6 +940,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrdistributions/:hrdistribution?/editview/:editview?',
meta: {
caption: 'entities.hrdistribution.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.vue'),
},
{
path: 'hrdistributions/:hrdistribution?/editview/:editview?',
meta: {
......@@ -966,6 +1056,21 @@ const router = new Router({
},
component: () => import('@pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrtrainingrecords/:hrtrainingrecord?/editview/:editview?',
meta: {
caption: 'entities.hrtrainingrecord.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrtrainingrecords', parameterName: 'hrtrainingrecord' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrtraining-record-edit-view/hrtraining-record-edit-view.vue'),
},
{
path: 'hrtrainingrecords/:hrtrainingrecord?/editview/:editview?',
meta: {
......@@ -1183,6 +1288,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hremployee-tree-exp-view/hremployee-tree-exp-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrcontracts/:hrcontract?/editview/:editview?',
meta: {
caption: 'entities.hrcontract.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrcontracts', parameterName: 'hrcontract' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrcontract-edit-view/hrcontract-edit-view.vue'),
},
{
path: 'hrcontracts/:hrcontract?/editview/:editview?',
meta: {
......@@ -1341,6 +1461,21 @@ const router = new Router({
},
component: () => import('@pages/base/hrorg-address-grid-view/hrorg-address-grid-view.vue'),
},
{
path: 'hremployees/:hremployee?/hreducations/:hreducation?/editview/:editview?',
meta: {
caption: 'entities.hreducation.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hreducations', parameterName: 'hreducation' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hreducation-edit-view/hreducation-edit-view.vue'),
},
{
path: 'hreducations/:hreducation?/editview/:editview?',
meta: {
......@@ -1355,6 +1490,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hreducation-edit-view/hreducation-edit-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrrewards/:hrreward?/editview/:editview?',
meta: {
caption: 'entities.hrreward.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrrewards', parameterName: 'hrreward' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrreward-edit-view/hrreward-edit-view.vue'),
},
{
path: 'hrrewards/:hrreward?/editview/:editview?',
meta: {
......@@ -1412,6 +1562,21 @@ const router = new Router({
},
component: () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrworkrecords/:hrworkrecord?/gridview/:gridview?',
meta: {
caption: 'entities.hrworkrecord.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrworkrecords', parameterName: 'hrworkrecord' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrwork-record-grid-view/hrwork-record-grid-view.vue'),
},
{
path: 'hrworkrecords/:hrworkrecord?/gridview/:gridview?',
meta: {
......@@ -1614,6 +1779,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.vue'),
},
{
path: 'hremployees/:hremployee?/hrdistributions/:hrdistribution?/v_002/:v_002?',
meta: {
caption: 'entities.hrdistribution.views.v_002.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'v_002', parameterName: 'v_002' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.vue'),
},
{
path: 'hrdistributions/:hrdistribution?/v_002/:v_002?',
meta: {
......@@ -1714,6 +1894,21 @@ const router = new Router({
},
component: () => import('@pages/base/hrlegal-tab-exp-view/hrlegal-tab-exp-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrtrainingrecords/:hrtrainingrecord?/gridview/:gridview?',
meta: {
caption: 'entities.hrtrainingrecord.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrtrainingrecords', parameterName: 'hrtrainingrecord' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrtraining-record-grid-view/hrtraining-record-grid-view.vue'),
},
{
path: 'hrtrainingrecords/:hrtrainingrecord?/gridview/:gridview?',
meta: {
......@@ -1742,6 +1937,21 @@ const router = new Router({
},
component: () => import('@pages/base/hroperation-unit-dashboard-view/hroperation-unit-dashboard-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrtechnicaltitles/:hrtechnicaltitle?/gridview/:gridview?',
meta: {
caption: 'entities.hrtechnicaltitle.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrtechnicaltitles', parameterName: 'hrtechnicaltitle' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrtechnical-title-grid-view/hrtechnical-title-grid-view.vue'),
},
{
path: 'hrtechnicaltitles/:hrtechnicaltitle?/gridview/:gridview?',
meta: {
......@@ -1756,6 +1966,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrtechnical-title-grid-view/hrtechnical-title-grid-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrresearches/:hrresearch?/editview/:editview?',
meta: {
caption: 'entities.hrresearch.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrresearches', parameterName: 'hrresearch' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrresearch-edit-view/hrresearch-edit-view.vue'),
},
{
path: 'hrresearches/:hrresearch?/editview/:editview?',
meta: {
......@@ -1944,6 +2169,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrdistributions/:hrdistribution?/gridview/:gridview?',
meta: {
caption: 'entities.hrdistribution.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view.vue'),
},
{
path: 'hrdistributions/:hrdistribution?/gridview/:gridview?',
meta: {
......@@ -2031,6 +2271,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue'),
},
{
path: 'hremployees/:hremployee?/hrdistributions/:hrdistribution?/v_001/:v_001?',
meta: {
caption: 'entities.hrdistribution.views.v_001.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'v_001', parameterName: 'v_001' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue'),
},
{
path: 'hrdistributions/:hrdistribution?/v_001/:v_001?',
meta: {
......@@ -2045,6 +2300,21 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue'),
},
{
path: 'hremployees/:hremployee?/hrtechnicaltitles/:hrtechnicaltitle?/editview/:editview?',
meta: {
caption: 'entities.hrtechnicaltitle.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrtechnicaltitles', parameterName: 'hrtechnicaltitle' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrtechnical-title-edit-view/hrtechnical-title-edit-view.vue'),
},
{
path: 'hrtechnicaltitles/:hrtechnicaltitle?/editview/:editview?',
meta: {
......
......@@ -48,6 +48,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrcontracts/${context.hrcontract}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrcontracts`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrcontracts/${context.hrcontract}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrcontracts/${context.hrcontract}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrcontracts/${context.hrcontract}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/getdraft`,isloading);
res.data.hrcontract = data.hrcontract;
return res;
}
let res:any = await Http.getInstance().get(`/hrcontracts/getdraft`,isloading);
res.data.hrcontract = data.hrcontract;
......@@ -149,6 +190,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrcontracts/${context.hrcontract}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrcontracts/${context.hrcontract}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrcontracts/fetchdefault`,tempData,isloading);
return res;
......
......@@ -53,6 +53,11 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrdistributions/${context.hrdistribution}/select`,isloading);
return res;
......@@ -82,6 +87,20 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrdistributions`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -113,6 +132,13 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrdistributions/${context.hrdistribution}`,data,isloading);
......@@ -133,6 +159,10 @@ export default class HRDistributionServiceBase extends EntityService {
if(context.hrpost && context.hrdistribution){
let res:any = Http.getInstance().delete(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
if(context.hremployee && context.hrdistribution){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrdistributions/${context.hrdistribution}`,isloading);
return res;
......@@ -153,6 +183,11 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrdistributions/${context.hrdistribution}`,isloading);
return res;
......@@ -174,6 +209,12 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/getdraft`,isloading);
res.data.hrdistribution = data.hrdistribution;
return res;
}
let res:any = await Http.getInstance().get(`/hrdistributions/getdraft`,isloading);
res.data.hrdistribution = data.hrdistribution;
......@@ -197,6 +238,13 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrdistributions/${context.hrdistribution}/checkkey`,data,isloading);
return res;
}
......@@ -218,6 +266,13 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrdistributions/${context.hrdistribution}/save`,data,isloading);
......@@ -240,6 +295,11 @@ export default class HRDistributionServiceBase extends EntityService {
let res:any = Http.getInstance().get(`/hrposts/${context.hrpost}/hrdistributions/fetchdefault`,tempData,isloading);
return res;
}
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrdistributions/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hreducations/${context.hreducation}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hreducations`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hreducations/${context.hreducation}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hreducations/${context.hreducation}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hreducations/${context.hreducation}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/getdraft`,isloading);
res.data.hreducation = data.hreducation;
return res;
}
let res:any = await Http.getInstance().get(`/hreducations/getdraft`,isloading);
res.data.hreducation = data.hreducation;
......@@ -149,6 +190,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hreducations/${context.hreducation}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hreducations/${context.hreducation}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hreducations/fetchdefault`,tempData,isloading);
return res;
......
......@@ -75,8 +75,18 @@ export default class HREmployeeServiceBase extends EntityService {
let res:any = await Http.getInstance().post(`/hremployees`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrarchives',JSON.stringify(res.data.hrarchives?res.data.hrarchives:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrcertificates',JSON.stringify(res.data.hrcertificates?res.data.hrcertificates:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrcontracts',JSON.stringify(res.data.hrcontracts?res.data.hrcontracts:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrdistributions',JSON.stringify(res.data.hrdistributions?res.data.hrdistributions:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hreducations',JSON.stringify(res.data.hreducations?res.data.hreducations:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrfamilies',JSON.stringify(res.data.hrfamilies?res.data.hrfamilies:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrlanguageabilities',JSON.stringify(res.data.hrlanguageabilities?res.data.hrlanguageabilities:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrpapers',JSON.stringify(res.data.hrpapers?res.data.hrpapers:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrpatents',JSON.stringify(res.data.hrpatents?res.data.hrpatents:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrresearches',JSON.stringify(res.data.hrresearches?res.data.hrresearches:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrrewards',JSON.stringify(res.data.hrrewards?res.data.hrrewards:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrtechnicaltitles',JSON.stringify(res.data.hrtechnicaltitles?res.data.hrtechnicaltitles:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrtrainingrecords',JSON.stringify(res.data.hrtrainingrecords?res.data.hrtrainingrecords:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrworkrecords',JSON.stringify(res.data.hrworkrecords?res.data.hrworkrecords:[]));
return res;
}
......
......@@ -48,6 +48,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrpapers/${context.hrpaper}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrpapers`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrpapers/${context.hrpaper}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrpapers/${context.hrpaper}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrpapers/${context.hrpaper}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/getdraft`,isloading);
res.data.hrpaper = data.hrpaper;
return res;
}
let res:any = await Http.getInstance().get(`/hrpapers/getdraft`,isloading);
res.data.hrpaper = data.hrpaper;
......@@ -149,6 +190,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrpapers/${context.hrpaper}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrpapers/${context.hrpaper}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrpapers/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrpatents/${context.hrpatent}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrpatents`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrpatents/${context.hrpatent}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrpatents/${context.hrpatent}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrpatents/${context.hrpatent}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/getdraft`,isloading);
res.data.hrpatent = data.hrpatent;
return res;
}
let res:any = await Http.getInstance().get(`/hrpatents/getdraft`,isloading);
res.data.hrpatent = data.hrpatent;
......@@ -149,6 +190,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrpatents/${context.hrpatent}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrpatents/${context.hrpatent}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrpatents/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrresearches/${context.hrresearch}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrresearches`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrresearches/${context.hrresearch}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrresearches/${context.hrresearch}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrresearches/${context.hrresearch}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/getdraft`,isloading);
res.data.hrresearch = data.hrresearch;
return res;
}
let res:any = await Http.getInstance().get(`/hrresearches/getdraft`,isloading);
res.data.hrresearch = data.hrresearch;
......@@ -149,6 +190,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrresearches/${context.hrresearch}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrresearches/${context.hrresearch}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrresearches/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrrewards/${context.hrreward}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrrewards`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrrewards/${context.hrreward}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrrewards/${context.hrreward}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrrewards/${context.hrreward}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/getdraft`,isloading);
res.data.hrreward = data.hrreward;
return res;
}
let res:any = await Http.getInstance().get(`/hrrewards/getdraft`,isloading);
res.data.hrreward = data.hrreward;
......@@ -149,6 +190,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrrewards/${context.hrreward}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrrewards/${context.hrreward}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrrewards/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrtechnicaltitles/${context.hrtechnicaltitle}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrtechnicaltitles`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrtechnicaltitles/${context.hrtechnicaltitle}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/getdraft`,isloading);
res.data.hrtechnicaltitle = data.hrtechnicaltitle;
return res;
}
let res:any = await Http.getInstance().get(`/hrtechnicaltitles/getdraft`,isloading);
res.data.hrtechnicaltitle = data.hrtechnicaltitle;
......@@ -149,6 +190,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrtechnicaltitles/${context.hrtechnicaltitle}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrtechnicaltitles/${context.hrtechnicaltitle}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrtechnicaltitles/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtrainingrecord){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrtrainingrecords/${context.hrtrainingrecord}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrtrainingrecords/${context.hrtrainingrecord}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrtrainingrecords`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtrainingrecord){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrtrainingrecords/${context.hrtrainingrecord}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrtrainingrecords/${context.hrtrainingrecord}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtrainingrecord){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrtrainingrecords/${context.hrtrainingrecord}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrtrainingrecords/${context.hrtrainingrecord}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtrainingrecord){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrtrainingrecords/${context.hrtrainingrecord}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrtrainingrecords/${context.hrtrainingrecord}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrtrainingrecords/getdraft`,isloading);
res.data.hrtrainingrecord = data.hrtrainingrecord;
return res;
}
let res:any = await Http.getInstance().get(`/hrtrainingrecords/getdraft`,isloading);
res.data.hrtrainingrecord = data.hrtrainingrecord;
......@@ -149,6 +190,13 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtrainingrecord){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrtrainingrecords/${context.hrtrainingrecord}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrtrainingrecords/${context.hrtrainingrecord}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtrainingrecord){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrtrainingrecords/${context.hrtrainingrecord}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrtrainingrecords/${context.hrtrainingrecord}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRTrainingRecordServiceBase extends EntityService {
* @memberof HRTrainingRecordServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrtrainingrecords/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrtrainingrecords/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrworkrecord){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrworkrecords/${context.hrworkrecord}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrworkrecords/${context.hrworkrecord}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && 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(`/hremployees/${context.hremployee}/hrworkrecords`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrworkrecord){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrworkrecords/${context.hrworkrecord}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrworkrecords/${context.hrworkrecord}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrworkrecord){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrworkrecords/${context.hrworkrecord}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrworkrecords/${context.hrworkrecord}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrworkrecord){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrworkrecords/${context.hrworkrecord}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrworkrecords/${context.hrworkrecord}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrworkrecords/getdraft`,isloading);
res.data.hrworkrecord = data.hrworkrecord;
return res;
}
let res:any = await Http.getInstance().get(`/hrworkrecords/getdraft`,isloading);
res.data.hrworkrecord = data.hrworkrecord;
......@@ -149,6 +190,13 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrworkrecord){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrworkrecords/${context.hrworkrecord}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrworkrecords/${context.hrworkrecord}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrworkrecord){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrworkrecords/${context.hrworkrecord}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrworkrecords/${context.hrworkrecord}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRWorkRecordServiceBase extends EntityService {
* @memberof HRWorkRecordServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrworkrecords/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrworkrecords/fetchdefault`,tempData,isloading);
return res;
......
......@@ -199,7 +199,7 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
if (Object.is(expmode, 'TR09')) {
return {
viewname: 'hrtechnical-title-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRTECHNICALTITLE_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrtechnicaltitle'
};
}
......@@ -213,77 +213,77 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
if (Object.is(expmode, 'TR10')) {
return {
viewname: 'hrcontract-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRCONTRACT_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrcontract'
};
}
if (Object.is(expmode, 'TR12')) {
return {
viewname: 'hrreward-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRREWARD_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrreward'
};
}
if (Object.is(expmode, 'TR07')) {
return {
viewname: 'hrarchives-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRARCHIVES_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrarchives'
};
}
if (Object.is(expmode, 'TR11')) {
return {
viewname: 'hrcertificate-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRCERTIFICATE_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrcertificate'
};
}
if (Object.is(expmode, 'TR06')) {
return {
viewname: 'hrwork-record-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRWORKRECORD_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrworkrecord'
};
}
if (Object.is(expmode, 'TR14')) {
return {
viewname: 'hrresearch-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRRESEARCH_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrresearch'
};
}
if (Object.is(expmode, 'TR05')) {
return {
viewname: 'hrfamily-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRFAMILY_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrfamily'
};
}
if (Object.is(expmode, 'TR13')) {
return {
viewname: 'hrtraining-record-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRTRAININGRECORD_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrtrainingrecord'
};
}
if (Object.is(expmode, 'TR04')) {
return {
viewname: 'hrlanguage-ability-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRLANGUAGEABILITY_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrlanguageability'
};
}
if (Object.is(expmode, 'TR03')) {
return {
viewname: 'hreducation-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HREDUCATION_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hreducation'
};
}
if (Object.is(expmode, 'TR01')) {
return {
viewname: 'hrdistribution-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRDISTRIBUTION_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrdistribution'
};
}
......
......@@ -138,7 +138,7 @@ tag='YesNo' codelistType='STATIC' :data="data" :context="context" :viewparams="v
paramItem='hrpost'
:parentdata='{"srfparentdefname":"HRPOSTID","srfparentdename":"HRPOST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID","SRFDER1NID":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID"}'
:parameters="[
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]"
:context="context"
:viewparams="viewparams"
......
......@@ -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:
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册