Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
15e20b21
提交
15e20b21
编写于
8月 08, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
15e99894
变更
21
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
1863 行增加
和
278 行删除
+1863
-278
view-config.json
app_PIM/public/assets/json/view-config.json
+33
-3
hremployee_en_US.ts
...src/locale/lanres/entities/hremployee/hremployee_en_US.ts
+165
-37
hremployee_zh_CN.ts
...src/locale/lanres/entities/hremployee/hremployee_zh_CN.ts
+165
-37
viewconfig.ts
app_PIM/src/mock/viewconfig/viewconfig.ts
+27
-3
hremployee-edit-view-base.tsx
...source/hremployee-edit-view/hremployee-edit-view-base.tsx
+1
-1
hremployee-edit-view.html
...n-resource/hremployee-edit-view/hremployee-edit-view.html
+1
-4
hremployee-edit-view.vue
...an-resource/hremployee-edit-view/hremployee-edit-view.vue
+1
-1
hremployee-grid-view-base.tsx
...source/hremployee-grid-view/hremployee-grid-view-base.tsx
+28
-134
hremployee-tree-exp-view-base.tsx
...remployee-tree-exp-view/hremployee-tree-exp-view-base.tsx
+140
-1
hremployee-tree-exp-view.html
...ce/hremployee-tree-exp-view/hremployee-tree-exp-view.html
+3
-1
hremployee-tree-exp-view.vue
...rce/hremployee-tree-exp-view/hremployee-tree-exp-view.vue
+1
-1
page-register.ts
app_PIM/src/pages/ungroup/pim/page-register.ts
+2
-0
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+28
-0
state.ts
app_PIM/src/store/modules/view-action/state.ts
+2
-1
hremployee-ui-service-base.ts
...IM/src/uiservice/hremployee/hremployee-ui-service-base.ts
+221
-0
main-form-base.tsx
app_PIM/src/widgets/hremployee/main-form/main-form-base.tsx
+20
-0
main-form.html
app_PIM/src/widgets/hremployee/main-form/main-form.html
+1
-1
tree-001-treeview-service.ts
...hremployee/tree-001-treeview/tree-001-treeview-service.ts
+1019
-45
tree-exp-viewtreeexpbar-treeexpbar-base.tsx
...ar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.tsx
+1
-1
tree-exp-viewtreeexpbar-treeexpbar.html
...expbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.html
+1
-4
h2_table.xml
humanresource-core/src/main/resources/liquibase/h2_table.xml
+3
-3
未找到文件。
app_PIM/public/assets/json/view-config.json
浏览文件 @
15e20b21
...
...
@@ -159,6 +159,16 @@
"viewtag"
:
"1ed4d12d0ea81013bc2a4f19a2bb17e7"
,
"memo"
:
""
},
"hremployeev_001"
:
{
"title"
:
"快速新建"
,
"caption"
:
"快速新建"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeV_001"
,
"viewfilename"
:
"hremployee-v-001"
,
"viewtag"
:
"1fda62030d6149cb5ee6f088bc4f0aa7"
,
"memo"
:
""
},
"hroperationunitv_002"
:
{
"title"
:
"运营单位信息编辑"
,
"caption"
:
"运营单位"
,
...
...
@@ -349,6 +359,16 @@
"viewtag"
:
"5efdfaf722e7585dfd685922b16f7f88"
,
"memo"
:
""
},
"hremployeev_002"
:
{
"title"
:
"员工信息"
,
"caption"
:
"员工信息"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeV_002"
,
"viewfilename"
:
"hremployee-v-002"
,
"viewtag"
:
"621c665c0d1c18948c754c33f0bd86e8"
,
"memo"
:
"系统自动添加"
},
"hrdutyeditview"
:
{
"title"
:
"职务信息"
,
"caption"
:
"职务信息"
,
...
...
@@ -610,8 +630,8 @@
"memo"
:
""
},
"hremployeeeditview"
:
{
"title"
:
"员工
编辑视图
"
,
"caption"
:
"员工"
,
"title"
:
"员工
信息
"
,
"caption"
:
"员工
信息
"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeEditView"
,
...
...
@@ -620,7 +640,7 @@
"memo"
:
"系统自动添加"
},
"hremployeetreeexpview"
:
{
"title"
:
"员工
树导航编辑
"
,
"title"
:
"员工
信息
"
,
"caption"
:
"员工信息"
,
"viewtype"
:
"DETREEEXPVIEW"
,
"viewmodule"
:
"HumanResource"
,
...
...
@@ -679,6 +699,16 @@
"viewtag"
:
"c62ff001669cca98c0a2a7bc3383c775"
,
"memo"
:
""
},
"hremployeedashboardview"
:
{
"title"
:
"员工看板"
,
"caption"
:
"员工看板"
,
"viewtype"
:
"DEPORTALVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeDashboardView"
,
"viewfilename"
:
"hremployee-dashboard-view"
,
"viewtag"
:
"cb0f52a25a9ed151848e5f134307696c"
,
"memo"
:
""
},
"hrdistributionv_002"
:
{
"title"
:
"快速新建"
,
"caption"
:
"快速新建"
,
...
...
app_PIM/src/locale/lanres/entities/hremployee/hremployee_en_US.ts
浏览文件 @
15e20b21
...
...
@@ -42,6 +42,14 @@ export default {
nativeplace
:
"籍贯"
,
},
views
:
{
v_001
:
{
caption
:
"快速新建"
,
title
:
"快速新建"
,
},
v_002
:
{
caption
:
"员工信息"
,
title
:
"员工信息"
,
},
pickupgridview
:
{
caption
:
"员工"
,
title
:
"员工选择表格视图"
,
...
...
@@ -55,18 +63,46 @@ export default {
title
:
"员工表格视图"
,
},
editview
:
{
caption
:
"员工"
,
title
:
"员工
编辑视图
"
,
caption
:
"员工
信息
"
,
title
:
"员工
信息
"
,
},
treeexpview
:
{
caption
:
"员工信息"
,
title
:
"员工树导航编辑"
,
title
:
"员工信息"
,
},
dashboardview
:
{
caption
:
"员工看板"
,
title
:
"员工看板"
,
},
pickupview
:
{
caption
:
"员工"
,
title
:
"员工数据选择视图"
,
},
},
ef_001_form
:
{
details
:
{
group1
:
"基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"员工标识"
,
srfmajortext
:
"员工姓名"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
employeename
:
"员工姓名"
,
employeecode
:
"员工编号"
,
empstate
:
"员工状态"
,
certtype
:
"证件类型"
,
certnum
:
"证件号码"
,
organizationname
:
"单位"
,
organizationid
:
"组织ID"
,
employeeid
:
"员工标识"
,
},
uiactions
:
{
},
},
main_form
:
{
details
:
{
grouppanel1
:
"分组面板"
,
...
...
@@ -118,6 +154,56 @@ export default {
uiactions
:
{
},
},
if_001_form
:
{
details
:
{
grouppanel1
:
"分组面板"
,
grouppanel2
:
"first"
,
grouppanel4
:
"联系信息"
,
grouppanel3
:
"补充信息"
,
grouppanel5
:
"工作相关"
,
group1
:
"基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"员工标识"
,
srfmajortext
:
"员工姓名"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
employeename
:
"员工姓名"
,
employeecode
:
"员工编号"
,
empstate
:
"员工状态"
,
certtype
:
"证件类型"
,
certnum
:
"证件号码"
,
sex
:
"性别"
,
birthday
:
"出生日期"
,
age
:
"年龄"
,
nation
:
"民族"
,
organizationname
:
"单位"
,
photo
:
"照片"
,
mobile
:
"移动电话"
,
telephone
:
"固定电话"
,
email
:
"电子邮箱"
,
postaladdress
:
"通讯地址"
,
nativetype
:
"户口类型"
,
nativeplace
:
"籍贯"
,
marriage
:
"婚姻状况"
,
bloodtype
:
"血型"
,
nativeaddress
:
"户籍地址"
,
birthaddress
:
"出生地"
,
hobby
:
"爱好特长"
,
health
:
"健康状况"
,
political
:
"政治面貌"
,
politicaltime
:
"入党时间"
,
entrytype
:
"入职渠道"
,
startworktime
:
"参加工作时间"
,
startorgtime
:
"到本单位时间"
,
employeeid
:
"员工标识"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
employeecode
:
"员工编号"
,
...
...
@@ -136,40 +222,6 @@ export default {
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {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
:
""
,
},
tbitem19
:
{
caption
:
"Filter"
,
tip
:
"Filter"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"Save"
,
...
...
@@ -216,6 +268,70 @@ export default {
tip
:
"Help"
,
},
},
treeexpviewtoolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
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
:
""
,
},
tbitem19
:
{
caption
:
"Filter"
,
tip
:
"Filter"
,
},
},
listexpviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
@@ -236,9 +352,21 @@ export default {
},
tree_001_treeview
:
{
nodes
:
{
tr09
:
"考勤信息"
,
tr11
:
"证书信息"
,
tr10
:
"合同信息"
,
root
:
"默认根节点"
,
tr07
:
"档案信息"
,
tr04
:
"语言能力"
,
tr0
:
"员工信息"
,
tr05
:
"家庭情况"
,
tr01
:
"分配信息"
,
tr12
:
"奖励惩罚"
,
tr13
:
"培训记录"
,
tr03
:
"教育信息"
,
tr08
:
"绩效信息"
,
tr06
:
"工作履历"
,
tr14
:
"学术成果"
,
},
uiactions
:
{
},
...
...
app_PIM/src/locale/lanres/entities/hremployee/hremployee_zh_CN.ts
浏览文件 @
15e20b21
...
...
@@ -41,6 +41,14 @@ export default {
nativeplace
:
"籍贯"
,
},
views
:
{
v_001
:
{
caption
:
"快速新建"
,
title
:
"快速新建"
,
},
v_002
:
{
caption
:
"员工信息"
,
title
:
"员工信息"
,
},
pickupgridview
:
{
caption
:
"员工"
,
title
:
"员工选择表格视图"
,
...
...
@@ -54,18 +62,46 @@ export default {
title
:
"员工表格视图"
,
},
editview
:
{
caption
:
"员工"
,
title
:
"员工
编辑视图
"
,
caption
:
"员工
信息
"
,
title
:
"员工
信息
"
,
},
treeexpview
:
{
caption
:
"员工信息"
,
title
:
"员工树导航编辑"
,
title
:
"员工信息"
,
},
dashboardview
:
{
caption
:
"员工看板"
,
title
:
"员工看板"
,
},
pickupview
:
{
caption
:
"员工"
,
title
:
"员工数据选择视图"
,
},
},
ef_001_form
:
{
details
:
{
group1
:
"基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"员工标识"
,
srfmajortext
:
"员工姓名"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
employeename
:
"员工姓名"
,
employeecode
:
"员工编号"
,
empstate
:
"员工状态"
,
certtype
:
"证件类型"
,
certnum
:
"证件号码"
,
organizationname
:
"单位"
,
organizationid
:
"组织ID"
,
employeeid
:
"员工标识"
,
},
uiactions
:
{
},
},
main_form
:
{
details
:
{
grouppanel1
:
"分组面板"
,
...
...
@@ -117,6 +153,56 @@ export default {
uiactions
:
{
},
},
if_001_form
:
{
details
:
{
grouppanel1
:
"分组面板"
,
grouppanel2
:
"first"
,
grouppanel4
:
"联系信息"
,
grouppanel3
:
"补充信息"
,
grouppanel5
:
"工作相关"
,
group1
:
"基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"员工标识"
,
srfmajortext
:
"员工姓名"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
employeename
:
"员工姓名"
,
employeecode
:
"员工编号"
,
empstate
:
"员工状态"
,
certtype
:
"证件类型"
,
certnum
:
"证件号码"
,
sex
:
"性别"
,
birthday
:
"出生日期"
,
age
:
"年龄"
,
nation
:
"民族"
,
organizationname
:
"单位"
,
photo
:
"照片"
,
mobile
:
"移动电话"
,
telephone
:
"固定电话"
,
email
:
"电子邮箱"
,
postaladdress
:
"通讯地址"
,
nativetype
:
"户口类型"
,
nativeplace
:
"籍贯"
,
marriage
:
"婚姻状况"
,
bloodtype
:
"血型"
,
nativeaddress
:
"户籍地址"
,
birthaddress
:
"出生地"
,
hobby
:
"爱好特长"
,
health
:
"健康状况"
,
political
:
"政治面貌"
,
politicaltime
:
"入党时间"
,
entrytype
:
"入职渠道"
,
startworktime
:
"参加工作时间"
,
startorgtime
:
"到本单位时间"
,
employeeid
:
"员工标识"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
employeecode
:
"员工编号"
,
...
...
@@ -135,40 +221,6 @@ export default {
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"导出"
,
tip
:
"导出"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"过滤"
,
tip
:
"过滤"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
...
...
@@ -215,6 +267,70 @@ export default {
tip
:
"帮助"
,
},
},
treeexpviewtoolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"导出"
,
tip
:
"导出"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"过滤"
,
tip
:
"过滤"
,
},
},
listexpviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
@@ -235,9 +351,21 @@ export default {
},
tree_001_treeview
:
{
nodes
:
{
tr09
:
"考勤信息"
,
tr11
:
"证书信息"
,
tr10
:
"合同信息"
,
root
:
"默认根节点"
,
tr07
:
"档案信息"
,
tr04
:
"语言能力"
,
tr0
:
"员工信息"
,
tr05
:
"家庭情况"
,
tr01
:
"分配信息"
,
tr12
:
"奖励惩罚"
,
tr13
:
"培训记录"
,
tr03
:
"教育信息"
,
tr08
:
"绩效信息"
,
tr06
:
"工作履历"
,
tr14
:
"学术成果"
,
},
uiactions
:
{
},
...
...
app_PIM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
15e20b21
...
...
@@ -135,6 +135,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROMHierarchyCatMPickupView"
,
"viewtag"
:
"1ed4d12d0ea81013bc2a4f19a2bb17e7"
},
"hremployeev_001"
:
{
"title"
:
"快速新建"
,
"caption"
:
"快速新建"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeV_001"
,
"viewtag"
:
"1fda62030d6149cb5ee6f088bc4f0aa7"
},
"hroperationunitv_002"
:
{
"title"
:
"运营单位信息编辑"
,
"caption"
:
"运营单位"
,
...
...
@@ -287,6 +295,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HRPostV_004"
,
"viewtag"
:
"5efdfaf722e7585dfd685922b16f7f88"
},
"hremployeev_002"
:
{
"title"
:
"员工信息"
,
"caption"
:
"员工信息"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeV_002"
,
"viewtag"
:
"621c665c0d1c18948c754c33f0bd86e8"
},
"hrdutyeditview"
:
{
"title"
:
"职务信息"
,
"caption"
:
"职务信息"
,
...
...
@@ -496,15 +512,15 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"b9130f18de0b66cd31ecaddb5a841aae"
},
"hremployeeeditview"
:
{
"title"
:
"员工
编辑视图
"
,
"caption"
:
"员工"
,
"title"
:
"员工
信息
"
,
"caption"
:
"员工
信息
"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeEditView"
,
"viewtag"
:
"b932c0eb66409c638c29ee27ba4fda37"
},
"hremployeetreeexpview"
:
{
"title"
:
"员工
树导航编辑
"
,
"title"
:
"员工
信息
"
,
"caption"
:
"员工信息"
,
"viewtype"
:
"DETREEEXPVIEW"
,
"viewmodule"
:
"HumanResource"
,
...
...
@@ -551,6 +567,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROMHierarchyCatDashboardView"
,
"viewtag"
:
"c62ff001669cca98c0a2a7bc3383c775"
},
"hremployeedashboardview"
:
{
"title"
:
"员工看板"
,
"caption"
:
"员工看板"
,
"viewtype"
:
"DEPORTALVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeeDashboardView"
,
"viewtag"
:
"cb0f52a25a9ed151848e5f134307696c"
},
"hrdistributionv_002"
:
{
"title"
:
"快速新建"
,
"caption"
:
"快速新建"
,
...
...
app_PIM/src/pages/human-resource/hremployee-edit-view/hremployee-edit-view-base.tsx
浏览文件 @
15e20b21
...
...
@@ -6,7 +6,7 @@ import EditViewEngine from '@engine/view/edit-view-engine';
import
HREmployeeUIService
from
'@/uiservice/hremployee/hremployee-ui-service'
;
/**
* 员工
编辑视图
视图基类
* 员工
信息
视图基类
*
* @export
* @class HREmployeeEditViewBase
...
...
app_PIM/src/pages/human-resource/hremployee-edit-view/hremployee-edit-view.html
浏览文件 @
15e20b21
<studio-view-style2
viewName=
"hremployeeeditview"
viewTitle=
"员工编辑视图"
class=
'deeditview hremployee-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<studio-view-style2
viewName=
"hremployeeeditview"
viewTitle=
"员工信息"
class=
'deeditview hremployee-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click.apply(_self, arguments)"
/>
</template>
<view
_form
...
...
app_PIM/src/pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue
浏览文件 @
15e20b21
...
...
@@ -6,7 +6,7 @@ import { HREmployeeEditViewBase } from './hremployee-edit-view-base';
import view_form from '@widgets/hremployee/main-form/main-form.vue';
/**
* 员工
编辑视图
视图
* 员工
信息
视图
*
* @export
* @class HREmployeeEditView
...
...
app_PIM/src/pages/human-resource/hremployee-grid-view/hremployee-grid-view-base.tsx
浏览文件 @
15e20b21
...
...
@@ -103,10 +103,13 @@ export class HREmployeeGridViewBase extends GridViewBase {
* @memberof HREmployeeGridView
*/
public
toolBarModels
:
any
=
{
tbitem
3
:
{
name
:
'tbitem3'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
'
'
,
class
:
''
}
},
tbitem
1_ff_002
:
{
name
:
'tbitem1_ff_002'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-user-plus'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'FF_002'
,
target
:
'NONE
'
,
class
:
''
}
},
tbitem2
:
{
name
:
'tbitem2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem6
:
{
name
:
'tbitem6'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem7
:
{
name
:
'tbitem7'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem8
:
{
name
:
'tbitem8'
,
caption
:
'删除'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
,
class
:
''
}
},
...
...
@@ -170,20 +173,14 @@ export class HREmployeeGridViewBase extends GridViewBase {
* @memberof HREmployeeGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem
3
'
))
{
this
.
toolbar_tbitem
3
_click
(
null
,
''
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'tbitem
1_ff_002
'
))
{
this
.
toolbar_tbitem
1_ff_002
_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
toolbar_tbitem6_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
...
...
@@ -295,7 +292,7 @@ export class HREmployeeGridViewBase extends GridViewBase {
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem
3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem
1_ff_002
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -312,7 +309,8 @@ export class HREmployeeGridViewBase extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
const
curUIService
:
HREmployeeUIService
=
new
HREmployeeUIService
();
curUIService
.
HREmployee_FF_002
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
...
...
@@ -351,63 +349,7 @@ export class HREmployeeGridViewBase extends GridViewBase {
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem6_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -424,7 +366,7 @@ export class HREmployeeGridViewBase extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
...
...
@@ -564,7 +506,7 @@ export class HREmployeeGridViewBase extends GridViewBase {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'
editview'
,
parameterName
:
'editview
'
},
{
pathName
:
'
v_001'
,
parameterName
:
'v_001
'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
...
...
@@ -609,26 +551,6 @@ export class HREmployeeGridViewBase extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeGridViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
...
...
@@ -656,21 +578,7 @@ export class HREmployeeGridViewBase extends GridViewBase {
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -680,35 +588,21 @@ export class HREmployeeGridViewBase extends GridViewBase {
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeGridViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
hasOwnProperty
(
'newRow'
)
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
public
Copy
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeGridViewBase
*/
public
SaveRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
();
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
hremployee
:
args
[
0
].
hremployee
});
}
if
(
!
params
)
params
=
{};
Object
.
assign
(
params
,{
copymode
:
true
});
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
Object
.
assign
(
this
.
viewparams
,{
copymode
:
true
});
}
}
/**
...
...
app_PIM/src/pages/human-resource/hremployee-tree-exp-view/hremployee-tree-exp-view-base.tsx
浏览文件 @
15e20b21
...
...
@@ -6,7 +6,7 @@ import TreeExpViewEngine from '@engine/view/tree-exp-view-engine';
import
HREmployeeUIService
from
'@/uiservice/hremployee/hremployee-ui-service'
;
/**
* 员工
树导航编辑
视图基类
* 员工
信息
视图基类
*
* @export
* @class HREmployeeTreeExpViewBase
...
...
@@ -88,9 +88,28 @@ export class HREmployeeTreeExpViewBase extends TreeExpViewBase {
* @memberof HREmployeeTreeExpViewBase
*/
protected
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_treeexpbar
:
{
name
:
'treeexpbar'
,
type
:
'TREEEXPBAR'
},
};
/**
* 工具栏模型
*
* @type {*}
* @memberof HREmployeeTreeExpView
*/
public
toolBarModels
:
any
=
{
tbitem1_ff_003
:
{
name
:
'tbitem1_ff_003'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'FF_003'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem1_remove_sep
:
{
name
:
'tbitem1_remove_sep'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem1_remove
:
{
name
:
'tbitem1_remove'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem2
:
{
name
:
'tbitem2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem22
:
{
name
:
'tbitem22'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
,
class
:
''
}
},
};
/**
* 视图唯一标识
...
...
@@ -127,6 +146,25 @@ export class HREmployeeTreeExpViewBase extends TreeExpViewBase {
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeTreeExpViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_ff_003'
))
{
this
.
toolbar_tbitem1_ff_003_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_remove'
))
{
this
.
toolbar_tbitem1_remove_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem22'
))
{
this
.
toolbar_tbitem22_click
(
null
,
''
,
$event2
);
}
}
/**
* treeexpbar 部件 selectionchange 事件
*
...
...
@@ -160,6 +198,89 @@ export class HREmployeeTreeExpViewBase extends TreeExpViewBase {
this
.
engine
.
onCtrlEvent
(
'treeexpbar'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem1_ff_003_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
HREmployeeUIService
=
new
HREmployeeUIService
();
curUIService
.
HREmployee_FF_003
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem1_remove_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
HREmployeeUIService
=
new
HREmployeeUIService
();
curUIService
.
HREmployee_Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem22_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Exit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
* 打开新建数据视图
*
...
...
@@ -192,6 +313,24 @@ export class HREmployeeTreeExpViewBase extends TreeExpViewBase {
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeTreeExpViewBase
*/
public
Exit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
closeView
(
args
);
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
args
}],
'*'
);
}
}
/**
* 视图唯一标识
...
...
app_PIM/src/pages/human-resource/hremployee-tree-exp-view/hremployee-tree-exp-view.html
浏览文件 @
15e20b21
<studio-view-style2
viewName=
"hremployeetreeexpview"
viewTitle=
"员工
树导航编辑
"
class=
'detreeexpview hremployee-tree-exp-view'
>
<studio-view-style2
viewName=
"hremployeetreeexpview"
viewTitle=
"员工
信息
"
class=
'detreeexpview hremployee-tree-exp-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.apply(_self, arguments)"
/>
</template>
<view
_treeexpbar
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/human-resource/hremployee-tree-exp-view/hremployee-tree-exp-view.vue
浏览文件 @
15e20b21
...
...
@@ -6,7 +6,7 @@ import { HREmployeeTreeExpViewBase } from './hremployee-tree-exp-view-base';
import view_treeexpbar from '@widgets/hremployee/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.vue';
/**
* 员工
树导航编辑
视图
* 员工
信息
视图
*
* @export
* @class HREmployeeTreeExpView
...
...
app_PIM/src/pages/ungroup/pim/page-register.ts
浏览文件 @
15e20b21
...
...
@@ -47,6 +47,7 @@ export const PageComponents = {
Vue
.
component
(
'hrduty-dashboard-view'
,
()
=>
import
(
'@pages/human-resource/hrduty-dashboard-view/hrduty-dashboard-view.vue'
));
Vue
.
component
(
'hrorganization-edit-view'
,
()
=>
import
(
'@pages/base/hrorganization-edit-view/hrorganization-edit-view.vue'
));
Vue
.
component
(
'hromhierarchy-cat-grid-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue'
));
Vue
.
component
(
'hremployee-v-001'
,
()
=>
import
(
'@pages/human-resource/hremployee-v-001/hremployee-v-001.vue'
));
Vue
.
component
(
'hrpost-rel-v-001'
,
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'
));
Vue
.
component
(
'hrdistribution-v-002'
,
()
=>
import
(
'@pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.vue'
));
Vue
.
component
(
'hromhierarchy-pickup-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-pickup-view/hromhierarchy-pickup-view.vue'
));
...
...
@@ -67,6 +68,7 @@ export const PageComponents = {
Vue
.
component
(
'hromhierarchy-cat-edit-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue'
));
Vue
.
component
(
'hrorg-contact-edit-view'
,
()
=>
import
(
'@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'
));
Vue
.
component
(
'hromhierarchy-cat-v-002'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'
));
Vue
.
component
(
'hremployee-v-002'
,
()
=>
import
(
'@pages/human-resource/hremployee-v-002/hremployee-v-002.vue'
));
Vue
.
component
(
'hrdistribution-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view.vue'
));
Vue
.
component
(
'hremployee-edit-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue'
));
Vue
.
component
(
'hromhierarchy-pickup-grid-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-pickup-grid-view/hromhierarchy-pickup-grid-view.vue'
));
...
...
app_PIM/src/pages/ungroup/pim/router.ts
浏览文件 @
15e20b21
...
...
@@ -1031,6 +1031,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue'
),
},
{
path
:
'hremployees/:hremployee?/v_001/:v_001?'
,
meta
:
{
caption
:
'entities.hremployee.views.v_001.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'v_001'
,
parameterName
:
'v_001'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hremployee-v-001/hremployee-v-001.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrpostrels/:hrpostrel?/v_001/:v_001?'
,
meta
:
{
...
...
@@ -1416,6 +1430,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'
),
},
{
path
:
'hremployees/:hremployee?/v_002/:v_002?'
,
meta
:
{
caption
:
'entities.hremployee.views.v_002.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'v_002'
,
parameterName
:
'v_002'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hremployee-v-002/hremployee-v-002.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrdistributions/:hrdistribution?/gridview/:gridview?'
,
meta
:
{
...
...
app_PIM/src/store/modules/view-action/state.ts
浏览文件 @
15e20b21
...
...
@@ -484,7 +484,7 @@ export const viewstate: any = {
viewdatachange
:
false
,
refviews
:
[
'ba512ad6a392dc170b1959cebd038fb8'
,
'
b932c0eb66409c638c29ee27ba4fda3
7'
,
'
1fda62030d6149cb5ee6f088bc4f0aa
7'
,
],
},
{
...
...
@@ -589,6 +589,7 @@ export const viewstate: any = {
refviews
:
[
'6395cba44e6d6151f19e543b55d88845'
,
'b932c0eb66409c638c29ee27ba4fda37'
,
'621c665c0d1c18948c754c33f0bd86e8'
,
],
},
{
...
...
app_PIM/src/uiservice/hremployee/hremployee-ui-service-base.ts
浏览文件 @
15e20b21
...
...
@@ -89,11 +89,14 @@ export default class HREmployeeUIServiceBase extends UIService {
* @memberof HREmployeeUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_001'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_002'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'pickupgridview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'listexpview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'treeexpview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'dashboardview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
'PICKUPVIEW:'
,{
viewname
:
'pickupview'
,
srfappde
:
'hremployees'
});
}
...
...
@@ -113,6 +116,224 @@ export default class HREmployeeUIServiceBase extends UIService {
public
initDeMainStateOPPrivsMap
(){
}
/**
* 删除并关闭
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
HREmployee_Remove
(
args
:
any
[],
context
:
any
=
{},
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
){
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
hremployee
:
'%hremployee%'
});
Object
.
assign
(
params
,
{
employeeid
:
'%hremployee%'
});
Object
.
assign
(
params
,
{
employeename
:
'%employeename%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
// 直接调实体服务需要转换的数据
if
(
context
&&
context
.
srfsessionid
){
context
.
srfsessionkey
=
context
.
srfsessionid
;
delete
context
.
srfsessionid
;
}
actionContext
.
closeView
(
null
);
const
backend
=
()
=>
{
const
curService
:
HREmployeeService
=
new
HREmployeeService
();
curService
.
Remove
(
context
,
data
,
true
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
response
.
message
});
return
;
}
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'删除并关闭成功!'
});
const
_this
:
any
=
actionContext
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
return
response
;
}).
catch
((
response
:
any
)
=>
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'系统异常!'
});
return
;
}
if
(
response
.
status
===
401
)
{
return
;
}
return
response
;
});
};
backend
();
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
HREmployee_FF_003
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
hremployee
:
'%hremployee%'
});
Object
.
assign
(
params
,
{
employeeid
:
'%hremployee%'
});
Object
.
assign
(
params
,
{
employeename
:
'%employeename%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
return
null
;
}
openIndexViewTab
(
data
);
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
HREmployee_FF_002
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'NONE'
;
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'v_001'
,
parameterName
:
'v_001'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
if
(
this
.
HREmployee_FF_001
&&
this
.
HREmployee_FF_001
instanceof
Function
)
{
this
.
HREmployee_FF_001
([
data
],
context
,
params
,
$event
,
xData
,
actionContext
);
}
return
null
;
}
openIndexViewTab
(
data
);
}
/**
* 打开主信息
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
HREmployee_FF_001
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
hremployee
:
'%hremployee%'
});
Object
.
assign
(
params
,
{
employeeid
:
'%hremployee%'
});
Object
.
assign
(
params
,
{
employeename
:
'%employeename%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'treeexpview'
,
parameterName
:
'treeexpview'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
return
null
;
}
openIndexViewTab
(
data
);
}
/**
* 获取指定数据的重定向页面
...
...
app_PIM/src/widgets/hremployee/main-form/main-form-base.tsx
浏览文件 @
15e20b21
...
...
@@ -122,6 +122,26 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
employeename
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'员工姓名 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'员工姓名 值不能为空'
,
trigger
:
'blur'
},
],
employeecode
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'员工编号 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'员工编号 值不能为空'
,
trigger
:
'blur'
},
],
empstate
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'员工状态 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'员工状态 值不能为空'
,
trigger
:
'blur'
},
],
certtype
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'证件类型 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'证件类型 值不能为空'
,
trigger
:
'blur'
},
],
certnum
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'证件号码 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'证件号码 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
...
...
app_PIM/src/widgets/hremployee/main-form/main-form.html
浏览文件 @
15e20b21
...
...
@@ -153,7 +153,7 @@
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.organizationname.visible"
:style=
"{}"
:lg=
"{ span:
24, offset: 0 }"
:xl=
"{ span: 24
, offset: 0 }"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.organizationname.visible"
:style=
"{}"
:lg=
"{ span:
16, offset: 0 }"
:xl=
"{ span: 16
, offset: 0 }"
>
<app-form-item
name=
'organizationname'
:itemRules=
"this.rules.organizationname"
class=
''
:caption=
"$t('entities.hremployee.main_form.details.organizationname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.organizationname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
...
...
app_PIM/src/widgets/hremployee/tree-001-treeview/tree-001-treeview-service.ts
浏览文件 @
15e20b21
...
...
@@ -62,6 +62,33 @@ export default class TREE_001Service extends ControlService {
*/
public
TREENODE_SEPARATOR
:
string
=
';'
;
/**
* 考勤信息节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR09
:
string
=
'tr09'
;
/**
* 证书信息节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR11
:
string
=
'tr11'
;
/**
* 合同信息节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR10
:
string
=
'tr10'
;
/**
* 默认根节点节点分隔符号
*
...
...
@@ -71,6 +98,24 @@ export default class TREE_001Service extends ControlService {
*/
public
TREENODE_ROOT
:
string
=
'ROOT'
;
/**
* 档案信息节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR07
:
string
=
'tr07'
;
/**
* 语言能力节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR04
:
string
=
'tr04'
;
/**
* 员工信息节点分隔符号
*
...
...
@@ -80,6 +125,15 @@ export default class TREE_001Service extends ControlService {
*/
public
TREENODE_TR0
:
string
=
'tr0'
;
/**
* 家庭情况节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR05
:
string
=
'tr05'
;
/**
* 分配信息节点分隔符号
*
...
...
@@ -89,6 +143,60 @@ export default class TREE_001Service extends ControlService {
*/
public
TREENODE_TR01
:
string
=
'tr01'
;
/**
* 奖励惩罚节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR12
:
string
=
'tr12'
;
/**
* 培训记录节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR13
:
string
=
'tr13'
;
/**
* 教育信息节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR03
:
string
=
'tr03'
;
/**
* 绩效信息节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR08
:
string
=
'tr08'
;
/**
* 工作履历节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR06
:
string
=
'tr06'
;
/**
* 学术成果节点分隔符号
*
* @public
* @type {string}
* @memberof TREE_001Service
*/
public
TREENODE_TR14
:
string
=
'tr14'
;
/**
* 获取节点数据
*
...
...
@@ -163,23 +271,71 @@ export default class TREE_001Service extends ControlService {
}
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR09
))
{
await
this
.
fillTr09NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR11
))
{
await
this
.
fillTr11NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR10
))
{
await
this
.
fillTr10NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_ROOT
))
{
await
this
.
fillRootNodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR07
))
{
await
this
.
fillTr07NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR04
))
{
await
this
.
fillTr04NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR0
))
{
await
this
.
fillTr0NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR05
))
{
await
this
.
fillTr05NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR01
))
{
await
this
.
fillTr01NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR12
))
{
await
this
.
fillTr12NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR13
))
{
await
this
.
fillTr13NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR03
))
{
await
this
.
fillTr03NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR08
))
{
await
this
.
fillTr08NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR06
))
{
await
this
.
fillTr06NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TR14
))
{
await
this
.
fillTr14NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
return
Promise
.
resolve
({
status
:
500
,
data
:
{
title
:
'失败'
,
message
:
`树节点
${
strTreeNodeId
}
标识无效`
}
});
}
/**
* 填充 树视图节点[
默认根节点
]
* 填充 树视图节点[
考勤信息
]
*
* @public
* @param {any{}} context
...
...
@@ -192,25 +348,26 @@ export default class TREE_001Service extends ControlService {
* @memberof TREE_001Service
*/
@
Errorlog
public
fill
Root
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
public
fill
Tr09
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.
root
'
)
});
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.
tr09
'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'
ROOT
'
;
let
strNodeId
:
string
=
'
tr09
'
;
Object
.
assign
(
treeNode
,
{
srfkey
:
'root'
});
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
'root'
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
fals
e
});
Object
.
assign
(
treeNode
,
{
leaf
:
tru
e
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
...
...
@@ -219,7 +376,7 @@ export default class TREE_001Service extends ControlService {
}
/**
* 填充 树视图节点[
默认根节点
]子节点
* 填充 树视图节点[
考勤信息
]子节点
*
* @public
* @param {any{}} context
...
...
@@ -229,34 +386,14 @@ export default class TREE_001Service extends ControlService {
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fill
Root
NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
public
async
fill
Tr09
NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
// 填充员工信息
let
Tr0RsNavContext
:
any
=
{};
let
Tr0RsNavParams
:
any
=
{};
let
Tr0RsParams
:
any
=
{};
await
this
.
fillTr0Nodes
(
context
,
filter
,
list
,
Tr0RsNavContext
,
Tr0RsNavParams
,
Tr0RsParams
);
// 填充分配信息
let
Tr01RsNavContext
:
any
=
{};
let
Tr01RsNavParams
:
any
=
{};
let
Tr01RsParams
:
any
=
{};
await
this
.
fillTr01Nodes
(
context
,
filter
,
list
,
Tr01RsNavContext
,
Tr01RsNavParams
,
Tr01RsParams
);
}
else
{
// 填充员工信息
let
Tr0RsNavContext
:
any
=
{};
let
Tr0RsNavParams
:
any
=
{};
let
Tr0RsParams
:
any
=
{};
await
this
.
fillTr0Nodes
(
context
,
filter
,
list
,
Tr0RsNavContext
,
Tr0RsNavParams
,
Tr0RsParams
);
// 填充分配信息
let
Tr01RsNavContext
:
any
=
{};
let
Tr01RsNavParams
:
any
=
{};
let
Tr01RsParams
:
any
=
{};
await
this
.
fillTr01Nodes
(
context
,
filter
,
list
,
Tr01RsNavContext
,
Tr01RsNavParams
,
Tr01RsParams
);
}
}
/**
* 填充 树视图节点[
员工
信息]
* 填充 树视图节点[
证书
信息]
*
* @public
* @param {any{}} context
...
...
@@ -269,16 +406,16 @@ export default class TREE_001Service extends ControlService {
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr
0
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
public
fillTr
11
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr
0
'
)
});
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr
11
'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr
0
'
;
let
strNodeId
:
string
=
'tr
11
'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
...
...
@@ -287,8 +424,6 @@ export default class TREE_001Service extends ControlService {
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
iconcls
:
'fa fa-user'
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
...
...
@@ -299,7 +434,7 @@ export default class TREE_001Service extends ControlService {
}
/**
* 填充 树视图节点[
员工
信息]子节点
* 填充 树视图节点[
证书
信息]子节点
*
* @public
* @param {any{}} context
...
...
@@ -309,14 +444,14 @@ export default class TREE_001Service extends ControlService {
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr
0
NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
public
async
fillTr
11
NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[
分配
信息]
* 填充 树视图节点[
合同
信息]
*
* @public
* @param {any{}} context
...
...
@@ -329,16 +464,16 @@ export default class TREE_001Service extends ControlService {
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr
01
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
public
fillTr
10
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr
01
'
)
});
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr
10
'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr
01
'
;
let
strNodeId
:
string
=
'tr
10
'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
...
...
@@ -347,8 +482,6 @@ export default class TREE_001Service extends ControlService {
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
iconcls
:
'fa fa-qrcode'
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
...
...
@@ -359,7 +492,7 @@ export default class TREE_001Service extends ControlService {
}
/**
* 填充 树视图节点[
分配
信息]子节点
* 填充 树视图节点[
合同
信息]子节点
*
* @public
* @param {any{}} context
...
...
@@ -369,7 +502,848 @@ export default class TREE_001Service extends ControlService {
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr01NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
public
async
fillTr10NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[默认根节点]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillRootNodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.root'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'ROOT'
;
Object
.
assign
(
treeNode
,
{
srfkey
:
'root'
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
'root'
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
false
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[默认根节点]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillRootNodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
// 填充员工信息
let
Tr0RsNavContext
:
any
=
{};
let
Tr0RsNavParams
:
any
=
{};
let
Tr0RsParams
:
any
=
{};
await
this
.
fillTr0Nodes
(
context
,
filter
,
list
,
Tr0RsNavContext
,
Tr0RsNavParams
,
Tr0RsParams
);
// 填充分配信息
let
Tr01RsNavContext
:
any
=
{};
let
Tr01RsNavParams
:
any
=
{};
let
Tr01RsParams
:
any
=
{};
await
this
.
fillTr01Nodes
(
context
,
filter
,
list
,
Tr01RsNavContext
,
Tr01RsNavParams
,
Tr01RsParams
);
// 填充教育信息
let
Tr03RsNavContext
:
any
=
{};
let
Tr03RsNavParams
:
any
=
{};
let
Tr03RsParams
:
any
=
{};
await
this
.
fillTr03Nodes
(
context
,
filter
,
list
,
Tr03RsNavContext
,
Tr03RsNavParams
,
Tr03RsParams
);
// 填充语言能力
let
Tr04RsNavContext
:
any
=
{};
let
Tr04RsNavParams
:
any
=
{};
let
Tr04RsParams
:
any
=
{};
await
this
.
fillTr04Nodes
(
context
,
filter
,
list
,
Tr04RsNavContext
,
Tr04RsNavParams
,
Tr04RsParams
);
// 填充家庭情况
let
Tr05RsNavContext
:
any
=
{};
let
Tr05RsNavParams
:
any
=
{};
let
Tr05RsParams
:
any
=
{};
await
this
.
fillTr05Nodes
(
context
,
filter
,
list
,
Tr05RsNavContext
,
Tr05RsNavParams
,
Tr05RsParams
);
// 填充工作履历
let
Tr06RsNavContext
:
any
=
{};
let
Tr06RsNavParams
:
any
=
{};
let
Tr06RsParams
:
any
=
{};
await
this
.
fillTr06Nodes
(
context
,
filter
,
list
,
Tr06RsNavContext
,
Tr06RsNavParams
,
Tr06RsParams
);
// 填充档案信息
let
Tr07RsNavContext
:
any
=
{};
let
Tr07RsNavParams
:
any
=
{};
let
Tr07RsParams
:
any
=
{};
await
this
.
fillTr07Nodes
(
context
,
filter
,
list
,
Tr07RsNavContext
,
Tr07RsNavParams
,
Tr07RsParams
);
// 填充绩效信息
let
Tr08RsNavContext
:
any
=
{};
let
Tr08RsNavParams
:
any
=
{};
let
Tr08RsParams
:
any
=
{};
await
this
.
fillTr08Nodes
(
context
,
filter
,
list
,
Tr08RsNavContext
,
Tr08RsNavParams
,
Tr08RsParams
);
// 填充考勤信息
let
Tr09RsNavContext
:
any
=
{};
let
Tr09RsNavParams
:
any
=
{};
let
Tr09RsParams
:
any
=
{};
await
this
.
fillTr09Nodes
(
context
,
filter
,
list
,
Tr09RsNavContext
,
Tr09RsNavParams
,
Tr09RsParams
);
// 填充合同信息
let
Tr10RsNavContext
:
any
=
{};
let
Tr10RsNavParams
:
any
=
{};
let
Tr10RsParams
:
any
=
{};
await
this
.
fillTr10Nodes
(
context
,
filter
,
list
,
Tr10RsNavContext
,
Tr10RsNavParams
,
Tr10RsParams
);
// 填充证书信息
let
Tr11RsNavContext
:
any
=
{};
let
Tr11RsNavParams
:
any
=
{};
let
Tr11RsParams
:
any
=
{};
await
this
.
fillTr11Nodes
(
context
,
filter
,
list
,
Tr11RsNavContext
,
Tr11RsNavParams
,
Tr11RsParams
);
// 填充奖励惩罚
let
Tr12RsNavContext
:
any
=
{};
let
Tr12RsNavParams
:
any
=
{};
let
Tr12RsParams
:
any
=
{};
await
this
.
fillTr12Nodes
(
context
,
filter
,
list
,
Tr12RsNavContext
,
Tr12RsNavParams
,
Tr12RsParams
);
// 填充培训记录
let
Tr13RsNavContext
:
any
=
{};
let
Tr13RsNavParams
:
any
=
{};
let
Tr13RsParams
:
any
=
{};
await
this
.
fillTr13Nodes
(
context
,
filter
,
list
,
Tr13RsNavContext
,
Tr13RsNavParams
,
Tr13RsParams
);
// 填充学术成果
let
Tr14RsNavContext
:
any
=
{};
let
Tr14RsNavParams
:
any
=
{};
let
Tr14RsParams
:
any
=
{};
await
this
.
fillTr14Nodes
(
context
,
filter
,
list
,
Tr14RsNavContext
,
Tr14RsNavParams
,
Tr14RsParams
);
}
else
{
// 填充员工信息
let
Tr0RsNavContext
:
any
=
{};
let
Tr0RsNavParams
:
any
=
{};
let
Tr0RsParams
:
any
=
{};
await
this
.
fillTr0Nodes
(
context
,
filter
,
list
,
Tr0RsNavContext
,
Tr0RsNavParams
,
Tr0RsParams
);
// 填充分配信息
let
Tr01RsNavContext
:
any
=
{};
let
Tr01RsNavParams
:
any
=
{};
let
Tr01RsParams
:
any
=
{};
await
this
.
fillTr01Nodes
(
context
,
filter
,
list
,
Tr01RsNavContext
,
Tr01RsNavParams
,
Tr01RsParams
);
// 填充教育信息
let
Tr03RsNavContext
:
any
=
{};
let
Tr03RsNavParams
:
any
=
{};
let
Tr03RsParams
:
any
=
{};
await
this
.
fillTr03Nodes
(
context
,
filter
,
list
,
Tr03RsNavContext
,
Tr03RsNavParams
,
Tr03RsParams
);
// 填充语言能力
let
Tr04RsNavContext
:
any
=
{};
let
Tr04RsNavParams
:
any
=
{};
let
Tr04RsParams
:
any
=
{};
await
this
.
fillTr04Nodes
(
context
,
filter
,
list
,
Tr04RsNavContext
,
Tr04RsNavParams
,
Tr04RsParams
);
// 填充家庭情况
let
Tr05RsNavContext
:
any
=
{};
let
Tr05RsNavParams
:
any
=
{};
let
Tr05RsParams
:
any
=
{};
await
this
.
fillTr05Nodes
(
context
,
filter
,
list
,
Tr05RsNavContext
,
Tr05RsNavParams
,
Tr05RsParams
);
// 填充工作履历
let
Tr06RsNavContext
:
any
=
{};
let
Tr06RsNavParams
:
any
=
{};
let
Tr06RsParams
:
any
=
{};
await
this
.
fillTr06Nodes
(
context
,
filter
,
list
,
Tr06RsNavContext
,
Tr06RsNavParams
,
Tr06RsParams
);
// 填充档案信息
let
Tr07RsNavContext
:
any
=
{};
let
Tr07RsNavParams
:
any
=
{};
let
Tr07RsParams
:
any
=
{};
await
this
.
fillTr07Nodes
(
context
,
filter
,
list
,
Tr07RsNavContext
,
Tr07RsNavParams
,
Tr07RsParams
);
// 填充绩效信息
let
Tr08RsNavContext
:
any
=
{};
let
Tr08RsNavParams
:
any
=
{};
let
Tr08RsParams
:
any
=
{};
await
this
.
fillTr08Nodes
(
context
,
filter
,
list
,
Tr08RsNavContext
,
Tr08RsNavParams
,
Tr08RsParams
);
// 填充考勤信息
let
Tr09RsNavContext
:
any
=
{};
let
Tr09RsNavParams
:
any
=
{};
let
Tr09RsParams
:
any
=
{};
await
this
.
fillTr09Nodes
(
context
,
filter
,
list
,
Tr09RsNavContext
,
Tr09RsNavParams
,
Tr09RsParams
);
// 填充合同信息
let
Tr10RsNavContext
:
any
=
{};
let
Tr10RsNavParams
:
any
=
{};
let
Tr10RsParams
:
any
=
{};
await
this
.
fillTr10Nodes
(
context
,
filter
,
list
,
Tr10RsNavContext
,
Tr10RsNavParams
,
Tr10RsParams
);
// 填充证书信息
let
Tr11RsNavContext
:
any
=
{};
let
Tr11RsNavParams
:
any
=
{};
let
Tr11RsParams
:
any
=
{};
await
this
.
fillTr11Nodes
(
context
,
filter
,
list
,
Tr11RsNavContext
,
Tr11RsNavParams
,
Tr11RsParams
);
// 填充奖励惩罚
let
Tr12RsNavContext
:
any
=
{};
let
Tr12RsNavParams
:
any
=
{};
let
Tr12RsParams
:
any
=
{};
await
this
.
fillTr12Nodes
(
context
,
filter
,
list
,
Tr12RsNavContext
,
Tr12RsNavParams
,
Tr12RsParams
);
// 填充培训记录
let
Tr13RsNavContext
:
any
=
{};
let
Tr13RsNavParams
:
any
=
{};
let
Tr13RsParams
:
any
=
{};
await
this
.
fillTr13Nodes
(
context
,
filter
,
list
,
Tr13RsNavContext
,
Tr13RsNavParams
,
Tr13RsParams
);
// 填充学术成果
let
Tr14RsNavContext
:
any
=
{};
let
Tr14RsNavParams
:
any
=
{};
let
Tr14RsParams
:
any
=
{};
await
this
.
fillTr14Nodes
(
context
,
filter
,
list
,
Tr14RsNavContext
,
Tr14RsNavParams
,
Tr14RsParams
);
}
}
/**
* 填充 树视图节点[档案信息]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr07Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr07'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr07'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[档案信息]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr07NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[语言能力]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr04Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr04'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr04'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[语言能力]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr04NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[员工信息]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr0Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr0'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr0'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
iconcls
:
'fa fa-user'
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[员工信息]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr0NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[家庭情况]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr05Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr05'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr05'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[家庭情况]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr05NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[分配信息]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr01Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr01'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr01'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
iconcls
:
'fa fa-qrcode'
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[分配信息]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr01NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[奖励惩罚]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr12Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr12'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr12'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[奖励惩罚]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr12NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[培训记录]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr13Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr13'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr13'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[培训记录]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr13NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[教育信息]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr03Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr03'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr03'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
iconcls
:
'fa fa-mortar-board'
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[教育信息]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr03NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[绩效信息]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr08Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr08'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr08'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[绩效信息]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr08NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[工作履历]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr06Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr06'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr06'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[工作履历]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr06NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[学术成果]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
fillTr14Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
i18n
.
t
(
'entities.hremployee.tree_001_treeview.nodes.tr14'
)
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'tr14'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[学术成果]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TREE_001Service
*/
@
Errorlog
public
async
fillTr14NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
...
...
app_PIM/src/widgets/hremployee/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.tsx
浏览文件 @
15e20b21
...
...
@@ -205,7 +205,7 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
}
if
(
Object
.
is
(
expmode
,
'TR0'
))
{
return
{
viewname
:
'hremployee-
edit-view
'
,
viewname
:
'hremployee-
v-002
'
,
parentdata
:
{},
deKeyField
:
'hremployee'
};
...
...
app_PIM/src/widgets/hremployee/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.html
浏览文件 @
15e20b21
<split
id=
"treeexpviewtreeexpbar"
class=
'app-tree-exp-bar'
v-model=
"split"
mode=
"horizontal"
@
on-move-end=
"onSplitChange.apply(_self, arguments)"
>
<div
class=
"app-tree-exp-bar-left show-title-bar"
slot=
'left'
>
<div
class=
'tree-exp-bar-header'
>
<div
class=
"tree-exp-bar-title"
>
员工信息
</div>
</div>
<div
class=
"app-tree-exp-bar-left"
slot=
'left'
>
<div
class=
'tree-exp-content'
>
<view
_treeexpbar_tree
:viewState=
"viewState"
...
...
humanresource-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
15e20b21
...
...
@@ -178,7 +178,7 @@
<!--输出实体[HREMPLOYEE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hremployee-1
15
-8"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hremployee-1
62
-8"
>
<createTable
tableName=
"EMPLOYEE"
>
<column
name=
"EMPLOYEENAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
@@ -593,10 +593,10 @@
</changeSet>
<!--输出实体[HREMPSTATE]外键关系 -->
<!--输出实体[HREMPLOYEE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-1
15
-26"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-1
62
-26"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGANIZATIONID"
baseTableName=
"EMPLOYEE"
constraintName=
"DER1N_EMPLOYEE_ORGANIZATION_OR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-1
15
-27"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-1
62
-27"
>
<addForeignKeyConstraint
baseColumnNames=
"EMPSTATE"
baseTableName=
"EMPLOYEE"
constraintName=
"DER1N_HREMPLOYEE_HREMPSTATE_EM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HREMPSTATEID"
referencedTableName=
"T_HREMPSTATE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRLEAVE]外键关系 -->
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录