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

xignzi006 发布系统代码

上级 909c68f3
[
]
\ No newline at end of file
{
"srfkey": "SysOperator",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
"srfkey": "CL_HR_0001",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "COSTCENTER",
"label": "成本中心",
"text": "成本中心",
"data":"",
"codename":"Costcenter",
"value": "COSTCENTER",
"disabled": false,
"default": false
}
, {
"id": "BUSINESSUNIT",
"label": "业务单位",
"text": "业务单位",
"data":"",
"codename":"Businessunit",
"value": "BUSINESSUNIT",
"disabled": false,
"default": false
}
, {
"id": "DEPARTMENT",
"label": "部门",
"text": "部门",
"data":"",
"codename":"Department",
"value": "DEPARTMENT",
"disabled": false,
"default": false
}
, {
"id": "COMMERCIAL",
"label": "商业渠道",
"text": "商业渠道",
"data":"",
"codename":"Commercial",
"value": "COMMERCIAL",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "OrganizationType",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "LEGAL",
"label": "法人",
"text": "法人",
"data":"",
"codename":"Legal",
"value": "LEGAL",
"disabled": false,
"default": false
}
, {
"id": "OPERATIONUNIT",
"label": "运营单位",
"text": "运营单位",
"data":"",
"codename":"Operationunit",
"value": "OPERATIONUNIT",
"disabled": false,
"default": false
}
]
}
]
\ No newline at end of file
{
"hrorganizationgridview": {
"title": "组织表格视图",
"caption": "组织",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROrganizationGridView",
"viewfilename": "hrorganization-grid-view",
"viewtag": "0d8ac739134947cc5f6545d4041024de",
"memo": ""
},
"hroperationuniteditview": {
"title": "运营单位编辑视图",
"caption": "运营单位",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROperationUnitEditView",
"viewfilename": "hroperation-unit-edit-view",
"viewtag": "28aca0d4ad43b8ef609172d9be9359c7",
"memo": "系统自动添加"
},
"pim": {
"title": "应用首页视图",
"caption": "基础管理",
......@@ -19,6 +39,16 @@
"viewtag": "9559258a9c3ac118e15ead941b780682",
"memo": ""
},
"hrorganizationeditview": {
"title": "组织编辑视图",
"caption": "组织",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROrganizationEditView",
"viewfilename": "hrorganization-edit-view",
"viewtag": "b4ef4b87eb87fc3a2a8479027d62ac4c",
"memo": "系统自动添加"
},
"hremployeeeditview": {
"title": "员工编辑视图",
"caption": "员工",
......@@ -28,5 +58,15 @@
"viewfilename": "hremployee-edit-view",
"viewtag": "b932c0eb66409c638c29ee27ba4fda37",
"memo": "系统自动添加"
},
"hrlegaleditview": {
"title": "法人编辑视图",
"caption": "法人",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HRLegalEditView",
"viewfilename": "hrlegal-edit-view",
"viewtag": "e50ad3e1883bafa2d6f264d44ca8ff89",
"memo": "系统自动添加"
}
}
\ No newline at end of file
......@@ -43,6 +43,7 @@ export class AuthServiceRegister {
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('hrlegal', () => import('@/authservice/hrlegal/hrlegal-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 HRLegalAuthServiceBase
* @extends {AuthService}
*/
export default class HRLegalAuthServiceBase extends AuthService {
/**
* Creates an instance of HRLegalAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HRLegalAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HRLegalAuthServiceBase
*/
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 HRLegalAuthServiceBase from './hrlegal-auth-service-base';
/**
* 法人权限服务对象
*
* @export
* @class HRLegalAuthService
* @extends {HRLegalAuthServiceBase}
*/
export default class HRLegalAuthService extends HRLegalAuthServiceBase {
/**
* Creates an instance of HRLegalAuthService.
*
* @param {*} [opts={}]
* @memberof HRLegalAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
/**
* 代码表--云系统操作者
*
* @export
* @class SysOperator
*/
export default class SysOperator {
/**
* 是否启用缓存
*
* @type boolean
* @memberof SysOperator
*/
public isEnableCache:boolean = true;
/**
* 过期时间
*
* @type any
* @memberof SysOperator
*/
public expirationTime:any;
/**
* 缓存超长时长
*
* @type any
* @memberof SysOperator
*/
public cacheTimeout:any = -1;
/**
* 代码表模型对象
*
* @type any
* @memberof SysOperator
*/
public codelistModel:any = {
codelistid:"SysOperator"
};
/**
* 自定义参数集合
*
* @type any
* @memberof SysOperator
*/
public userParamNames:any ={
}
/**
* 查询参数集合
*
* @type any
* @memberof SysOperator
*/
public queryParamNames:any ={
}
/**
* 获取数据项
*
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysOperator
*/
public getItems(data: any={}, isloading?: boolean): Promise<any> {
return Promise.reject([]);
}
/**
* 处理查询参数
* @param data 传入data
* @memberof SysOperator
*/
public handleQueryParam(data:any){
let tempData:any = data?JSON.parse(JSON.stringify(data)):{};
if(this.userParamNames && Object.keys(this.userParamNames).length >0){
Object.keys(this.userParamNames).forEach((name: string) => {
if (!name) {
return;
}
let value: string | null = this.userParamNames[name];
if (value && value.startsWith('%') && value.endsWith('%')) {
const key = value.substring(1, value.length - 1);
if (this.codelistModel && this.codelistModel.hasOwnProperty(key)) {
value = (this.codelistModel[key] !== null && this.codelistModel[key] !== undefined) ? this.codelistModel[key] : null;
} else {
value = null;
}
}
Object.assign(tempData, { [name]: value });
});
}
Object.assign(tempData,{page: 0, size: 1000});
if(this.queryParamNames && Object.keys(this.queryParamNames).length > 0){
Object.assign(tempData,this.queryParamNames);
}
return tempData;
}
}
/**
* 法人
*
* @export
* @interface HRLegal
*/
export interface HRLegal {
/**
* 法人名称
*
* @returns {*}
* @memberof HRLegal
*/
legalname?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HRLegal
*/
createman?: any;
/**
* 更新人
*
* @returns {*}
* @memberof HRLegal
*/
updateman?: any;
/**
* 法人标识
*
* @returns {*}
* @memberof HRLegal
*/
legalid?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HRLegal
*/
createdate?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof HRLegal
*/
updatedate?: any;
/**
* 组织类型
*
* @returns {*}
* @memberof HRLegal
*/
organizationtype?: any;
}
\ No newline at end of file
......@@ -61,4 +61,44 @@ export interface HROrganization {
* @memberof HROrganization
*/
organizationtype?: any;
/**
* 组织简称
*
* @returns {*}
* @memberof HROrganization
*/
shortname?: any;
/**
* 组织编码
*
* @returns {*}
* @memberof HROrganization
*/
orgcode?: any;
/**
* 组织层级
*
* @returns {*}
* @memberof HROrganization
*/
orglevel?: any;
/**
* 排序号
*
* @returns {*}
* @memberof HROrganization
*/
showorder?: any;
/**
* 运营单位类型
*
* @returns {*}
* @memberof HROrganization
*/
operationunittype?: any;
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ import hroperationunit_en_US from '@locale/lanres/entities/hroperation-unit/hrop
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 hrlegal_en_US from '@locale/lanres/entities/hrlegal/hrlegal_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';
......@@ -138,7 +139,7 @@ export default {
menuitem6: "运营单位",
menuitem7: "组织层次结构",
menuitem8: "组织层次结构应用",
menuitem9: "内部组织",
menuitem9: "所有组织",
menuitem10: "职位",
menuitem11: "有效职位",
menuitem12: "空缺职位",
......@@ -250,6 +251,7 @@ export default {
hromhierarchypurposeref: hromhierarchypurposeref_en_US,
hromhierarchycat: hromhierarchycat_en_US,
hremployee: hremployee_en_US,
hrlegal: hrlegal_en_US,
hromhierarchypurpose: hromhierarchypurpose_en_US,
hromhierarchy: hromhierarchy_en_US,
hrorganization: hrorganization_en_US,
......
......@@ -2,6 +2,7 @@ import hroperationunit_zh_CN from '@locale/lanres/entities/hroperation-unit/hrop
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 hrlegal_zh_CN from '@locale/lanres/entities/hrlegal/hrlegal_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';
......@@ -138,7 +139,7 @@ export default {
menuitem6: "运营单位",
menuitem7: "组织层次结构",
menuitem8: "组织层次结构应用",
menuitem9: "内部组织",
menuitem9: "所有组织",
menuitem10: "职位",
menuitem11: "有效职位",
menuitem12: "空缺职位",
......@@ -249,6 +250,7 @@ export default {
hromhierarchypurposeref: hromhierarchypurposeref_zh_CN,
hromhierarchycat: hromhierarchycat_zh_CN,
hremployee: hremployee_zh_CN,
hrlegal: hrlegal_zh_CN,
hromhierarchypurpose: hromhierarchypurpose_zh_CN,
hromhierarchy: hromhierarchy_zh_CN,
hrorganization: hrorganization_zh_CN,
......
export default {
SysOperator: {
"empty": "",
},
CL_HR_0001: {
"COSTCENTER": "成本中心",
"BUSINESSUNIT": "业务单位",
"DEPARTMENT": "部门",
"COMMERCIAL": "商业渠道",
"empty": ""
},
OrganizationType: {
"LEGAL": "法人",
"OPERATIONUNIT": "运营单位",
"empty": ""
},
};
\ No newline at end of file
export default {
SysOperator: {
"empty": "",
},
CL_HR_0001: {
"COSTCENTER": "成本中心",
"BUSINESSUNIT": "业务单位",
"DEPARTMENT": "部门",
"COMMERCIAL": "商业渠道",
"empty": "",
},
OrganizationType: {
"LEGAL": "法人",
"OPERATIONUNIT": "运营单位",
"empty": "",
},
};
\ No newline at end of file
export default {
fields: {
legalname: "法人名称",
createman: "建立人",
updateman: "更新人",
legalid: "法人标识",
createdate: "建立时间",
updatedate: "更新时间",
organizationtype: "组织类型",
},
views: {
editview: {
caption: "法人",
title: "法人编辑视图",
},
},
main_form: {
details: {
group1: "法人基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "法人标识",
srfmajortext: "法人名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
legalid: "法人标识",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
};
\ No newline at end of file
export default {
fields: {
legalname: "法人名称",
createman: "建立人",
updateman: "更新人",
legalid: "法人标识",
createdate: "建立时间",
updatedate: "更新时间",
organizationtype: "组织类型",
},
views: {
editview: {
caption: "法人",
title: "法人编辑视图",
},
},
main_form: {
details: {
group1: "法人基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "法人标识",
srfmajortext: "法人名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
legalid: "法人标识",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
},
},
};
\ No newline at end of file
......@@ -9,4 +9,75 @@ export default {
operationunitname: "运营单位名称",
organizationtype: "组织类型",
},
views: {
editview: {
caption: "运营单位",
title: "运营单位编辑视图",
},
},
main_form: {
details: {
group1: "运营单位基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "运营单位标识",
srfmajortext: "运营单位名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
operationunitid: "运营单位标识",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
};
\ No newline at end of file
......@@ -8,4 +8,75 @@ export default {
operationunitname: "运营单位名称",
organizationtype: "组织类型",
},
views: {
editview: {
caption: "运营单位",
title: "运营单位编辑视图",
},
},
main_form: {
details: {
group1: "运营单位基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "运营单位标识",
srfmajortext: "运营单位名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
operationunitid: "运营单位标识",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
},
},
};
\ No newline at end of file
......@@ -8,5 +8,167 @@ export default {
createdate: "建立时间",
organizationid: "组织",
organizationtype: "组织类型",
shortname: "组织简称",
orgcode: "组织编码",
orglevel: "组织层级",
showorder: "排序号",
operationunittype: "运营单位类型",
},
views: {
gridview: {
caption: "组织",
title: "组织表格视图",
},
editview: {
caption: "组织",
title: "组织编辑视图",
},
},
main_form: {
details: {
group1: "organization基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "组织",
srfmajortext: "组织名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
organizationname: "组织名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
organizationid: "组织",
},
uiactions: {
},
},
main_grid: {
columns: {
orgcode: "组织编码",
organizationname: "组织名称",
organizationtype: "组织类型",
shortname: "组织简称",
operationunittype: "运营单位类型",
showorder: "排序号",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
tbitem18: {
caption: "Help",
tip: "Help",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
};
\ No newline at end of file
......@@ -7,5 +7,167 @@ export default {
createdate: "建立时间",
organizationid: "组织",
organizationtype: "组织类型",
shortname: "组织简称",
orgcode: "组织编码",
orglevel: "组织层级",
showorder: "排序号",
operationunittype: "运营单位类型",
},
views: {
gridview: {
caption: "组织",
title: "组织表格视图",
},
editview: {
caption: "组织",
title: "组织编辑视图",
},
},
main_form: {
details: {
group1: "organization基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "组织",
srfmajortext: "组织名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
organizationname: "组织名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
organizationid: "组织",
},
uiactions: {
},
},
main_grid: {
columns: {
orgcode: "组织编码",
organizationname: "组织名称",
organizationtype: "组织类型",
shortname: "组织简称",
operationunittype: "运营单位类型",
showorder: "排序号",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "导出数据模型",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
tbitem18: {
caption: "帮助",
tip: "帮助",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
},
},
};
\ No newline at end of file
......@@ -235,19 +235,19 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
{
id: 'F4927234-CF7B-44BA-AECC-24318EF8B794',
name: 'menuitem9',
text: '内部组织',
text: '所有组织',
type: 'MENUITEM',
counterid: '',
tooltip: '内部组织',
tooltip: '所有组织',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-cubes',
icon: '',
textcls: '',
appfunctag: '',
appfunctag: '_3',
resourcetag: '',
},
{
......
......@@ -7,6 +7,88 @@ import Mock from 'mockjs'
mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status, [
]];
{
"srfkey": "SysOperator",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
srfkey: "CL_HR_0001",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "COSTCENTER",
label: "成本中心",
text: "成本中心",
"data":"",
"codename":"Costcenter",
value: "COSTCENTER",
disabled: false,
},
{
id: "BUSINESSUNIT",
label: "业务单位",
text: "业务单位",
"data":"",
"codename":"Businessunit",
value: "BUSINESSUNIT",
disabled: false,
},
{
id: "DEPARTMENT",
label: "部门",
text: "部门",
"data":"",
"codename":"Department",
value: "DEPARTMENT",
disabled: false,
},
{
id: "COMMERCIAL",
label: "商业渠道",
text: "商业渠道",
"data":"",
"codename":"Commercial",
value: "COMMERCIAL",
disabled: false,
},
]
},
{
srfkey: "OrganizationType",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "LEGAL",
label: "法人",
text: "法人",
"data":"",
"codename":"Legal",
value: "LEGAL",
disabled: false,
},
{
id: "OPERATIONUNIT",
label: "运营单位",
text: "运营单位",
"data":"",
"codename":"Operationunit",
value: "OPERATIONUNIT",
disabled: false,
},
]
}
]];
});
此差异已折叠。
......@@ -11,6 +11,7 @@ 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/hrlegals/hrlegals';
import './entity/hromhierarchypurposes/hromhierarchypurposes';
import './entity/hromhierarchys/hromhierarchys';
import './entity/hrorganizations/hrorganizations';
......@@ -7,7 +7,23 @@ import Mock from 'mockjs'
mock.onGet('./assets/json/view-config.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status,{
"pim": {
"hrorganizationgridview": {
"title": "组织表格视图",
"caption": "组织",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROrganizationGridView",
"viewtag": "0d8ac739134947cc5f6545d4041024de"
},
"hroperationuniteditview": {
"title": "运营单位编辑视图",
"caption": "运营单位",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROperationUnitEditView",
"viewtag": "28aca0d4ad43b8ef609172d9be9359c7"
},
"pim": {
"title": "应用首页视图",
"caption": "基础管理",
"viewtype": "APPINDEXVIEW",
......@@ -23,6 +39,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HREmployeeGridView",
"viewtag": "9559258a9c3ac118e15ead941b780682"
},
"hrorganizationeditview": {
"title": "组织编辑视图",
"caption": "组织",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROrganizationEditView",
"viewtag": "b4ef4b87eb87fc3a2a8479027d62ac4c"
},
"hremployeeeditview": {
"title": "员工编辑视图",
"caption": "员工",
......@@ -30,6 +54,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewmodule": "HumanResource",
"viewname": "HREmployeeEditView",
"viewtag": "b932c0eb66409c638c29ee27ba4fda37"
},
"hrlegaleditview": {
"title": "法人编辑视图",
"caption": "法人",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HRLegalEditView",
"viewtag": "e50ad3e1883bafa2d6f264d44ca8ff89"
}
}];
});
\ No newline at end of file
<studio-view-style2 viewName="hrlegaleditview" viewTitle="法人编辑视图" class='deeditview hrlegal-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./hrlegal-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRLegalEditViewBase } from './hrlegal-edit-view-base';
import view_form from '@widgets/hrlegal/main-form/main-form.vue';
/**
* 法人编辑视图视图
*
* @export
* @class HRLegalEditView
* @extends {HRLegalEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRLegalEditView extends HRLegalEditViewBase { }
</script>
<studio-view-style2 viewName="hroperationuniteditview" viewTitle="运营单位编辑视图" class='deeditview hroperation-unit-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./hroperation-unit-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROperationUnitEditViewBase } from './hroperation-unit-edit-view-base';
import view_form from '@widgets/hroperation-unit/main-form/main-form.vue';
/**
* 运营单位编辑视图视图
*
* @export
* @class HROperationUnitEditView
* @extends {HROperationUnitEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HROperationUnitEditView extends HROperationUnitEditViewBase { }
</script>
<studio-view-style2 viewName="hrorganizationeditview" viewTitle="组织编辑视图" class='deeditview hrorganization-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./hrorganization-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROrganizationEditViewBase } from './hrorganization-edit-view-base';
import view_form from '@widgets/hrorganization/main-form/main-form.vue';
/**
* 组织编辑视图视图
*
* @export
* @class HROrganizationEditView
* @extends {HROrganizationEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HROrganizationEditView extends HROrganizationEditViewBase { }
</script>
<studio-view-style2 viewName="hrorganizationgridview" viewTitle="组织表格视图" class='degridview hrorganization-grid-view'>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="组织名称" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./hrorganization-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROrganizationGridViewBase } from './hrorganization-grid-view-base';
import view_grid from '@widgets/hrorganization/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrorganization/default-searchform/default-searchform.vue';
/**
* 组织表格视图视图
*
* @export
* @class HROrganizationGridView
* @extends {HROrganizationGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HROrganizationGridView extends HROrganizationGridViewBase { }
</script>
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('hremployee-edit-view', () => import('@pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue'));
Vue.component('hrlegal-edit-view', () => import('@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'));
Vue.component('hroperation-unit-edit-view', () => import('@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'));
Vue.component('hremployee-grid-view', () => import('@pages/human-resource/hremployee-grid-view/hremployee-grid-view.vue'));
Vue.component('hrorganization-grid-view', () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'));
Vue.component('hrorganization-edit-view', () => import('@pages/base/hrorganization-edit-view/hrorganization-edit-view.vue'));
}
};
\ No newline at end of file
......@@ -57,6 +57,34 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue'),
},
{
path: 'hrlegals/:hrlegal?/editview/:editview?',
meta: {
caption: 'entities.hrlegal.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrlegals', parameterName: 'hrlegal' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'),
},
{
path: 'hroperationunits/:hroperationunit?/editview/:editview?',
meta: {
caption: 'entities.hroperationunit.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hroperationunits', parameterName: 'hroperationunit' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'),
},
{
path: 'hremployees/:hremployee?/gridview/:gridview?',
meta: {
......@@ -71,6 +99,34 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hremployee-grid-view/hremployee-grid-view.vue'),
},
{
path: 'hrorganizations/:hrorganization?/gridview/:gridview?',
meta: {
caption: 'entities.hrorganization.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'),
},
{
path: 'hrorganizations/:hrorganization?/editview/:editview?',
meta: {
caption: 'entities.hrorganization.views.editview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrorganization-edit-view/hrorganization-edit-view.vue'),
},
...indexRoutes,
],
},
......
import SysOperator from '@/codelist/sys-operator';
import { Store } from 'vuex';
/**
......@@ -49,6 +50,14 @@ export default class CodeListService {
public static codelistCached:Map<string,any> = new Map();
/**
* 代码表--云系统操作者
*
* @type {SysOperator}
* @memberof CodeListService
*/
public SysOperator: SysOperator = new SysOperator();
/**
* 获取动态代码表
*
......
......@@ -43,6 +43,7 @@ export class EntityServiceRegister {
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('hrlegal', () => import('@/service/hrlegal/hrlegal-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 HRLegalServiceBase
* @extends {EntityServie}
*/
export default class HRLegalServiceBase extends EntityService {
/**
* Creates an instance of HRLegalServiceBase.
*
* @param {*} [opts={}]
* @memberof HRLegalServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HRLegalServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hrlegal';
this.APPDEKEY = 'legalid';
this.APPDENAME = 'hrlegals';
this.APPDETEXT = 'legalname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hrlegals/${context.hrlegal}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
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(`/hrlegals`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
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(`/hrlegals/${context.hrlegal}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hrlegals/${context.hrlegal}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrlegals/${context.hrlegal}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrlegals/getdraft`,isloading);
res.data.hrlegal = data.hrlegal;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hrlegals/${context.hrlegal}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
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(`/hrlegals/${context.hrlegal}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRLegalServiceBase
*/
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(`/hrlegals/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HRLegalServiceBase from './hrlegal-service-base';
/**
* 法人服务对象
*
* @export
* @class HRLegalService
* @extends {HRLegalServiceBase}
*/
export default class HRLegalService extends HRLegalServiceBase {
/**
* Creates an instance of HRLegalService.
*
* @param {*} [opts={}]
* @memberof HRLegalService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -3,6 +3,27 @@
*/
export const viewstate: any = {
appviews: [
{
viewtag: '0d8ac739134947cc5f6545d4041024de',
viewmodule: 'Base',
viewname: 'HROrganizationGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'e50ad3e1883bafa2d6f264d44ca8ff89',
'28aca0d4ad43b8ef609172d9be9359c7',
'b4ef4b87eb87fc3a2a8479027d62ac4c',
],
},
{
viewtag: '28aca0d4ad43b8ef609172d9be9359c7',
viewmodule: 'Base',
viewname: 'HROperationUnitEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '49CD8BAE-D640-4816-8313-5D8609BB0041',
viewmodule: 'Ungroup',
......@@ -11,6 +32,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'9559258a9c3ac118e15ead941b780682',
'0d8ac739134947cc5f6545d4041024de',
],
},
{
......@@ -23,6 +45,15 @@ export const viewstate: any = {
'b932c0eb66409c638c29ee27ba4fda37',
],
},
{
viewtag: 'b4ef4b87eb87fc3a2a8479027d62ac4c',
viewmodule: 'Base',
viewname: 'HROrganizationEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'b932c0eb66409c638c29ee27ba4fda37',
viewmodule: 'HumanResource',
......@@ -32,6 +63,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'e50ad3e1883bafa2d6f264d44ca8ff89',
viewmodule: 'Base',
viewname: 'HRLegalEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
],
createdviews: [],
}
\ No newline at end of file
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import HRLegalService from '@/service/hrlegal/hrlegal-service';
import HRLegalAuthService from '@/authservice/hrlegal/hrlegal-auth-service';
/**
* 法人UI服务对象基类
*
* @export
* @class HRLegalUIServiceBase
*/
export default class HRLegalUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof HRLegalUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof HRLegalUIServiceBase
*/
public dataService:HRLegalService = new HRLegalService();
/**
* 所有关联视图
*
* @memberof HRLegalUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof HRLegalUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof HRLegalUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof HRLegalUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof HRLegalUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof HRLegalUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of HRLegalUIServiceBase.
*
* @param {*} [opts={}]
* @memberof HRLegalUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new HRLegalAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof HRLegalUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hrlegals'});
}
/**
* 初始化主状态集合
*
* @memberof HRLegalUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof HRLegalUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof HRLegalUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({hrlegal:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof HRLegalUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof HRLegalUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof HRLegalUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.warn(`当前数据对象不包含属性${singleMainField},可能会发生错误`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof HRLegalUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof HRLegalUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import HRLegalUIServiceBase from './hrlegal-ui-service-base';
/**
* 法人UI服务对象
*
* @export
* @class HRLegalUIService
*/
export default class HRLegalUIService extends HRLegalUIServiceBase {
/**
* Creates an instance of HRLegalUIService.
*
* @param {*} [opts={}]
* @memberof HRLegalUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -89,6 +89,7 @@ export default class HROperationUnitUIServiceBase extends UIService {
* @memberof HROperationUnitUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hroperationunits'});
}
/**
......
......@@ -89,6 +89,8 @@ export default class HROrganizationUIServiceBase extends UIService {
* @memberof HROrganizationUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hrorganizations'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hrorganizations'});
}
/**
......
......@@ -43,6 +43,7 @@ export class UIServiceRegister {
this.allUIService.set('hromhierarchypurposeref', () => import('@/uiservice/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref-ui-service'));
this.allUIService.set('hromhierarchycat', () => import('@/uiservice/hromhierarchy-cat/hromhierarchy-cat-ui-service'));
this.allUIService.set('hremployee', () => import('@/uiservice/hremployee/hremployee-ui-service'));
this.allUIService.set('hrlegal', () => import('@/uiservice/hrlegal/hrlegal-ui-service'));
this.allUIService.set('hromhierarchypurpose', () => import('@/uiservice/hromhierarchypurpose/hromhierarchypurpose-ui-service'));
this.allUIService.set('hromhierarchy', () => import('@/uiservice/hromhierarchy/hromhierarchy-ui-service'));
this.allUIService.set('hrorganization', () => import('@/uiservice/hrorganization/hrorganization-ui-service'));
......
......@@ -15,6 +15,8 @@ export class PIMBase extends Vue {
if (item) {
let judge = true;
switch (item.appfunctag) {
case '_3':
this.click_3(item); break;
case '_2':
this.click_2(item); break;
default:
......@@ -27,6 +29,29 @@ export class PIMBase extends Vue {
}
}
/**
* 组织
*
* @param {*} [item={}]
* @memberof PIM
*/
public click_3(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 员工信息
*
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册