Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
3a4a5f11
提交
3a4a5f11
编写于
8月 08, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
18d75b1f
变更
21
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
1102 行增加
和
6 行删除
+1102
-6
data-dictionary.json
app_PIM/public/assets/json/data-dictionary.json
+2
-2
auth-service-register.ts
app_PIM/src/authservice/auth-service-register.ts
+1
-0
hremp-state-auth-service-base.ts
.../authservice/hremp-state/hremp-state-auth-service-base.ts
+37
-0
hremp-state-auth-service.ts
...M/src/authservice/hremp-state/hremp-state-auth-service.ts
+24
-0
cl-hr-0016.ts
app_PIM/src/codelist/cl-hr-0016.ts
+47
-2
hremp-state.ts
app_PIM/src/interface/entity/hremp-state.ts
+80
-0
en-US.ts
app_PIM/src/locale/lang/en-US.ts
+2
-0
zh-CN.ts
app_PIM/src/locale/lang/zh-CN.ts
+2
-0
hremp-state_en_US.ts
...c/locale/lanres/entities/hremp-state/hremp-state_en_US.ts
+14
-0
hremp-state_zh_CN.ts
...c/locale/lanres/entities/hremp-state/hremp-state_zh_CN.ts
+13
-0
codelist.ts
app_PIM/src/mock/codelist/codelist.ts
+2
-2
hremp-states.ts
app_PIM/src/mock/entity/hremp-states/hremp-states.ts
+380
-0
index.ts
app_PIM/src/mock/index.ts
+1
-0
entity-service-register.ts
app_PIM/src/service/entity-service-register.ts
+1
-0
hremp-state-service-base.ts
app_PIM/src/service/hremp-state/hremp-state-service-base.ts
+187
-0
hremp-state-service.ts
app_PIM/src/service/hremp-state/hremp-state-service.ts
+25
-0
hremp-state-ui-service-base.ts
.../src/uiservice/hremp-state/hremp-state-ui-service-base.ts
+250
-0
hremp-state-ui-service.ts
app_PIM/src/uiservice/hremp-state/hremp-state-ui-service.ts
+21
-0
ui-service-register.ts
app_PIM/src/uiservice/ui-service-register.ts
+1
-0
application-pim-prod.yml
...ource-app-pim/src/main/resources/application-pim-prod.yml
+4
-0
systemResource.json
...ce-core/src/main/resources/permission/systemResource.json
+8
-0
未找到文件。
app_PIM/public/assets/json/data-dictionary.json
浏览文件 @
3a4a5f11
...
...
@@ -674,8 +674,8 @@
"srfkey"
:
"CL_HR_0016"
,
"emptytext"
:
"未定义"
,
"codelisttype"
:
"dynamic"
,
"appdataentity"
:
""
,
"appdedataset"
:
""
,
"appdataentity"
:
"
HREmpState
"
,
"appdedataset"
:
"
FetchDefault
"
,
"items"
:
[]
},
{
...
...
app_PIM/src/authservice/auth-service-register.ts
浏览文件 @
3a4a5f11
...
...
@@ -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
(
'hrorgcontact'
,
()
=>
import
(
'@/authservice/hrorg-contact/hrorg-contact-auth-service'
));
this
.
allAuthService
.
set
(
'hrempstate'
,
()
=>
import
(
'@/authservice/hremp-state/hremp-state-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
(
'hrdutyedu'
,
()
=>
import
(
'@/authservice/hrduty-edu/hrduty-edu-auth-service'
));
...
...
app_PIM/src/authservice/hremp-state/hremp-state-auth-service-base.ts
0 → 100644
浏览文件 @
3a4a5f11
import
AuthService
from
'../auth-service'
;
/**
* 员工状态权限服务对象基类
*
* @export
* @class HREmpStateAuthServiceBase
* @extends {AuthService}
*/
export
default
class
HREmpStateAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of HREmpStateAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HREmpStateAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HREmpStateAuthServiceBase
*/
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
app_PIM/src/authservice/hremp-state/hremp-state-auth-service.ts
0 → 100644
浏览文件 @
3a4a5f11
import
HREmpStateAuthServiceBase
from
'./hremp-state-auth-service-base'
;
/**
* 员工状态权限服务对象
*
* @export
* @class HREmpStateAuthService
* @extends {HREmpStateAuthServiceBase}
*/
export
default
class
HREmpStateAuthService
extends
HREmpStateAuthServiceBase
{
/**
* Creates an instance of HREmpStateAuthService.
*
* @param {*} [opts={}]
* @memberof HREmpStateAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_PIM/src/codelist/cl-hr-0016.ts
浏览文件 @
3a4a5f11
import
HREmpStateService
from
'@service/hremp-state/hremp-state-service'
;
/**
* 代码表--员工状态
*
...
...
@@ -56,20 +57,64 @@ export default class CL_HR_0016 {
* @memberof CL_HR_0016
*/
public
queryParamNames
:
any
=
{
sort
:
'showorder,asc'
}
/**
* 员工状态应用实体服务对象
*
* @type {HREmpStateService}
* @memberof CL_HR_0016
*/
public
hrempstateService
:
HREmpStateService
=
new
HREmpStateService
();
/**
* 处理数据
*
* @public
* @param {any[]} items
* @returns {any[]}
* @memberof CL_HR_0016
*/
public
doItems
(
items
:
any
[]):
any
[]
{
let
_items
:
any
[]
=
[];
items
.
forEach
((
item
:
any
)
=>
{
let
itemdata
:
any
=
{};
Object
.
assign
(
itemdata
,{
id
:
item
.
hrempstateid
});
Object
.
assign
(
itemdata
,{
value
:
item
.
hrempstateid
});
Object
.
assign
(
itemdata
,{
text
:
item
.
hrempstatename
});
_items
.
push
(
itemdata
);
});
return
_items
;
}
/**
* 获取数据项
*
* @param {*} context
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CL_HR_0016
*/
public
getItems
(
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Promise
.
reject
([]);
public
getItems
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
data
=
this
.
handleQueryParam
(
data
);
const
promise
:
Promise
<
any
>
=
this
.
hrempstateService
.
FetchDefault
(
context
,
data
,
isloading
);
promise
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
resolve
(
this
.
doItems
(
data
));
}
else
{
resolve
([]);
}
}).
catch
((
response
:
any
)
=>
{
console
.
error
(
response
);
reject
(
response
);
});
});
}
/**
...
...
app_PIM/src/interface/entity/hremp-state.ts
0 → 100644
浏览文件 @
3a4a5f11
/**
* 员工状态
*
* @export
* @interface HREmpState
*/
export
interface
HREmpState
{
/**
* 建立人
*
* @returns {*}
* @memberof HREmpState
*/
createman
?:
any
;
/**
* 员工状态标识
*
* @returns {*}
* @memberof HREmpState
*/
hrempstateid
?:
any
;
/**
* 员工状态名称
*
* @returns {*}
* @memberof HREmpState
*/
hrempstatename
?:
any
;
/**
* 更新人
*
* @returns {*}
* @memberof HREmpState
*/
updateman
?:
any
;
/**
* 更新时间
*
* @returns {*}
* @memberof HREmpState
*/
updatedate
?:
any
;
/**
* 建立时间
*
* @returns {*}
* @memberof HREmpState
*/
createdate
?:
any
;
/**
* 在岗状态
*
* @returns {*}
* @memberof HREmpState
*/
jobstate
?:
any
;
/**
* 排序号
*
* @returns {*}
* @memberof HREmpState
*/
showorder
?:
any
;
/**
* 状态编码
*
* @returns {*}
* @memberof HREmpState
*/
statecode
?:
any
;
}
\ No newline at end of file
app_PIM/src/locale/lang/en-US.ts
浏览文件 @
3a4a5f11
...
...
@@ -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
hrorgcontact_en_US
from
'@locale/lanres/entities/hrorg-contact/hrorg-contact_en_US'
;
import
hrempstate_en_US
from
'@locale/lanres/entities/hremp-state/hremp-state_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
hrdutyedu_en_US
from
'@locale/lanres/entities/hrduty-edu/hrduty-edu_en_US'
;
...
...
@@ -257,6 +258,7 @@ export default {
hromhierarchypurposeref
:
hromhierarchypurposeref_en_US
,
hromhierarchycat
:
hromhierarchycat_en_US
,
hrorgcontact
:
hrorgcontact_en_US
,
hrempstate
:
hrempstate_en_US
,
hremployee
:
hremployee_en_US
,
hrlegal
:
hrlegal_en_US
,
hrdutyedu
:
hrdutyedu_en_US
,
...
...
app_PIM/src/locale/lang/zh-CN.ts
浏览文件 @
3a4a5f11
...
...
@@ -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
hrorgcontact_zh_CN
from
'@locale/lanres/entities/hrorg-contact/hrorg-contact_zh_CN'
;
import
hrempstate_zh_CN
from
'@locale/lanres/entities/hremp-state/hremp-state_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
hrdutyedu_zh_CN
from
'@locale/lanres/entities/hrduty-edu/hrduty-edu_zh_CN'
;
...
...
@@ -256,6 +257,7 @@ export default {
hromhierarchypurposeref
:
hromhierarchypurposeref_zh_CN
,
hromhierarchycat
:
hromhierarchycat_zh_CN
,
hrorgcontact
:
hrorgcontact_zh_CN
,
hrempstate
:
hrempstate_zh_CN
,
hremployee
:
hremployee_zh_CN
,
hrlegal
:
hrlegal_zh_CN
,
hrdutyedu
:
hrdutyedu_zh_CN
,
...
...
app_PIM/src/locale/lanres/entities/hremp-state/hremp-state_en_US.ts
0 → 100644
浏览文件 @
3a4a5f11
export
default
{
fields
:
{
createman
:
"建立人"
,
hrempstateid
:
"员工状态标识"
,
hrempstatename
:
"员工状态名称"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
jobstate
:
"在岗状态"
,
showorder
:
"排序号"
,
statecode
:
"状态编码"
,
},
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hremp-state/hremp-state_zh_CN.ts
0 → 100644
浏览文件 @
3a4a5f11
export
default
{
fields
:
{
createman
:
"建立人"
,
hrempstateid
:
"员工状态标识"
,
hrempstatename
:
"员工状态名称"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
jobstate
:
"在岗状态"
,
showorder
:
"排序号"
,
statecode
:
"状态编码"
,
},
};
\ No newline at end of file
app_PIM/src/mock/codelist/codelist.ts
浏览文件 @
3a4a5f11
...
...
@@ -630,8 +630,8 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"srfkey"
:
"CL_HR_0016"
,
"emptytext"
:
"未定义"
,
"codelisttype"
:
"dynamic"
,
"appdataentity"
:
""
,
"appdedataset"
:
""
,
"appdataentity"
:
"
HREmpState
"
,
"appdedataset"
:
"
FetchDefault
"
,
"items"
:
[]
},
{
...
...
app_PIM/src/mock/entity/hremp-states/hremp-states.ts
0 → 100644
浏览文件 @
3a4a5f11
此差异已折叠。
点击以展开。
app_PIM/src/mock/index.ts
浏览文件 @
3a4a5f11
...
...
@@ -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/hrorg-contacts/hrorg-contacts'
;
import
'./entity/hremp-states/hremp-states'
;
import
'./entity/hremployees/hremployees'
;
import
'./entity/hrlegals/hrlegals'
;
import
'./entity/hrduty-edus/hrduty-edus'
;
...
...
app_PIM/src/service/entity-service-register.ts
浏览文件 @
3a4a5f11
...
...
@@ -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
(
'hrorgcontact'
,
()
=>
import
(
'@/service/hrorg-contact/hrorg-contact-service'
));
this
.
allEntityService
.
set
(
'hrempstate'
,
()
=>
import
(
'@/service/hremp-state/hremp-state-service'
));
this
.
allEntityService
.
set
(
'hremployee'
,
()
=>
import
(
'@/service/hremployee/hremployee-service'
));
this
.
allEntityService
.
set
(
'hrlegal'
,
()
=>
import
(
'@/service/hrlegal/hrlegal-service'
));
this
.
allEntityService
.
set
(
'hrdutyedu'
,
()
=>
import
(
'@/service/hrduty-edu/hrduty-edu-service'
));
...
...
app_PIM/src/service/hremp-state/hremp-state-service-base.ts
0 → 100644
浏览文件 @
3a4a5f11
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 员工状态服务对象基类
*
* @export
* @class HREmpStateServiceBase
* @extends {EntityServie}
*/
export
default
class
HREmpStateServiceBase
extends
EntityService
{
/**
* Creates an instance of HREmpStateServiceBase.
*
* @param {*} [opts={}]
* @memberof HREmpStateServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof HREmpStateServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'hrempstate'
;
this
.
APPDEKEY
=
'hrempstateid'
;
this
.
APPDENAME
=
'hrempstates'
;
this
.
APPDETEXT
=
'hrempstatename'
;
this
.
APPNAME
=
'pim'
;
this
.
SYSTEMNAME
=
'ibizhumanresources'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrempstates/
${
context
.
hrempstate
}
/select`
,
isloading
);
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
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
(
`/hrempstates`
,
data
,
isloading
);
return
res
;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
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
(
`/hrempstates/
${
context
.
hrempstate
}
`
,
data
,
isloading
);
return
res
;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrempstates/
${
context
.
hrempstate
}
`
,
isloading
);
return
res
;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrempstates/
${
context
.
hrempstate
}
`
,
isloading
);
return
res
;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrempstates/getdraft`
,
isloading
);
res
.
data
.
hrempstate
=
data
.
hrempstate
;
return
res
;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrempstates/
${
context
.
hrempstate
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
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
(
`/hrempstates/
${
context
.
hrempstate
}
/save`
,
data
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HREmpStateServiceBase
*/
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
(
`/hrempstates/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
}
\ No newline at end of file
app_PIM/src/service/hremp-state/hremp-state-service.ts
0 → 100644
浏览文件 @
3a4a5f11
import
{
Http
,
Util
}
from
'@/utils'
;
import
HREmpStateServiceBase
from
'./hremp-state-service-base'
;
/**
* 员工状态服务对象
*
* @export
* @class HREmpStateService
* @extends {HREmpStateServiceBase}
*/
export
default
class
HREmpStateService
extends
HREmpStateServiceBase
{
/**
* Creates an instance of HREmpStateService.
*
* @param {*} [opts={}]
* @memberof HREmpStateService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_PIM/src/uiservice/hremp-state/hremp-state-ui-service-base.ts
0 → 100644
浏览文件 @
3a4a5f11
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
HREmpStateService
from
'@/service/hremp-state/hremp-state-service'
;
import
HREmpStateAuthService
from
'@/authservice/hremp-state/hremp-state-auth-service'
;
/**
* 员工状态UI服务对象基类
*
* @export
* @class HREmpStateUIServiceBase
*/
export
default
class
HREmpStateUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof HREmpStateUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof HREmpStateUIServiceBase
*/
public
dataService
:
HREmpStateService
=
new
HREmpStateService
();
/**
* 所有关联视图
*
* @memberof HREmpStateUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof HREmpStateUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof HREmpStateUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof HREmpStateUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof HREmpStateUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof HREmpStateUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of HREmpStateUIServiceBase.
*
* @param {*} [opts={}]
* @memberof HREmpStateUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
HREmpStateAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof HREmpStateUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof HREmpStateUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof HREmpStateUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof HREmpStateUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
hrempstate
:
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 HREmpStateUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof HREmpStateUIServiceBase
*/
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 HREmpStateUIServiceBase
*/
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 HREmpStateUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof HREmpStateUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
app_PIM/src/uiservice/hremp-state/hremp-state-ui-service.ts
0 → 100644
浏览文件 @
3a4a5f11
import
HREmpStateUIServiceBase
from
'./hremp-state-ui-service-base'
;
/**
* 员工状态UI服务对象
*
* @export
* @class HREmpStateUIService
*/
export
default
class
HREmpStateUIService
extends
HREmpStateUIServiceBase
{
/**
* Creates an instance of HREmpStateUIService.
*
* @param {*} [opts={}]
* @memberof HREmpStateUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_PIM/src/uiservice/ui-service-register.ts
浏览文件 @
3a4a5f11
...
...
@@ -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
(
'hrorgcontact'
,
()
=>
import
(
'@/uiservice/hrorg-contact/hrorg-contact-ui-service'
));
this
.
allUIService
.
set
(
'hrempstate'
,
()
=>
import
(
'@/uiservice/hremp-state/hremp-state-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
(
'hrdutyedu'
,
()
=>
import
(
'@/uiservice/hrduty-edu/hrduty-edu-ui-service'
));
...
...
humanresource-app/humanresource-app-pim/src/main/resources/application-pim-prod.yml
浏览文件 @
3a4a5f11
...
...
@@ -23,6 +23,10 @@ zuul:
path
:
/hrorgcontacts/**
serviceId
:
${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
stripPrefix
:
false
hrempstate
:
path
:
/hrempstates/**
serviceId
:
${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
stripPrefix
:
false
hremployee
:
path
:
/hremployees/**
serviceId
:
${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
...
...
humanresource-core/src/main/resources/permission/systemResource.json
浏览文件 @
3a4a5f11
...
...
@@ -36,6 +36,14 @@
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
},
{
"id"
:
"createman"
,
"name"
:
"创建人"
}]
}
,
{
"dename"
:
"HREmpState"
,
"delogicname"
:
"员工状态"
,
"sysmoudle"
:{
"id"
:
"HUMANRESOURCE"
,
"name"
:
"人力"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"DEFAULT"
}],
"deaction"
:[{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
},
{
"id"
:
"createman"
,
"name"
:
"创建人"
}]
}
,
{
"dename"
:
"HREmployee"
,
"delogicname"
:
"员工"
,
"sysmoudle"
:{
"id"
:
"HUMANRESOURCE"
,
"name"
:
"人力"
},
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录