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

jackwang 部署微服务应用

上级 437fe570
......@@ -39,7 +39,13 @@ export class AuthServiceRegister {
* @memberof AuthServiceRegister
*/
protected init(): void {
this.allAuthService.set('hremployee', () => import('@/authservice/hremployee/hremployee-auth-service'));
this.allAuthService.set('hroperationunit', () => import('@/authservice/hroperation-unit/hroperation-unit-auth-service'));
this.allAuthService.set('hromhierarchypurposeref', () => import('@/authservice/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref-auth-service'));
this.allAuthService.set('hromhierarchycat', () => import('@/authservice/hromhierarchy-cat/hromhierarchy-cat-auth-service'));
this.allAuthService.set('hremployee', () => import('@/authservice/hremployee/hremployee-auth-service'));
this.allAuthService.set('hromhierarchypurpose', () => import('@/authservice/hromhierarchypurpose/hromhierarchypurpose-auth-service'));
this.allAuthService.set('hromhierarchy', () => import('@/authservice/hromhierarchy/hromhierarchy-auth-service'));
this.allAuthService.set('hrorganization', () => import('@/authservice/hrorganization/hrorganization-auth-service'));
}
/**
......
import AuthService from '../auth-service';
/**
* 结构层次类别权限服务对象基类
*
* @export
* @class HROMHierarchyCatAuthServiceBase
* @extends {AuthService}
*/
export default class HROMHierarchyCatAuthServiceBase extends AuthService {
/**
* Creates an instance of HROMHierarchyCatAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyCatAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HROMHierarchyCatAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HROMHierarchyCatAuthServiceBase from './hromhierarchy-cat-auth-service-base';
/**
* 结构层次类别权限服务对象
*
* @export
* @class HROMHierarchyCatAuthService
* @extends {HROMHierarchyCatAuthServiceBase}
*/
export default class HROMHierarchyCatAuthService extends HROMHierarchyCatAuthServiceBase {
/**
* Creates an instance of HROMHierarchyCatAuthService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyCatAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 组织层次结构分配权限服务对象基类
*
* @export
* @class HROMHierarchyPurposeRefAuthServiceBase
* @extends {AuthService}
*/
export default class HROMHierarchyPurposeRefAuthServiceBase extends AuthService {
/**
* Creates an instance of HROMHierarchyPurposeRefAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyPurposeRefAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HROMHierarchyPurposeRefAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HROMHierarchyPurposeRefAuthServiceBase from './hromhierarchy-purpose-ref-auth-service-base';
/**
* 组织层次结构分配权限服务对象
*
* @export
* @class HROMHierarchyPurposeRefAuthService
* @extends {HROMHierarchyPurposeRefAuthServiceBase}
*/
export default class HROMHierarchyPurposeRefAuthService extends HROMHierarchyPurposeRefAuthServiceBase {
/**
* Creates an instance of HROMHierarchyPurposeRefAuthService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyPurposeRefAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 组织层次结构权限服务对象基类
*
* @export
* @class HROMHierarchyAuthServiceBase
* @extends {AuthService}
*/
export default class HROMHierarchyAuthServiceBase extends AuthService {
/**
* Creates an instance of HROMHierarchyAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HROMHierarchyAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HROMHierarchyAuthServiceBase from './hromhierarchy-auth-service-base';
/**
* 组织层次结构权限服务对象
*
* @export
* @class HROMHierarchyAuthService
* @extends {HROMHierarchyAuthServiceBase}
*/
export default class HROMHierarchyAuthService extends HROMHierarchyAuthServiceBase {
/**
* Creates an instance of HROMHierarchyAuthService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 组织层次结构应用权限服务对象基类
*
* @export
* @class HROMHIERARCHYPURPOSEAuthServiceBase
* @extends {AuthService}
*/
export default class HROMHIERARCHYPURPOSEAuthServiceBase extends AuthService {
/**
* Creates an instance of HROMHIERARCHYPURPOSEAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHIERARCHYPURPOSEAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HROMHIERARCHYPURPOSEAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HROMHIERARCHYPURPOSEAuthServiceBase from './hromhierarchypurpose-auth-service-base';
/**
* 组织层次结构应用权限服务对象
*
* @export
* @class HROMHIERARCHYPURPOSEAuthService
* @extends {HROMHIERARCHYPURPOSEAuthServiceBase}
*/
export default class HROMHIERARCHYPURPOSEAuthService extends HROMHIERARCHYPURPOSEAuthServiceBase {
/**
* Creates an instance of HROMHIERARCHYPURPOSEAuthService.
*
* @param {*} [opts={}]
* @memberof HROMHIERARCHYPURPOSEAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 运营单位权限服务对象基类
*
* @export
* @class HROperationUnitAuthServiceBase
* @extends {AuthService}
*/
export default class HROperationUnitAuthServiceBase extends AuthService {
/**
* Creates an instance of HROperationUnitAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HROperationUnitAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HROperationUnitAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HROperationUnitAuthServiceBase from './hroperation-unit-auth-service-base';
/**
* 运营单位权限服务对象
*
* @export
* @class HROperationUnitAuthService
* @extends {HROperationUnitAuthServiceBase}
*/
export default class HROperationUnitAuthService extends HROperationUnitAuthServiceBase {
/**
* Creates an instance of HROperationUnitAuthService.
*
* @param {*} [opts={}]
* @memberof HROperationUnitAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 组织权限服务对象基类
*
* @export
* @class HROrganizationAuthServiceBase
* @extends {AuthService}
*/
export default class HROrganizationAuthServiceBase extends AuthService {
/**
* Creates an instance of HROrganizationAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HROrganizationAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HROrganizationAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HROrganizationAuthServiceBase from './hrorganization-auth-service-base';
/**
* 组织权限服务对象
*
* @export
* @class HROrganizationAuthService
* @extends {HROrganizationAuthServiceBase}
*/
export default class HROrganizationAuthService extends HROrganizationAuthServiceBase {
/**
* Creates an instance of HROrganizationAuthService.
*
* @param {*} [opts={}]
* @memberof HROrganizationAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
/**
* 结构层次类别
*
* @export
* @interface HROMHierarchyCat
*/
export interface HROMHierarchyCat {
/**
* 结构层次类别标识
*
* @returns {*}
* @memberof HROMHierarchyCat
*/
omhierarchycatid?: any;
/**
* 结构层次类别名称
*
* @returns {*}
* @memberof HROMHierarchyCat
*/
omhierarchycatname?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HROMHierarchyCat
*/
createman?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HROMHierarchyCat
*/
createdate?: any;
/**
* 更新人
*
* @returns {*}
* @memberof HROMHierarchyCat
*/
updateman?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof HROMHierarchyCat
*/
updatedate?: any;
}
\ No newline at end of file
/**
* 组织层次结构分配
*
* @export
* @interface HROMHierarchyPurposeRef
*/
export interface HROMHierarchyPurposeRef {
/**
* 更新人
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
updateman?: any;
/**
* 组织层次结构分配名称
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
omhierarchypurposerefname?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
createdate?: any;
/**
* 组织层次结构分配标识
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
omhierarchypurposerefid?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
updatedate?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
createman?: any;
/**
* 组织层次机构目的标识
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
omhierarchypurposeid?: any;
/**
* 结构层次类别标识
*
* @returns {*}
* @memberof HROMHierarchyPurposeRef
*/
omhierarchycatid?: any;
}
\ No newline at end of file
/**
* 组织层次结构
*
* @export
* @interface HROMHierarchy
*/
export interface HROMHierarchy {
/**
* 建立时间
*
* @returns {*}
* @memberof HROMHierarchy
*/
createdate?: any;
/**
* 组织层次结构标识
*
* @returns {*}
* @memberof HROMHierarchy
*/
omhierarchyid?: any;
/**
* 组织层次结构名称
*
* @returns {*}
* @memberof HROMHierarchy
*/
omhierarchyname?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof HROMHierarchy
*/
updatedate?: any;
/**
* 更新人
*
* @returns {*}
* @memberof HROMHierarchy
*/
updateman?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HROMHierarchy
*/
createman?: any;
/**
* 组织
*
* @returns {*}
* @memberof HROMHierarchy
*/
organizationid?: any;
/**
* 父组织层次结构标识
*
* @returns {*}
* @memberof HROMHierarchy
*/
pomhierarchyid?: any;
}
\ No newline at end of file
/**
* 组织层次机构目的
*
* @export
* @interface HROMHIERARCHYPURPOSE
*/
export interface HROMHIERARCHYPURPOSE {
/**
* 更新时间
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
*/
updatedate?: any;
/**
* 组织层次机构目的名称
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
*/
omhierarchypurposename?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
*/
createman?: any;
/**
* 组织层次机构目的标识
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
*/
omhierarchypurposeid?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
*/
createdate?: any;
/**
* 更新人
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
*/
updateman?: any;
}
\ No newline at end of file
/**
* 运营单位
*
* @export
* @interface HROperationUnit
*/
export interface HROperationUnit {
/**
* 更新时间
*
* @returns {*}
* @memberof HROperationUnit
*/
updatedate?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HROperationUnit
*/
createman?: any;
/**
* 更新人
*
* @returns {*}
* @memberof HROperationUnit
*/
updateman?: any;
/**
* 运营单位标识
*
* @returns {*}
* @memberof HROperationUnit
*/
operationunitid?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HROperationUnit
*/
createdate?: any;
/**
* 运营单位名称
*
* @returns {*}
* @memberof HROperationUnit
*/
operationunitname?: any;
/**
* 组织类型
*
* @returns {*}
* @memberof HROperationUnit
*/
organizationtype?: any;
}
\ No newline at end of file
/**
* 组织
*
* @export
* @interface HROrganization
*/
export interface HROrganization {
/**
* 更新人
*
* @returns {*}
* @memberof HROrganization
*/
updateman?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof HROrganization
*/
updatedate?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HROrganization
*/
createman?: any;
/**
* 组织名称
*
* @returns {*}
* @memberof HROrganization
*/
organizationname?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HROrganization
*/
createdate?: any;
/**
* 组织
*
* @returns {*}
* @memberof HROrganization
*/
organizationid?: any;
/**
* 组织类型
*
* @returns {*}
* @memberof HROrganization
*/
organizationtype?: any;
}
\ No newline at end of file
import hroperationunit_en_US from '@locale/lanres/entities/hroperation-unit/hroperation-unit_en_US';
import hromhierarchypurposeref_en_US from '@locale/lanres/entities/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref_en_US';
import hromhierarchycat_en_US from '@locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_en_US';
import hremployee_en_US from '@locale/lanres/entities/hremployee/hremployee_en_US';
import hromhierarchypurpose_en_US from '@locale/lanres/entities/hromhierarchypurpose/hromhierarchypurpose_en_US';
import hromhierarchy_en_US from '@locale/lanres/entities/hromhierarchy/hromhierarchy_en_US';
import hrorganization_en_US from '@locale/lanres/entities/hrorganization/hrorganization_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
import codelist_en_US from '@locale/lanres/codelist/codelist_en_US';
import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
......@@ -123,8 +129,21 @@ export default {
user_menus: "用户菜单",
menuitem3: "设置",
top_menus: "顶部菜单",
menuitem1: "菜单项",
left_exp: "左侧菜单",
menuitem5: "人员",
menuitem15: "员工信息",
menuitem2: "组织",
menuitem4: "法人",
menuitem6: "运营单位",
menuitem7: "组织层次结构",
menuitem8: "组织层次结构应用",
menuitem9: "内部组织",
menuitem10: "职位",
menuitem11: "有效职位",
menuitem12: "空缺职位",
menuitem13: "所有职位",
menuitem14: "无效职位",
bottom_exp: "底部内容",
footer_left: "底部左侧",
footer_center: "底部中间",
......@@ -227,7 +246,13 @@ export default {
}
},
entities: {
hroperationunit: hroperationunit_en_US,
hromhierarchypurposeref: hromhierarchypurposeref_en_US,
hromhierarchycat: hromhierarchycat_en_US,
hremployee: hremployee_en_US,
hromhierarchypurpose: hromhierarchypurpose_en_US,
hromhierarchy: hromhierarchy_en_US,
hrorganization: hrorganization_en_US,
},
components: components_en_US,
codelist: codelist_en_US,
......
import hroperationunit_zh_CN from '@locale/lanres/entities/hroperation-unit/hroperation-unit_zh_CN';
import hromhierarchypurposeref_zh_CN from '@locale/lanres/entities/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref_zh_CN';
import hromhierarchycat_zh_CN from '@locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_zh_CN';
import hremployee_zh_CN from '@locale/lanres/entities/hremployee/hremployee_zh_CN';
import hromhierarchypurpose_zh_CN from '@locale/lanres/entities/hromhierarchypurpose/hromhierarchypurpose_zh_CN';
import hromhierarchy_zh_CN from '@locale/lanres/entities/hromhierarchy/hromhierarchy_zh_CN';
import hrorganization_zh_CN from '@locale/lanres/entities/hrorganization/hrorganization_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
......@@ -123,8 +129,21 @@ export default {
user_menus: "用户菜单",
menuitem3: "设置",
top_menus: "顶部菜单",
menuitem1: "菜单项",
left_exp: "左侧菜单",
menuitem5: "人员",
menuitem15: "员工信息",
menuitem2: "组织",
menuitem4: "法人",
menuitem6: "运营单位",
menuitem7: "组织层次结构",
menuitem8: "组织层次结构应用",
menuitem9: "内部组织",
menuitem10: "职位",
menuitem11: "有效职位",
menuitem12: "空缺职位",
menuitem13: "所有职位",
menuitem14: "无效职位",
bottom_exp: "底部内容",
footer_left: "底部左侧",
footer_center: "底部中间",
......@@ -226,7 +245,13 @@ export default {
}
},
entities: {
hroperationunit: hroperationunit_zh_CN,
hromhierarchypurposeref: hromhierarchypurposeref_zh_CN,
hromhierarchycat: hromhierarchycat_zh_CN,
hremployee: hremployee_zh_CN,
hromhierarchypurpose: hromhierarchypurpose_zh_CN,
hromhierarchy: hromhierarchy_zh_CN,
hrorganization: hrorganization_zh_CN,
},
components: components_zh_CN,
codelist: codelist_zh_CN,
......
export default {
fields: {
omhierarchycatid: "结构层次类别标识",
omhierarchycatname: "结构层次类别名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
};
\ No newline at end of file
export default {
fields: {
omhierarchycatid: "结构层次类别标识",
omhierarchycatname: "结构层次类别名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
},
};
\ No newline at end of file
export default {
fields: {
updateman: "更新人",
omhierarchypurposerefname: "组织层次结构分配名称",
createdate: "建立时间",
omhierarchypurposerefid: "组织层次结构分配标识",
updatedate: "更新时间",
createman: "建立人",
omhierarchypurposeid: "组织层次机构目的标识",
omhierarchycatid: "结构层次类别标识",
},
};
\ No newline at end of file
export default {
fields: {
updateman: "更新人",
omhierarchypurposerefname: "组织层次结构分配名称",
createdate: "建立时间",
omhierarchypurposerefid: "组织层次结构分配标识",
updatedate: "更新时间",
createman: "建立人",
omhierarchypurposeid: "组织层次机构目的标识",
omhierarchycatid: "结构层次类别标识",
},
};
\ No newline at end of file
export default {
fields: {
createdate: "建立时间",
omhierarchyid: "组织层次结构标识",
omhierarchyname: "组织层次结构名称",
updatedate: "更新时间",
updateman: "更新人",
createman: "建立人",
organizationid: "组织",
pomhierarchyid: "父组织层次结构标识",
},
};
\ No newline at end of file
export default {
fields: {
createdate: "建立时间",
omhierarchyid: "组织层次结构标识",
omhierarchyname: "组织层次结构名称",
updatedate: "更新时间",
updateman: "更新人",
createman: "建立人",
organizationid: "组织",
pomhierarchyid: "父组织层次结构标识",
},
};
\ No newline at end of file
export default {
fields: {
updatedate: "更新时间",
omhierarchypurposename: "组织层次机构目的名称",
createman: "建立人",
omhierarchypurposeid: "组织层次机构目的标识",
createdate: "建立时间",
updateman: "更新人",
},
};
\ No newline at end of file
export default {
fields: {
updatedate: "更新时间",
omhierarchypurposename: "组织层次机构目的名称",
createman: "建立人",
omhierarchypurposeid: "组织层次机构目的标识",
createdate: "建立时间",
updateman: "更新人",
},
};
\ No newline at end of file
export default {
fields: {
updatedate: "更新时间",
createman: "建立人",
updateman: "更新人",
operationunitid: "运营单位标识",
createdate: "建立时间",
operationunitname: "运营单位名称",
organizationtype: "组织类型",
},
};
\ No newline at end of file
export default {
fields: {
updatedate: "更新时间",
createman: "建立人",
updateman: "更新人",
operationunitid: "运营单位标识",
createdate: "建立时间",
operationunitname: "运营单位名称",
organizationtype: "组织类型",
},
};
\ No newline at end of file
export default {
fields: {
updateman: "更新人",
updatedate: "更新时间",
createman: "建立人",
organizationname: "组织名称",
createdate: "建立时间",
organizationid: "组织",
organizationtype: "组织类型",
},
};
\ No newline at end of file
export default {
fields: {
updateman: "更新人",
updatedate: "更新时间",
createman: "建立人",
organizationname: "组织名称",
createdate: "建立时间",
organizationid: "组织",
organizationtype: "组织类型",
},
};
\ No newline at end of file
......@@ -65,6 +65,26 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: 'A8D78DD5-209F-4ADF-8B05-72F646DFCECD',
name: 'menuitem1',
text: '菜单项',
type: 'MENUITEM',
counterid: '',
tooltip: '菜单项',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
],
},
{
id: 'dfc129d27761fa5213b01cda5ee15778',
......@@ -83,6 +103,24 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '1F73FB8E-0E2A-4B7A-B800-004B01AB2301',
name: 'menuitem5',
text: '人员',
type: 'MENUITEM',
counterid: '',
tooltip: '人员',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-users',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '4b24bf3dc681c591cb1663ce8853cc32',
......@@ -103,6 +141,210 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
resourcetag: '',
},
],
},
{
id: 'B25E7335-DEBD-478A-81FD-1BB47B68DFA4',
name: 'menuitem2',
text: '组织',
type: 'MENUITEM',
counterid: '',
tooltip: '组织',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-bank',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '98B816C8-2AA6-4BB4-9CC5-C2B72A61C24B',
name: 'menuitem4',
text: '法人',
type: 'MENUITEM',
counterid: '',
tooltip: '法人',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: '7950AF8B-457E-4B66-9E43-48FA95ED5A0C',
name: 'menuitem6',
text: '运营单位',
type: 'MENUITEM',
counterid: '',
tooltip: '运营单位',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: '8BCD342D-9983-4932-85AF-C31662BCE75A',
name: 'menuitem7',
text: '组织层次结构',
type: 'MENUITEM',
counterid: '',
tooltip: '组织层次结构',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: 'FE369EC4-CF71-49D9-A247-8572CFAB910E',
name: 'menuitem8',
text: '组织层次结构应用',
type: 'MENUITEM',
counterid: '',
tooltip: '组织层次结构应用',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: 'F4927234-CF7B-44BA-AECC-24318EF8B794',
name: 'menuitem9',
text: '内部组织',
type: 'MENUITEM',
counterid: '',
tooltip: '内部组织',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: 'E065C1FE-A872-4209-A254-67DE568A5F43',
name: 'menuitem10',
text: '职位',
type: 'MENUITEM',
counterid: '',
tooltip: '职位',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: 'F40EFB9B-4A24-45F2-8CD1-BD9CFD890109',
name: 'menuitem11',
text: '有效职位',
type: 'MENUITEM',
counterid: '',
tooltip: '有效职位',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: '5866C16B-4C55-4E2C-8229-15F7533B9E4F',
name: 'menuitem12',
text: '空缺职位',
type: 'MENUITEM',
counterid: '',
tooltip: '空缺职位',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: '0E9C48F5-46B8-4F0C-915D-27A35AEAD41C',
name: 'menuitem13',
text: '所有职位',
type: 'MENUITEM',
counterid: '',
tooltip: '所有职位',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: '876E25B2-96E1-430F-890B-80DA30FA4DE8',
name: 'menuitem14',
text: '无效职位',
type: 'MENUITEM',
counterid: '',
tooltip: '无效职位',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
],
},
],
},
],
},
{
id: 'fec63a28f5d99fd4ac7e43004b6a16f8',
......
......@@ -7,4 +7,10 @@ import './login/login';
import './upload/upload';
// 实体级接口对象
import './entity/hroperation-units/hroperation-units';
import './entity/hromhierarchy-purpose-refs/hromhierarchy-purpose-refs';
import './entity/hromhierarchy-cats/hromhierarchy-cats';
import './entity/hremployees/hremployees';
import './entity/hromhierarchypurposes/hromhierarchypurposes';
import './entity/hromhierarchys/hromhierarchys';
import './entity/hrorganizations/hrorganizations';
......@@ -39,7 +39,13 @@ export class EntityServiceRegister {
* @memberof EntityServiceRegister
*/
protected init(): void {
this.allEntityService.set('hremployee', () => import('@/service/hremployee/hremployee-service'));
this.allEntityService.set('hroperationunit', () => import('@/service/hroperation-unit/hroperation-unit-service'));
this.allEntityService.set('hromhierarchypurposeref', () => import('@/service/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref-service'));
this.allEntityService.set('hromhierarchycat', () => import('@/service/hromhierarchy-cat/hromhierarchy-cat-service'));
this.allEntityService.set('hremployee', () => import('@/service/hremployee/hremployee-service'));
this.allEntityService.set('hromhierarchypurpose', () => import('@/service/hromhierarchypurpose/hromhierarchypurpose-service'));
this.allEntityService.set('hromhierarchy', () => import('@/service/hromhierarchy/hromhierarchy-service'));
this.allEntityService.set('hrorganization', () => import('@/service/hrorganization/hrorganization-service'));
}
/**
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 结构层次类别服务对象基类
*
* @export
* @class HROMHierarchyCatServiceBase
* @extends {EntityServie}
*/
export default class HROMHierarchyCatServiceBase extends EntityService {
/**
* Creates an instance of HROMHierarchyCatServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyCatServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HROMHierarchyCatServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hromhierarchycat';
this.APPDEKEY = 'omhierarchycatid';
this.APPDENAME = 'hromhierarchycats';
this.APPDETEXT = 'omhierarchycatname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hromhierarchycats/${context.hromhierarchycat}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hromhierarchycats`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hromhierarchycats/${context.hromhierarchycat}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hromhierarchycats/${context.hromhierarchycat}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchycats/${context.hromhierarchycat}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchycats/getdraft`,isloading);
res.data.hromhierarchycat = data.hromhierarchycat;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hromhierarchycats/${context.hromhierarchycat}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hromhierarchycats/${context.hromhierarchycat}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyCatServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hromhierarchycats/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HROMHierarchyCatServiceBase from './hromhierarchy-cat-service-base';
/**
* 结构层次类别服务对象
*
* @export
* @class HROMHierarchyCatService
* @extends {HROMHierarchyCatServiceBase}
*/
export default class HROMHierarchyCatService extends HROMHierarchyCatServiceBase {
/**
* Creates an instance of HROMHierarchyCatService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyCatService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 组织层次结构分配服务对象基类
*
* @export
* @class HROMHierarchyPurposeRefServiceBase
* @extends {EntityServie}
*/
export default class HROMHierarchyPurposeRefServiceBase extends EntityService {
/**
* Creates an instance of HROMHierarchyPurposeRefServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyPurposeRefServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hromhierarchypurposeref';
this.APPDEKEY = 'omhierarchypurposerefid';
this.APPDENAME = 'hromhierarchypurposerefs';
this.APPDETEXT = 'omhierarchypurposerefname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hromhierarchypurposerefs/${context.hromhierarchypurposeref}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hromhierarchypurposerefs`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hromhierarchypurposerefs/${context.hromhierarchypurposeref}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hromhierarchypurposerefs/${context.hromhierarchypurposeref}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchypurposerefs/${context.hromhierarchypurposeref}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchypurposerefs/getdraft`,isloading);
res.data.hromhierarchypurposeref = data.hromhierarchypurposeref;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hromhierarchypurposerefs/${context.hromhierarchypurposeref}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hromhierarchypurposerefs/${context.hromhierarchypurposeref}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyPurposeRefServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hromhierarchypurposerefs/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HROMHierarchyPurposeRefServiceBase from './hromhierarchy-purpose-ref-service-base';
/**
* 组织层次结构分配服务对象
*
* @export
* @class HROMHierarchyPurposeRefService
* @extends {HROMHierarchyPurposeRefServiceBase}
*/
export default class HROMHierarchyPurposeRefService extends HROMHierarchyPurposeRefServiceBase {
/**
* Creates an instance of HROMHierarchyPurposeRefService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyPurposeRefService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 组织层次结构服务对象基类
*
* @export
* @class HROMHierarchyServiceBase
* @extends {EntityServie}
*/
export default class HROMHierarchyServiceBase extends EntityService {
/**
* Creates an instance of HROMHierarchyServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HROMHierarchyServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hromhierarchy';
this.APPDEKEY = 'omhierarchyid';
this.APPDENAME = 'hromhierarchies';
this.APPDETEXT = 'omhierarchyname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hromhierarchies/${context.hromhierarchy}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hromhierarchies`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hromhierarchies/${context.hromhierarchy}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hromhierarchies/${context.hromhierarchy}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchies/${context.hromhierarchy}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchies/getdraft`,isloading);
res.data.hromhierarchy = data.hromhierarchy;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hromhierarchies/${context.hromhierarchy}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hromhierarchies/${context.hromhierarchy}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHierarchyServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hromhierarchies/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HROMHierarchyServiceBase from './hromhierarchy-service-base';
/**
* 组织层次结构服务对象
*
* @export
* @class HROMHierarchyService
* @extends {HROMHierarchyServiceBase}
*/
export default class HROMHierarchyService extends HROMHierarchyServiceBase {
/**
* Creates an instance of HROMHierarchyService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 组织层次结构应用服务对象基类
*
* @export
* @class HROMHIERARCHYPURPOSEServiceBase
* @extends {EntityServie}
*/
export default class HROMHIERARCHYPURPOSEServiceBase extends EntityService {
/**
* Creates an instance of HROMHIERARCHYPURPOSEServiceBase.
*
* @param {*} [opts={}]
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hromhierarchypurpose';
this.APPDEKEY = 'omhierarchypurposeid';
this.APPDENAME = 'hromhierarchypurposes';
this.APPDETEXT = 'omhierarchypurposename';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hromhierarchypurposes/${context.hromhierarchypurpose}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hromhierarchypurposes`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hromhierarchypurposes/${context.hromhierarchypurpose}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hromhierarchypurposes/${context.hromhierarchypurpose}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchypurposes/${context.hromhierarchypurpose}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hromhierarchypurposes/getdraft`,isloading);
res.data.hromhierarchypurpose = data.hromhierarchypurpose;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hromhierarchypurposes/${context.hromhierarchypurpose}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hromhierarchypurposes/${context.hromhierarchypurpose}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROMHIERARCHYPURPOSEServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hromhierarchypurposes/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HROMHIERARCHYPURPOSEServiceBase from './hromhierarchypurpose-service-base';
/**
* 组织层次结构应用服务对象
*
* @export
* @class HROMHIERARCHYPURPOSEService
* @extends {HROMHIERARCHYPURPOSEServiceBase}
*/
export default class HROMHIERARCHYPURPOSEService extends HROMHIERARCHYPURPOSEServiceBase {
/**
* Creates an instance of HROMHIERARCHYPURPOSEService.
*
* @param {*} [opts={}]
* @memberof HROMHIERARCHYPURPOSEService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 运营单位服务对象基类
*
* @export
* @class HROperationUnitServiceBase
* @extends {EntityServie}
*/
export default class HROperationUnitServiceBase extends EntityService {
/**
* Creates an instance of HROperationUnitServiceBase.
*
* @param {*} [opts={}]
* @memberof HROperationUnitServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HROperationUnitServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hroperationunit';
this.APPDEKEY = 'operationunitid';
this.APPDENAME = 'hroperationunits';
this.APPDETEXT = 'operationunitname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hroperationunits/${context.hroperationunit}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hroperationunits`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hroperationunits/${context.hroperationunit}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hroperationunits/${context.hroperationunit}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hroperationunits/${context.hroperationunit}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hroperationunits/getdraft`,isloading);
res.data.hroperationunit = data.hroperationunit;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hroperationunits/${context.hroperationunit}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hroperationunits/${context.hroperationunit}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROperationUnitServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hroperationunits/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HROperationUnitServiceBase from './hroperation-unit-service-base';
/**
* 运营单位服务对象
*
* @export
* @class HROperationUnitService
* @extends {HROperationUnitServiceBase}
*/
export default class HROperationUnitService extends HROperationUnitServiceBase {
/**
* Creates an instance of HROperationUnitService.
*
* @param {*} [opts={}]
* @memberof HROperationUnitService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 组织服务对象基类
*
* @export
* @class HROrganizationServiceBase
* @extends {EntityServie}
*/
export default class HROrganizationServiceBase extends EntityService {
/**
* Creates an instance of HROrganizationServiceBase.
*
* @param {*} [opts={}]
* @memberof HROrganizationServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HROrganizationServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hrorganization';
this.APPDEKEY = 'organizationid';
this.APPDENAME = 'hrorganizations';
this.APPDETEXT = 'organizationname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hrorganizations/${context.hrorganization}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hrorganizations`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrorganizations/${context.hrorganization}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hrorganizations/${context.hrorganization}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrorganizations/${context.hrorganization}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrorganizations/getdraft`,isloading);
res.data.hrorganization = data.hrorganization;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hrorganizations/${context.hrorganization}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrorganizations/${context.hrorganization}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HROrganizationServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrorganizations/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HROrganizationServiceBase from './hrorganization-service-base';
/**
* 组织服务对象
*
* @export
* @class HROrganizationService
* @extends {HROrganizationServiceBase}
*/
export default class HROrganizationService extends HROrganizationServiceBase {
/**
* Creates an instance of HROrganizationService.
*
* @param {*} [opts={}]
* @memberof HROrganizationService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import HROMHierarchyCatUIServiceBase from './hromhierarchy-cat-ui-service-base';
/**
* 结构层次类别UI服务对象
*
* @export
* @class HROMHierarchyCatUIService
*/
export default class HROMHierarchyCatUIService extends HROMHierarchyCatUIServiceBase {
/**
* Creates an instance of HROMHierarchyCatUIService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyCatUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import HROMHierarchyPurposeRefUIServiceBase from './hromhierarchy-purpose-ref-ui-service-base';
/**
* 组织层次结构分配UI服务对象
*
* @export
* @class HROMHierarchyPurposeRefUIService
*/
export default class HROMHierarchyPurposeRefUIService extends HROMHierarchyPurposeRefUIServiceBase {
/**
* Creates an instance of HROMHierarchyPurposeRefUIService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyPurposeRefUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import HROMHierarchyUIServiceBase from './hromhierarchy-ui-service-base';
/**
* 组织层次结构UI服务对象
*
* @export
* @class HROMHierarchyUIService
*/
export default class HROMHierarchyUIService extends HROMHierarchyUIServiceBase {
/**
* Creates an instance of HROMHierarchyUIService.
*
* @param {*} [opts={}]
* @memberof HROMHierarchyUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import HROMHIERARCHYPURPOSEUIServiceBase from './hromhierarchypurpose-ui-service-base';
/**
* 组织层次结构应用UI服务对象
*
* @export
* @class HROMHIERARCHYPURPOSEUIService
*/
export default class HROMHIERARCHYPURPOSEUIService extends HROMHIERARCHYPURPOSEUIServiceBase {
/**
* Creates an instance of HROMHIERARCHYPURPOSEUIService.
*
* @param {*} [opts={}]
* @memberof HROMHIERARCHYPURPOSEUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import HROperationUnitUIServiceBase from './hroperation-unit-ui-service-base';
/**
* 运营单位UI服务对象
*
* @export
* @class HROperationUnitUIService
*/
export default class HROperationUnitUIService extends HROperationUnitUIServiceBase {
/**
* Creates an instance of HROperationUnitUIService.
*
* @param {*} [opts={}]
* @memberof HROperationUnitUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import HROrganizationUIServiceBase from './hrorganization-ui-service-base';
/**
* 组织UI服务对象
*
* @export
* @class HROrganizationUIService
*/
export default class HROrganizationUIService extends HROrganizationUIServiceBase {
/**
* Creates an instance of HROrganizationUIService.
*
* @param {*} [opts={}]
* @memberof HROrganizationUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册