Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
4481665d
提交
4481665d
编写于
8月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
e809c7b9
变更
51
显示空白字符变更
内嵌
并排
正在显示
51 个修改的文件
包含
2685 行增加
和
815 行删除
+2685
-815
view-config.json
app_PIM/public/assets/json/view-config.json
+20
-0
hrpost-rel.ts
app_PIM/src/interface/entity/hrpost-rel.ts
+1
-1
hrdistribution_en_US.ts
...le/lanres/entities/hrdistribution/hrdistribution_en_US.ts
+38
-34
hrdistribution_zh_CN.ts
...le/lanres/entities/hrdistribution/hrdistribution_zh_CN.ts
+38
-34
hrpost-rel_en_US.ts
...src/locale/lanres/entities/hrpost-rel/hrpost-rel_en_US.ts
+42
-38
hrpost-rel_zh_CN.ts
...src/locale/lanres/entities/hrpost-rel/hrpost-rel_zh_CN.ts
+42
-38
hrpost_en_US.ts
app_PIM/src/locale/lanres/entities/hrpost/hrpost_en_US.ts
+80
-52
hrpost_zh_CN.ts
app_PIM/src/locale/lanres/entities/hrpost/hrpost_zh_CN.ts
+75
-47
viewconfig.ts
app_PIM/src/mock/viewconfig/viewconfig.ts
+16
-0
hrdistribution-grid-view.html
...ce/hrdistribution-grid-view/hrdistribution-grid-view.html
+0
-3
hrdistribution-v-001-base.tsx
...source/hrdistribution-v-001/hrdistribution-v-001-base.tsx
+276
-0
hrdistribution-v-001.html
...n-resource/hrdistribution-v-001/hrdistribution-v-001.html
+28
-0
hrdistribution-v-001.vue
...an-resource/hrdistribution-v-001/hrdistribution-v-001.vue
+22
-0
hrpost-grid-view-base.tsx
...human-resource/hrpost-grid-view/hrpost-grid-view-base.tsx
+47
-141
hrpost-rel-v-001-base.tsx
...human-resource/hrpost-rel-v-001/hrpost-rel-v-001-base.tsx
+276
-0
hrpost-rel-v-001.html
...ges/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.html
+28
-0
hrpost-rel-v-001.vue
...ages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue
+22
-0
hrpost-v-002-base.tsx
...c/pages/human-resource/hrpost-v-002/hrpost-v-002-base.tsx
+47
-141
hrpost-v-003-base.tsx
...c/pages/human-resource/hrpost-v-003/hrpost-v-003-base.tsx
+47
-141
hrpost-v-004-base.tsx
...c/pages/human-resource/hrpost-v-004/hrpost-v-004-base.tsx
+165
-0
hrpost-v-004.html
...M/src/pages/human-resource/hrpost-v-004/hrpost-v-004.html
+24
-0
hrpost-v-004.vue
...IM/src/pages/human-resource/hrpost-v-004/hrpost-v-004.vue
+22
-0
page-register.ts
app_PIM/src/pages/ungroup/pim/page-register.ts
+4
-1
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+42
-0
state.ts
app_PIM/src/store/modules/view-action/state.ts
+38
-3
hrdistribution-ui-service-base.ts
...iservice/hrdistribution/hrdistribution-ui-service-base.ts
+1
-0
hrpost-rel-ui-service-base.ts
...IM/src/uiservice/hrpost-rel/hrpost-rel-ui-service-base.ts
+1
-0
main-grid-base.tsx
...M/src/widgets/hrdistribution/main-grid/main-grid-base.tsx
+8
-0
main-grid-model.ts
...M/src/widgets/hrdistribution/main-grid/main-grid-model.ts
+0
-1
main-grid.html
app_PIM/src/widgets/hrdistribution/main-grid/main-grid.html
+0
-35
main-grid-base.tsx
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid-base.tsx
+20
-20
main-grid-model.ts
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid-model.ts
+11
-11
main-grid.html
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid.html
+12
-49
board-001-dashboard.html
...dgets/hrpost/board-001-dashboard/board-001-dashboard.html
+28
-0
board-001-dashboard.vue
...idgets/hrpost/board-001-dashboard/board-001-dashboard.vue
+2
-0
if-001-form-base.tsx
app_PIM/src/widgets/hrpost/if-001-form/if-001-form-base.tsx
+169
-0
if-001-form-model.ts
app_PIM/src/widgets/hrpost/if-001-form/if-001-form-model.ts
+111
-0
if-001-form-service.ts
...PIM/src/widgets/hrpost/if-001-form/if-001-form-service.ts
+393
-0
if-001-form.html
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.html
+165
-0
if-001-form.vue
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.vue
+22
-0
part-v-001-portlet-base.tsx
...ets/hrpost/part-v-001-portlet/part-v-001-portlet-base.tsx
+166
-0
part-v-001-portlet-model.ts
...ets/hrpost/part-v-001-portlet/part-v-001-portlet-model.ts
+67
-0
part-v-001-portlet-service.ts
...s/hrpost/part-v-001-portlet/part-v-001-portlet-service.ts
+11
-0
part-v-001-portlet.html
...widgets/hrpost/part-v-001-portlet/part-v-001-portlet.html
+5
-0
part-v-001-portlet.vue
.../widgets/hrpost/part-v-001-portlet/part-v-001-portlet.vue
+22
-0
v-006tabexppanel-tabexppanel.html
...tabexppanel-tabexppanel/v-006tabexppanel-tabexppanel.html
+6
-0
config.xml
config.xml
+5
-5
Dockerfile
...urce-app/humanresource-app-pim/src/main/docker/Dockerfile
+1
-1
humanresource-app-pim.yaml
...source-app-pim/src/main/docker/humanresource-app-pim.yaml
+17
-1
Dockerfile
...r/humanresource-provider-hrapi/src/main/docker/Dockerfile
+1
-1
humanresource-provider-hrapi.yaml
...r-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
+1
-17
未找到文件。
app_PIM/public/assets/json/view-config.json
浏览文件 @
4481665d
...
...
@@ -199,6 +199,16 @@
"viewtag"
:
"4a61d63445d504cab11cf5f45536b314"
,
"memo"
:
"系统自动添加"
},
"hrpostrelv_001"
:
{
"title"
:
"职位关系表格视图"
,
"caption"
:
"直接上级职位"
,
"viewtype"
:
"DEGRIDVIEW9"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostRelV_001"
,
"viewfilename"
:
"hrpost-rel-v-001"
,
"viewtag"
:
"4f567c340cbb4271d44543b278d29d0f"
,
"memo"
:
""
},
"hrorgcontactgridview"
:
{
"title"
:
"组织联系信息表格视图"
,
"caption"
:
"组织联系信息"
,
...
...
@@ -249,6 +259,16 @@
"viewtag"
:
"696bc6afaa29aebaa40d4710aa3d7a57"
,
"memo"
:
""
},
"hrdistributionv_001"
:
{
"title"
:
"工作人员分配嵌入职位"
,
"caption"
:
"工作人员分配"
,
"viewtype"
:
"DEGRIDVIEW9"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRDistributionV_001"
,
"viewfilename"
:
"hrdistribution-v-001"
,
"viewtag"
:
"6be35c13c046c1356e5ceca8a13c355b"
,
"memo"
:
""
},
"hrpostreleditview"
:
{
"title"
:
"职位关系编辑视图"
,
"caption"
:
"职位关系"
,
...
...
app_PIM/src/interface/entity/hrpost-rel.ts
浏览文件 @
4481665d
...
...
@@ -79,7 +79,7 @@ export interface HRPostRel {
phrpostid
?:
any
;
/**
* 职位
*
直接上级
职位
*
* @returns {*}
* @memberof HRPostRel
...
...
app_PIM/src/locale/lanres/entities/hrdistribution/hrdistribution_en_US.ts
浏览文件 @
4481665d
...
...
@@ -19,6 +19,10 @@ export default {
caption
:
"工作人员分配"
,
title
:
"工作人员分配表格视图"
,
},
v_001
:
{
caption
:
"工作人员分配"
,
title
:
"工作人员分配嵌入职位"
,
},
editview
:
{
caption
:
"工作人员分配"
,
title
:
"工作人员分配编辑视图"
,
...
...
@@ -64,40 +68,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"
,
...
...
@@ -144,4 +114,38 @@ export default {
tip
:
"Help"
,
},
},
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"
,
},
},
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hrdistribution/hrdistribution_zh_CN.ts
浏览文件 @
4481665d
...
...
@@ -18,6 +18,10 @@ export default {
caption
:
"工作人员分配"
,
title
:
"工作人员分配表格视图"
,
},
v_001
:
{
caption
:
"工作人员分配"
,
title
:
"工作人员分配嵌入职位"
,
},
editview
:
{
caption
:
"工作人员分配"
,
title
:
"工作人员分配编辑视图"
,
...
...
@@ -63,40 +67,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
:
"保存"
,
...
...
@@ -143,4 +113,38 @@ export default {
tip
:
"帮助"
,
},
},
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
:
"过滤"
,
},
},
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hrpost-rel/hrpost-rel_en_US.ts
浏览文件 @
4481665d
...
...
@@ -10,11 +10,15 @@ export default {
hrpostid
:
"职位标识"
,
hrpostname
:
"职位"
,
phrpostid
:
"职位标识"
,
phrpostname
:
"职位"
,
phrpostname
:
"
直接上级
职位"
,
begintime
:
"生效"
,
endtime
:
"到期"
,
},
views
:
{
v_001
:
{
caption
:
"直接上级职位"
,
title
:
"职位关系表格视图"
,
},
gridview
:
{
caption
:
"职位关系"
,
title
:
"职位关系表格视图"
,
...
...
@@ -50,9 +54,9 @@ export default {
},
main_grid
:
{
columns
:
{
hrpostrelname
:
"职位关系名称
"
,
updateman
:
"更新人
"
,
updatedate
:
"更新时间
"
,
phrpostname
:
"直接上级职位
"
,
begintime
:
"生效
"
,
endtime
:
"到期
"
,
},
uiactions
:
{
},
...
...
@@ -64,40 +68,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"
,
...
...
@@ -144,4 +114,38 @@ export default {
tip
:
"Help"
,
},
},
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"
,
},
},
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hrpost-rel/hrpost-rel_zh_CN.ts
浏览文件 @
4481665d
...
...
@@ -9,11 +9,15 @@ export default {
hrpostid
:
"职位标识"
,
hrpostname
:
"职位"
,
phrpostid
:
"职位标识"
,
phrpostname
:
"职位"
,
phrpostname
:
"
直接上级
职位"
,
begintime
:
"生效"
,
endtime
:
"到期"
,
},
views
:
{
v_001
:
{
caption
:
"直接上级职位"
,
title
:
"职位关系表格视图"
,
},
gridview
:
{
caption
:
"职位关系"
,
title
:
"职位关系表格视图"
,
...
...
@@ -49,9 +53,9 @@ export default {
},
main_grid
:
{
columns
:
{
hrpostrelname
:
"职位关系名称
"
,
updateman
:
"更新人
"
,
updatedate
:
"更新时间
"
,
phrpostname
:
"直接上级职位
"
,
begintime
:
"生效
"
,
endtime
:
"到期
"
,
},
uiactions
:
{
},
...
...
@@ -63,40 +67,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
:
"保存"
,
...
...
@@ -143,4 +113,38 @@ export default {
tip
:
"帮助"
,
},
},
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
:
"过滤"
,
},
},
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hrpost/hrpost_en_US.ts
浏览文件 @
4481665d
...
...
@@ -59,7 +59,7 @@ export default {
title
:
"职位看板"
,
},
},
main
_form
:
{
ef_001
_form
:
{
details
:
{
group1
:
"职位基本信息"
,
formpage1
:
"基本信息"
,
...
...
@@ -77,8 +77,6 @@ export default {
posttype
:
"职位类型"
,
hrorganizationname
:
"部门"
,
activeflag
:
"是否有效"
,
postnum
:
"编制人数"
,
entrytime
:
"最早入职时间"
,
hrpostid
:
"职位标识"
,
hrorganizationid
:
"组织"
,
hrdutyid
:
"职务标识"
,
...
...
@@ -86,9 +84,13 @@ export default {
uiactions
:
{
},
},
e
f_001_form
:
{
i
f_001_form
:
{
details
:
{
group1
:
"职位基本信息"
,
group1
:
"职位信息"
,
druipart1
:
""
,
grouppanel1
:
"直接上级职位"
,
druipart2
:
""
,
grouppanel2
:
"工作人员分配"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
...
...
@@ -104,14 +106,14 @@ export default {
posttype
:
"职位类型"
,
hrorganizationname
:
"部门"
,
activeflag
:
"是否有效"
,
postnum
:
"编制人数"
,
entrytime
:
"最早入职时间"
,
hrpostid
:
"职位标识"
,
hrorganizationid
:
"组织"
,
hrdutyid
:
"职务标识"
,
},
uiactions
:
{
},
},
if_001
_form
:
{
main
_form
:
{
details
:
{
group1
:
"职位基本信息"
,
formpage1
:
"基本信息"
,
...
...
@@ -132,6 +134,8 @@ export default {
postnum
:
"编制人数"
,
entrytime
:
"最早入职时间"
,
hrpostid
:
"职位标识"
,
hrorganizationid
:
"组织"
,
hrdutyid
:
"职务标识"
,
},
uiactions
:
{
},
...
...
@@ -156,15 +160,59 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
},
tbitem2
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_006toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_003toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
...
...
@@ -190,29 +238,23 @@ export default {
tip
:
"Filter"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
v_002toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_002toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
...
...
@@ -238,28 +280,6 @@ export default {
tip
:
"Filter"
,
},
},
v_006toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_001toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
...
...
@@ -303,14 +323,22 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
...
...
app_PIM/src/locale/lanres/entities/hrpost/hrpost_zh_CN.ts
浏览文件 @
4481665d
...
...
@@ -58,7 +58,7 @@ export default {
title
:
"职位看板"
,
},
},
main
_form
:
{
ef_001
_form
:
{
details
:
{
group1
:
"职位基本信息"
,
formpage1
:
"基本信息"
,
...
...
@@ -76,8 +76,6 @@ export default {
posttype
:
"职位类型"
,
hrorganizationname
:
"部门"
,
activeflag
:
"是否有效"
,
postnum
:
"编制人数"
,
entrytime
:
"最早入职时间"
,
hrpostid
:
"职位标识"
,
hrorganizationid
:
"组织"
,
hrdutyid
:
"职务标识"
,
...
...
@@ -85,9 +83,13 @@ export default {
uiactions
:
{
},
},
e
f_001_form
:
{
i
f_001_form
:
{
details
:
{
group1
:
"职位基本信息"
,
group1
:
"职位信息"
,
druipart1
:
""
,
grouppanel1
:
"直接上级职位"
,
druipart2
:
""
,
grouppanel2
:
"工作人员分配"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
...
...
@@ -103,14 +105,14 @@ export default {
posttype
:
"职位类型"
,
hrorganizationname
:
"部门"
,
activeflag
:
"是否有效"
,
postnum
:
"编制人数"
,
entrytime
:
"最早入职时间"
,
hrpostid
:
"职位标识"
,
hrorganizationid
:
"组织"
,
hrdutyid
:
"职务标识"
,
},
uiactions
:
{
},
},
if_001
_form
:
{
main
_form
:
{
details
:
{
group1
:
"职位基本信息"
,
formpage1
:
"基本信息"
,
...
...
@@ -131,6 +133,8 @@ export default {
postnum
:
"编制人数"
,
entrytime
:
"最早入职时间"
,
hrpostid
:
"职位标识"
,
hrorganizationid
:
"组织"
,
hrdutyid
:
"职务标识"
,
},
uiactions
:
{
},
...
...
@@ -155,15 +159,59 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
},
tbitem2
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_006toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_003toolbar_toolbar
:
{
tbitem
3
:
{
tbitem
1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
...
...
@@ -189,29 +237,23 @@ export default {
tip
:
"过滤"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
},
tbitem2
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_002toolbar_toolbar
:
{
tbitem
3
:
{
tbitem
1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
...
...
@@ -237,28 +279,6 @@ export default {
tip
:
"过滤"
,
},
},
v_006toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_001toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
...
...
@@ -302,14 +322,22 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem
3
:
{
tbitem
1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
...
...
app_PIM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
4481665d
...
...
@@ -167,6 +167,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROMHierarchyEditView"
,
"viewtag"
:
"4a61d63445d504cab11cf5f45536b314"
},
"hrpostrelv_001"
:
{
"title"
:
"职位关系表格视图"
,
"caption"
:
"直接上级职位"
,
"viewtype"
:
"DEGRIDVIEW9"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostRelV_001"
,
"viewtag"
:
"4f567c340cbb4271d44543b278d29d0f"
},
"hrorgcontactgridview"
:
{
"title"
:
"组织联系信息表格视图"
,
"caption"
:
"组织联系信息"
,
...
...
@@ -207,6 +215,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HRPostRelGridView"
,
"viewtag"
:
"696bc6afaa29aebaa40d4710aa3d7a57"
},
"hrdistributionv_001"
:
{
"title"
:
"工作人员分配嵌入职位"
,
"caption"
:
"工作人员分配"
,
"viewtype"
:
"DEGRIDVIEW9"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRDistributionV_001"
,
"viewtag"
:
"6be35c13c046c1356e5ceca8a13c355b"
},
"hrpostreleditview"
:
{
"title"
:
"职位关系编辑视图"
,
"caption"
:
"职位关系"
,
...
...
app_PIM/src/pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view.html
浏览文件 @
4481665d
<studio-view-style2
viewName=
"hrdistributiongridview"
viewTitle=
"工作人员分配表格视图"
class=
'degridview hrdistribution-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"工作人员分配名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
...
...
app_PIM/src/pages/human-resource/hrdistribution-v-001/hrdistribution-v-001-base.tsx
0 → 100644
浏览文件 @
4481665d
import
{
Subject
}
from
'rxjs'
;
import
{
GridView9Base
}
from
'@/studio-core'
;
import
HRDistributionService
from
'@/service/hrdistribution/hrdistribution-service'
;
import
HRDistributionAuthService
from
'@/authservice/hrdistribution/hrdistribution-auth-service'
;
import
GridView9Engine
from
'@engine/view/grid-view9-engine'
;
import
HRDistributionUIService
from
'@/uiservice/hrdistribution/hrdistribution-ui-service'
;
import
CodeListService
from
"@service/app/codelist-service"
;
/**
* 工作人员分配嵌入职位视图基类
*
* @export
* @class HRDistributionV_001Base
* @extends {GridView9Base}
*/
export
class
HRDistributionV_001Base
extends
GridView9Base
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDistributionV_001Base
*/
protected
appDeName
:
string
=
'hrdistribution'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDistributionV_001Base
*/
protected
appDeKey
:
string
=
'hrdistributionid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDistributionV_001Base
*/
protected
appDeMajor
:
string
=
'hrdistributionname'
;
/**
* 实体服务对象
*
* @type {HRDistributionService}
* @memberof HRDistributionV_001Base
*/
protected
appEntityService
:
HRDistributionService
=
new
HRDistributionService
;
/**
* 实体权限服务对象
*
* @type HRDistributionUIService
* @memberof HRDistributionV_001Base
*/
public
appUIService
:
HRDistributionUIService
=
new
HRDistributionUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDistributionV_001Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDistributionV_001Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrdistribution.views.v_001.caption'
,
srfTitle
:
'entities.hrdistribution.views.v_001.title'
,
srfSubTitle
:
'entities.hrdistribution.views.v_001.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDistributionV_001Base
*/
protected
containerModel
:
any
=
{
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'6be35c13c046c1356e5ceca8a13c355b'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDistributionV_001Base
*/
public
engine
:
GridView9Engine
=
new
GridView9Engine
();
/**
* 引擎初始化
*
* @public
* @memberof HRDistributionV_001Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
opendata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
opendata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
newdata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
newdata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
grid
:
this
.
$refs
.
grid
,
keyPSDEField
:
'hrdistribution'
,
majorPSDEField
:
'hrdistributionname'
,
isLoadDefault
:
true
,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_001Base
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_001Base
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_001Base
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_001Base
*/
public
grid_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'remove'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_001Base
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDistributionV_001
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
hrdistribution
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
};
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRDistributionV_001
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
const
localContext
:
any
=
null
;
const
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @protected
* @type {(0 | 1 | 2)}
* @memberof HRDistributionV_001Base
*/
protected
gridRowActiveMode
:
0
|
1
|
2
=
0
;
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.html
0 → 100644
浏览文件 @
4481665d
<studio-embed-view-style2
viewName=
"hrdistributionv_001"
viewTitle=
"工作人员分配嵌入职位"
class=
'degridview9 hrdistribution-v-001'
>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-embed-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue
0 → 100644
浏览文件 @
4481665d
<
template
src=
"./hrdistribution-v-001.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDistributionV_001Base } from './hrdistribution-v-001-base';
import view_grid from '@widgets/hrdistribution/main-grid/main-grid.vue';
/**
* 工作人员分配嵌入职位视图
*
* @export
* @class HRDistributionV_001
* @extends {HRDistributionV_001Base}
*/
@Component({
components: {
view_grid,
}
})
@VueLifeCycleProcessing()
export default class HRDistributionV_001 extends HRDistributionV_001Base { }
</script>
app_PIM/src/pages/human-resource/hrpost-grid-view/hrpost-grid-view-base.tsx
浏览文件 @
4481665d
...
...
@@ -103,10 +103,13 @@ export class HRPostGridViewBase extends GridViewBase {
* @memberof HRPostGridView
*/
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 HRPostGridViewBase extends GridViewBase {
* @memberof HRPostGridViewBase
*/
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 HRPostGridViewBase 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 HRPostGridViewBase extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
const
curUIService
:
HRPostUIService
=
new
HRPostUIService
();
curUIService
.
HRPost_FF_002
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
}
/**
...
...
@@ -351,63 +349,7 @@ export class HRPostGridViewBase 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
,
"HRPost"
);
}
/**
* 逻辑事件
*
* @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
,
"HRPost"
);
}
/**
* 逻辑事件
*
* @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 HRPostGridViewBase extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
}
/**
...
...
@@ -564,16 +506,28 @@ export class HRPostGridViewBase extends GridViewBase {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
open
IndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
}
;
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
)
;
const
open
Drawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
)
;
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
openIndexViewTab
(
data
);
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrpost-v-005'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrpost.views.v_005.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
...
...
@@ -598,7 +552,7 @@ export class HRPostGridViewBase extends GridViewBase {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'
editview'
,
parameterName
:
'editview
'
},
{
pathName
:
'
v_006'
,
parameterName
:
'v_006
'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
...
...
@@ -609,26 +563,6 @@ export class HRPostGridViewBase extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostGridViewBase
*/
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,7 +590,7 @@ export class HRPostGridViewBase extends GridViewBase {
}
}
/**
*
行编辑
*
拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -666,49 +600,21 @@ export class HRPostGridViewBase extends GridViewBase {
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
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 HRPostGridViewBase
*/
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 视图处理逻辑不存在,请添加!'
});
}
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
hrpost
:
args
[
0
].
hrpost
});
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostGridViewBase
*/
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
(
!
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/hrpost-rel-v-001/hrpost-rel-v-001-base.tsx
0 → 100644
浏览文件 @
4481665d
import
{
Subject
}
from
'rxjs'
;
import
{
GridView9Base
}
from
'@/studio-core'
;
import
HRPostRelService
from
'@/service/hrpost-rel/hrpost-rel-service'
;
import
HRPostRelAuthService
from
'@/authservice/hrpost-rel/hrpost-rel-auth-service'
;
import
GridView9Engine
from
'@engine/view/grid-view9-engine'
;
import
HRPostRelUIService
from
'@/uiservice/hrpost-rel/hrpost-rel-ui-service'
;
import
CodeListService
from
"@service/app/codelist-service"
;
/**
* 职位关系表格视图视图基类
*
* @export
* @class HRPostRelV_001Base
* @extends {GridView9Base}
*/
export
class
HRPostRelV_001Base
extends
GridView9Base
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostRelV_001Base
*/
protected
appDeName
:
string
=
'hrpostrel'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostRelV_001Base
*/
protected
appDeKey
:
string
=
'hrpostrelid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostRelV_001Base
*/
protected
appDeMajor
:
string
=
'hrpostrelname'
;
/**
* 实体服务对象
*
* @type {HRPostRelService}
* @memberof HRPostRelV_001Base
*/
protected
appEntityService
:
HRPostRelService
=
new
HRPostRelService
;
/**
* 实体权限服务对象
*
* @type HRPostRelUIService
* @memberof HRPostRelV_001Base
*/
public
appUIService
:
HRPostRelUIService
=
new
HRPostRelUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostRelV_001Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostRelV_001Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrpostrel.views.v_001.caption'
,
srfTitle
:
'entities.hrpostrel.views.v_001.title'
,
srfSubTitle
:
'entities.hrpostrel.views.v_001.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostRelV_001Base
*/
protected
containerModel
:
any
=
{
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'4f567c340cbb4271d44543b278d29d0f'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostRelV_001Base
*/
public
engine
:
GridView9Engine
=
new
GridView9Engine
();
/**
* 引擎初始化
*
* @public
* @memberof HRPostRelV_001Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
opendata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
opendata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
newdata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
newdata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
grid
:
this
.
$refs
.
grid
,
keyPSDEField
:
'hrpostrel'
,
majorPSDEField
:
'hrpostrelname'
,
isLoadDefault
:
true
,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_001Base
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_001Base
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_001Base
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_001Base
*/
public
grid_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'remove'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_001Base
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRPostRelV_001
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
hrpostrel
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
};
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRPostRelV_001
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
const
localContext
:
any
=
null
;
const
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @protected
* @type {(0 | 1 | 2)}
* @memberof HRPostRelV_001Base
*/
protected
gridRowActiveMode
:
0
|
1
|
2
=
0
;
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.html
0 → 100644
浏览文件 @
4481665d
<studio-embed-view-style2
viewName=
"hrpostrelv_001"
viewTitle=
"职位关系表格视图"
class=
'degridview9 hrpost-rel-v-001'
>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-embed-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue
0 → 100644
浏览文件 @
4481665d
<
template
src=
"./hrpost-rel-v-001.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostRelV_001Base } from './hrpost-rel-v-001-base';
import view_grid from '@widgets/hrpost-rel/main-grid/main-grid.vue';
/**
* 职位关系表格视图视图
*
* @export
* @class HRPostRelV_001
* @extends {HRPostRelV_001Base}
*/
@Component({
components: {
view_grid,
}
})
@VueLifeCycleProcessing()
export default class HRPostRelV_001 extends HRPostRelV_001Base { }
</script>
app_PIM/src/pages/human-resource/hrpost-v-002/hrpost-v-002-base.tsx
浏览文件 @
4481665d
...
...
@@ -103,10 +103,13 @@ export class HRPostV_002Base extends GridViewBase {
* @memberof HRPostV_002
*/
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 HRPostV_002Base extends GridViewBase {
* @memberof HRPostV_002Base
*/
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 HRPostV_002Base 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 HRPostV_002Base extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
const
curUIService
:
HRPostUIService
=
new
HRPostUIService
();
curUIService
.
HRPost_FF_002
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
}
/**
...
...
@@ -351,63 +349,7 @@ export class HRPostV_002Base 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
,
"HRPost"
);
}
/**
* 逻辑事件
*
* @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
,
"HRPost"
);
}
/**
* 逻辑事件
*
* @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 HRPostV_002Base extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
}
/**
...
...
@@ -564,16 +506,28 @@ export class HRPostV_002Base extends GridViewBase {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
open
IndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
}
;
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
)
;
const
open
Drawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
)
;
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
openIndexViewTab
(
data
);
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrpost-v-005'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrpost.views.v_005.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
...
...
@@ -598,7 +552,7 @@ export class HRPostV_002Base extends GridViewBase {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'
editview'
,
parameterName
:
'editview
'
},
{
pathName
:
'
v_006'
,
parameterName
:
'v_006
'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
...
...
@@ -609,26 +563,6 @@ export class HRPostV_002Base extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostV_002Base
*/
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,7 +590,7 @@ export class HRPostV_002Base extends GridViewBase {
}
}
/**
*
行编辑
*
拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -666,49 +600,21 @@ export class HRPostV_002Base extends GridViewBase {
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostV_002Base
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
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 HRPostV_002Base
*/
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 视图处理逻辑不存在,请添加!'
});
}
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
hrpost
:
args
[
0
].
hrpost
});
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostV_002Base
*/
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
(
!
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/hrpost-v-003/hrpost-v-003-base.tsx
浏览文件 @
4481665d
...
...
@@ -103,10 +103,13 @@ export class HRPostV_003Base extends GridViewBase {
* @memberof HRPostV_003
*/
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 HRPostV_003Base extends GridViewBase {
* @memberof HRPostV_003Base
*/
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 HRPostV_003Base 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 HRPostV_003Base extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
const
curUIService
:
HRPostUIService
=
new
HRPostUIService
();
curUIService
.
HRPost_FF_002
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
}
/**
...
...
@@ -351,63 +349,7 @@ export class HRPostV_003Base 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
,
"HRPost"
);
}
/**
* 逻辑事件
*
* @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
,
"HRPost"
);
}
/**
* 逻辑事件
*
* @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 HRPostV_003Base extends GridViewBase {
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRPost"
);
}
/**
...
...
@@ -564,16 +506,28 @@ export class HRPostV_003Base extends GridViewBase {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
open
IndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
}
;
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
)
;
const
open
Drawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
)
;
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
openIndexViewTab
(
data
);
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrpost-v-005'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrpost.views.v_005.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
...
...
@@ -598,7 +552,7 @@ export class HRPostV_003Base extends GridViewBase {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'
editview'
,
parameterName
:
'editview
'
},
{
pathName
:
'
v_006'
,
parameterName
:
'v_006
'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
...
...
@@ -609,26 +563,6 @@ export class HRPostV_003Base extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostV_003Base
*/
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,7 +590,7 @@ export class HRPostV_003Base extends GridViewBase {
}
}
/**
*
行编辑
*
拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -666,49 +600,21 @@ export class HRPostV_003Base extends GridViewBase {
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostV_003Base
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
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 HRPostV_003Base
*/
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 视图处理逻辑不存在,请添加!'
});
}
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
hrpost
:
args
[
0
].
hrpost
});
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRPostV_003Base
*/
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
(
!
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/hrpost-v-004/hrpost-v-004-base.tsx
0 → 100644
浏览文件 @
4481665d
import
{
Subject
}
from
'rxjs'
;
import
{
EditViewBase
}
from
'@/studio-core'
;
import
HRPostService
from
'@/service/hrpost/hrpost-service'
;
import
HRPostAuthService
from
'@/authservice/hrpost/hrpost-auth-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
import
HRPostUIService
from
'@/uiservice/hrpost/hrpost-ui-service'
;
/**
* 职位编辑视图视图基类
*
* @export
* @class HRPostV_004Base
* @extends {EditViewBase}
*/
export
class
HRPostV_004Base
extends
EditViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostV_004Base
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostV_004Base
*/
protected
appDeKey
:
string
=
'hrpostid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostV_004Base
*/
protected
appDeMajor
:
string
=
'hrpostname'
;
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof HRPostV_004Base
*/
protected
appEntityService
:
HRPostService
=
new
HRPostService
;
/**
* 实体权限服务对象
*
* @type HRPostUIService
* @memberof HRPostV_004Base
*/
public
appUIService
:
HRPostUIService
=
new
HRPostUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostV_004Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostV_004Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrpost.views.v_004.caption'
,
srfTitle
:
'entities.hrpost.views.v_004.title'
,
srfSubTitle
:
'entities.hrpost.views.v_004.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostV_004Base
*/
protected
containerModel
:
any
=
{
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'5efdfaf722e7585dfd685922b16f7f88'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostV_004Base
*/
public
engine
:
EditViewEngine
=
new
EditViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRPostV_004Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'hrpost'
,
majorPSDEField
:
'hrpostname'
,
isLoadDefault
:
true
,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostV_004Base
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostV_004Base
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostV_004Base
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-v-004/hrpost-v-004.html
0 → 100644
浏览文件 @
4481665d
<studio-view-style2
viewName=
"hrpostv_004"
viewTitle=
"职位编辑视图"
class=
'deeditview hrpost-v-004 from-dashboard-style'
>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"Update"
removeAction=
"Remove"
loaddraftAction=
"GetDraft"
loadAction=
"Get"
createAction=
"Create"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-v-004/hrpost-v-004.vue
0 → 100644
浏览文件 @
4481665d
<
template
src=
"./hrpost-v-004.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostV_004Base } from './hrpost-v-004-base';
import view_form from '@widgets/hrpost/if-001-form/if-001-form.vue';
/**
* 职位编辑视图视图
*
* @export
* @class HRPostV_004
* @extends {HRPostV_004Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRPostV_004 extends HRPostV_004Base { }
</script>
app_PIM/src/pages/ungroup/pim/page-register.ts
浏览文件 @
4481665d
export
const
PageComponents
=
{
install
(
Vue
:
any
,
opt
:
any
)
{
Vue
.
component
(
'hrpost-v-004'
,
()
=>
import
(
'@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'
));
Vue
.
component
(
'hrduty-edit-view'
,
()
=>
import
(
'@pages/human-resource/hrduty-edit-view/hrduty-edit-view.vue'
));
Vue
.
component
(
'hroperation-unit-edit-view'
,
()
=>
import
(
'@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'
));
Vue
.
component
(
'hrpost-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrpost-grid-view/hrpost-grid-view.vue'
));
...
...
@@ -28,6 +29,7 @@ export const PageComponents = {
Vue
.
component
(
'hrorg-address-edit-view'
,
()
=>
import
(
'@pages/base/hrorg-address-edit-view/hrorg-address-edit-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
(
'hrpost-rel-v-001'
,
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'
));
Vue
.
component
(
'hromhierarchy-pickup-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-pickup-view/hromhierarchy-pickup-view.vue'
));
Vue
.
component
(
'hrpost-v-003'
,
()
=>
import
(
'@pages/human-resource/hrpost-v-003/hrpost-v-003.vue'
));
Vue
.
component
(
'hremployee-grid-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-grid-view/hremployee-grid-view.vue'
));
...
...
@@ -49,6 +51,7 @@ export const PageComponents = {
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'
));
Vue
.
component
(
'hrpost-rel-edit-view'
,
()
=>
import
(
'@pages/human-resource/hrpost-rel-edit-view/hrpost-rel-edit-view.vue'
));
Vue
.
component
(
'hrdistribution-v-001'
,
()
=>
import
(
'@pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue'
));
Vue
.
component
(
'hrduty-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrduty-grid-view/hrduty-grid-view.vue'
));
Vue
.
component
(
'hrpost-edit-view'
,
()
=>
import
(
'@pages/human-resource/hrpost-edit-view/hrpost-edit-view.vue'
));
}
...
...
app_PIM/src/pages/ungroup/pim/router.ts
浏览文件 @
4481665d
...
...
@@ -43,6 +43,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/ungroup/pim/pim.vue'
),
children
:
[
{
path
:
'hrposts/:hrpost?/v_004/:v_004?'
,
meta
:
{
caption
:
'entities.hrpost.views.v_004.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'v_004'
,
parameterName
:
'v_004'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'
),
},
{
path
:
'hrduties/:hrduty?/editview/:editview?'
,
meta
:
{
...
...
@@ -615,6 +629,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue'
),
},
{
path
:
'hrpostrels/:hrpostrel?/v_001/:v_001?'
,
meta
:
{
caption
:
'entities.hrpostrel.views.v_001.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'v_001'
,
parameterName
:
'v_001'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'
),
},
{
path
:
'hromhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/pickupview/:pickupview?'
,
meta
:
{
...
...
@@ -984,6 +1012,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-edit-view/hrpost-rel-edit-view.vue'
),
},
{
path
:
'hrdistributions/:hrdistribution?/v_001/:v_001?'
,
meta
:
{
caption
:
'entities.hrdistribution.views.v_001.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'v_001'
,
parameterName
:
'v_001'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue'
),
},
{
path
:
'hrduties/:hrduty?/gridview/:gridview?'
,
meta
:
{
...
...
app_PIM/src/store/modules/view-action/state.ts
浏览文件 @
4481665d
...
...
@@ -154,7 +154,8 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'7ad274dc8cc9e8f7e464195ca0953dc3'
,
'c1a754fe9d4ff67c56d0bb4b6ae949be'
,
'd2137112227c4243e95ffe9ef7eaafab'
,
],
},
{
...
...
@@ -164,7 +165,8 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'7ad274dc8cc9e8f7e464195ca0953dc3'
,
'c1a754fe9d4ff67c56d0bb4b6ae949be'
,
'd2137112227c4243e95ffe9ef7eaafab'
,
],
},
{
...
...
@@ -207,6 +209,16 @@ export const viewstate: any = {
'2cc9f94bc50095005332a93eb120c828'
,
],
},
{
viewtag
:
'4f567c340cbb4271d44543b278d29d0f'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRPostRelV_001'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'6cf9411c3f3597947dfee8dad2968182'
,
],
},
{
viewtag
:
'53de2c13a619e20769cdc9dbfa10e1a5'
,
viewmodule
:
'Base'
,
...
...
@@ -217,6 +229,17 @@ export const viewstate: any = {
'0515a652f1ba4326ef610f1d98be95c8'
,
],
},
{
viewtag
:
'5efdfaf722e7585dfd685922b16f7f88'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRPostV_004'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'6be35c13c046c1356e5ceca8a13c355b'
,
'4f567c340cbb4271d44543b278d29d0f'
,
],
},
{
viewtag
:
'62468a4082892d924fe855427a8cd0cb'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -246,6 +269,16 @@ export const viewstate: any = {
'6cf9411c3f3597947dfee8dad2968182'
,
],
},
{
viewtag
:
'6be35c13c046c1356e5ceca8a13c355b'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRDistributionV_001'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'9e5d3f17ad97fd735b8abc637018301d'
,
],
},
{
viewtag
:
'6cf9411c3f3597947dfee8dad2968182'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -467,7 +500,8 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'7ad274dc8cc9e8f7e464195ca0953dc3'
,
'c1a754fe9d4ff67c56d0bb4b6ae949be'
,
'd2137112227c4243e95ffe9ef7eaafab'
,
],
},
{
...
...
@@ -525,6 +559,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'5efdfaf722e7585dfd685922b16f7f88'
,
],
},
{
...
...
app_PIM/src/uiservice/hrdistribution/hrdistribution-ui-service-base.ts
浏览文件 @
4481665d
...
...
@@ -90,6 +90,7 @@ export default class HRDistributionUIServiceBase extends UIService {
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'hrdistributions'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_001'
,
srfappde
:
'hrdistributions'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'hrdistributions'
});
}
...
...
app_PIM/src/uiservice/hrpost-rel/hrpost-rel-ui-service-base.ts
浏览文件 @
4481665d
...
...
@@ -89,6 +89,7 @@ export default class HRPostRelUIServiceBase extends UIService {
* @memberof HRPostRelUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_001'
,
srfappde
:
'hrpostrels'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'hrpostrels'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'hrpostrels'
});
}
...
...
app_PIM/src/widgets/hrdistribution/main-grid/main-grid-base.tsx
浏览文件 @
4481665d
...
...
@@ -76,6 +76,14 @@ export class MainGridBase extends GridControlBase {
*/
protected
localStorageTag
:
string
=
'hrdistribution_main_grid'
;
/**
* 是否支持分页
*
* @type {boolean}
* @memberof MainGridBase
*/
public
isEnablePagingBar
:
boolean
=
false
;
/**
* 所有列成员
*
...
...
app_PIM/src/widgets/hrdistribution/main-grid/main-grid-model.ts
浏览文件 @
4481665d
...
...
@@ -71,7 +71,6 @@ export default class MainModel {
name
:
'hrdistribution'
,
prop
:
'hrdistributionid'
,
},
{
name
:
'size'
,
prop
:
'size'
...
...
app_PIM/src/widgets/hrdistribution/main-grid/main-grid.html
浏览文件 @
4481665d
...
...
@@ -65,40 +65,5 @@
<el-table-column></el-table-column>
</template>
</el-table>
<row
class=
'grid-pagination'
v-show=
"items.length > 0"
>
<page
class=
'pull-right'
@
on-change=
"pageOnChange($event)"
@
on-page-size-change=
"onPageSizeChange($event)"
:transfer=
"true"
:total=
"totalRecord"
show-sizer
:current=
"curPage"
:page-size=
"limit"
:page-size-opts=
"[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
show-elevator
show-total
>
<span>
<span
class=
"page-column"
>
<poptip
transfer
placement=
"top-start"
>
<i-button
icon=
"md-menu"
>
{{$t('app.gridpage.choicecolumns')}}
</i-button>
<div
slot=
"content"
>
<template
v-for=
"col in allColumns"
>
<div
:key=
"col.name"
><el-checkbox
v-model=
"col.show"
@
change=
"onColChange()"
>
{{$t(col.langtag)}}
</el-checkbox></div>
</template>
</div>
</poptip>
</span>
<span
v-if=
"selections.length > 0"
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
<span>
<template
v-if=
"items.length === 1"
>
1
</template>
<template
v-else
>
<span>
{{(curPage - 1) * limit + 1}}
-
{{totalRecord > curPage * limit ? curPage * limit : totalRecord}}
</span>
</template>
</span>
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}
{{totalRecord}}
{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form>
</div>
\ No newline at end of file
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid-base.tsx
浏览文件 @
4481665d
...
...
@@ -76,6 +76,14 @@ export class MainGridBase extends GridControlBase {
*/
protected
localStorageTag
:
string
=
'hrpostrel_main_grid'
;
/**
* 是否支持分页
*
* @type {boolean}
* @memberof MainGridBase
*/
public
isEnablePagingBar
:
boolean
=
false
;
/**
* 所有列成员
*
...
...
@@ -84,25 +92,25 @@ export class MainGridBase extends GridControlBase {
*/
public
allColumns
:
any
[]
=
[
{
name
:
'
hrpostrel
name'
,
label
:
'
职位关系名称
'
,
langtag
:
'entities.hrpostrel.main_grid.columns.
hrpostrel
name'
,
name
:
'
phrpost
name'
,
label
:
'
直接上级职位
'
,
langtag
:
'entities.hrpostrel.main_grid.columns.
phrpost
name'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'
updateman
'
,
label
:
'
更新人
'
,
langtag
:
'entities.hrpostrel.main_grid.columns.
updateman
'
,
name
:
'
begintime
'
,
label
:
'
生效
'
,
langtag
:
'entities.hrpostrel.main_grid.columns.
begintime
'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'
updatedat
e'
,
label
:
'
更新时间
'
,
langtag
:
'entities.hrpostrel.main_grid.columns.
updatedat
e'
,
name
:
'
endtim
e'
,
label
:
'
到期
'
,
langtag
:
'entities.hrpostrel.main_grid.columns.
endtim
e'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
...
...
@@ -141,9 +149,9 @@ export class MainGridBase extends GridControlBase {
* @memberof MainBase
*/
public
hasRowEdit
:
any
=
{
'
hrpostrel
name'
:
false
,
'
updateman
'
:
false
,
'
updatedat
e'
:
false
,
'
phrpost
name'
:
false
,
'
begintime
'
:
false
,
'
endtim
e'
:
false
,
};
/**
...
...
@@ -169,14 +177,6 @@ export class MainGridBase extends GridControlBase {
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
{
name
:
'updateman'
,
srfkey
:
'SysOperator'
,
codelistType
:
'DYNAMIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
]);
}
...
...
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid-model.ts
浏览文件 @
4481665d
...
...
@@ -26,31 +26,31 @@ export default class MainModel {
]
}
else
{
return
[
{
name
:
'endtime'
,
prop
:
'endtime'
,
dataType
:
'DATE'
,
},
{
name
:
'hrpostid'
,
prop
:
'hrpostid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'
hrpostrelna
me'
,
prop
:
'
hrpostrelna
me'
,
dataType
:
'
TEXT
'
,
name
:
'
beginti
me'
,
prop
:
'
beginti
me'
,
dataType
:
'
DATE
'
,
},
{
name
:
'
updateman
'
,
prop
:
'
updateman
'
,
dataType
:
'TEXT'
,
name
:
'
phrpostname
'
,
prop
:
'
phrpostname
'
,
dataType
:
'
PICKUP
TEXT'
,
},
{
name
:
'phrpostid'
,
prop
:
'phrpostid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'updatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'srfmajortext'
,
prop
:
'hrpostrelname'
,
...
...
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid.html
浏览文件 @
4481665d
...
...
@@ -23,41 +23,39 @@
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"getColumnState('
hrpostrel
name')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
hrpostrelname'"
:label=
"$t('entities.hrpostrel.main_grid.columns.hrpostrelname')"
:width=
"15
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-if=
"getColumnState('
phrpost
name')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
phrpostname'"
:label=
"$t('entities.hrpostrel.main_grid.columns.phrpostname')"
:width=
"20
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrpostrel.main_grid.columns.
hrpostrel
name')}}
{{$t('entities.hrpostrel.main_grid.columns.
phrpost
name')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.
hrpostrel
name}}
</span>
<span>
{{row.
phrpost
name}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('
updateman
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
updateman'"
:label=
"$t('entities.hrpostrel.main_grid.columns.updateman
')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-if=
"getColumnState('
begintime
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
begintime'"
:label=
"$t('entities.hrpostrel.main_grid.columns.begintime
')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrpostrel.main_grid.columns.
updateman
')}}
{{$t('entities.hrpostrel.main_grid.columns.
begintime
')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.updateman"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
></codelist>
</template>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.begintime"
></app-format-data>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('
updatedat
e')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
updatedate'"
:label=
"$t('entities.hrpostrel.main_grid.columns.updatedat
e')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-if=
"getColumnState('
endtim
e')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
endtime'"
:label=
"$t('entities.hrpostrel.main_grid.columns.endtim
e')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrpostrel.main_grid.columns.
updatedat
e')}}
{{$t('entities.hrpostrel.main_grid.columns.
endtim
e')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD
HH:mm:ss"
:data=
"row.updatedat
e"
></app-format-data>
<app-format-data
format=
"YYYY-MM-DD
"
:data=
"row.endtim
e"
></app-format-data>
</template>
</el-table-column>
</template>
...
...
@@ -65,40 +63,5 @@
<el-table-column></el-table-column>
</template>
</el-table>
<row
class=
'grid-pagination'
v-show=
"items.length > 0"
>
<page
class=
'pull-right'
@
on-change=
"pageOnChange($event)"
@
on-page-size-change=
"onPageSizeChange($event)"
:transfer=
"true"
:total=
"totalRecord"
show-sizer
:current=
"curPage"
:page-size=
"limit"
:page-size-opts=
"[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
show-elevator
show-total
>
<span>
<span
class=
"page-column"
>
<poptip
transfer
placement=
"top-start"
>
<i-button
icon=
"md-menu"
>
{{$t('app.gridpage.choicecolumns')}}
</i-button>
<div
slot=
"content"
>
<template
v-for=
"col in allColumns"
>
<div
:key=
"col.name"
><el-checkbox
v-model=
"col.show"
@
change=
"onColChange()"
>
{{$t(col.langtag)}}
</el-checkbox></div>
</template>
</div>
</poptip>
</span>
<span
v-if=
"selections.length > 0"
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
<span>
<template
v-if=
"items.length === 1"
>
1
</template>
<template
v-else
>
<span>
{{(curPage - 1) * limit + 1}}
-
{{totalRecord > curPage * limit ? curPage * limit : totalRecord}}
</span>
</template>
</span>
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}
{{totalRecord}}
{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form>
</div>
\ No newline at end of file
app_PIM/src/widgets/hrpost/board-001-dashboard/board-001-dashboard.html
浏览文件 @
4481665d
...
...
@@ -3,6 +3,34 @@
<app-build
@
handleClick=
"handleClick.apply(_self, arguments)"
></app-build>
</row>
<row
v-if=
"!isHasCustomized"
>
<i-col
:md=
"{ span: 24, offset: 0 }"
>
<card
class=
"portlet-card"
:bordered=
"false"
dis-hover
:padding=
"0"
>
<span>
<div
class=
'portlet-container dashboard-viewdashboard-container1 portlet-container-no-border'
:style=
"{}"
>
<row>
<i-col
:md=
"{ span: 24, offset: 0 }"
>
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card"
:bordered=
"false"
dis-hover
:padding=
"0"
>
<span>
<view
_dashboard_sysportlet1
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:height=
"0"
:width=
"0"
name=
"dashboard_sysportlet1"
ref=
'dashboard_sysportlet1'
@
closeview=
"closeView($event)"
>
</view
_dashboard_sysportlet1
>
</span>
</card>
</div>
</i-col>
</row>
</div>
</span>
</card>
</i-col>
</row>
<row
v-if=
"isHasCustomized"
style=
"width: 100%;min-height: calc(100% - 40px);"
>
<div
class=
"portlet-container"
style=
"position: relative;width:100%;"
>
...
...
app_PIM/src/widgets/hrpost/board-001-dashboard/board-001-dashboard.vue
浏览文件 @
4481665d
...
...
@@ -3,6 +3,7 @@
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { BOARD_001DashboardBase } from './board-001-dashboard-base';
import view_dashboard_sysportlet1 from '@widgets/hrpost/part-v-001-portlet/part-v-001-portlet.vue';
/**
...
...
@@ -14,6 +15,7 @@ import { BOARD_001DashboardBase } from './board-001-dashboard-base';
*/
@Component({
components: {
view_dashboard_sysportlet1,
}
})
...
...
app_PIM/src/widgets/hrpost/if-001-form/if-001-form-base.tsx
0 → 100644
浏览文件 @
4481665d
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
HRPostService
from
'@/service/hrpost/hrpost-service'
;
import
IF_001Service
from
'./if-001-form-service'
;
import
HRPostUIService
from
'@/uiservice/hrpost/hrpost-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {IF_001EditFormBase}
*/
export
class
IF_001EditFormBase
extends
EditFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected
controlType
:
string
=
'FORM'
;
/**
* 建构部件服务对象
*
* @type {IF_001Service}
* @memberof IF_001EditFormBase
*/
public
service
:
IF_001Service
=
new
IF_001Service
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof IF_001EditFormBase
*/
public
appEntityService
:
HRPostService
=
new
HRPostService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 界面UI服务对象
*
* @type {HRPostUIService}
* @memberof IF_001EditFormBase
*/
public
appUIService
:
HRPostUIService
=
new
HRPostUIService
(
this
.
$store
);
/**
* 关系界面数量
*
* @protected
* @type {number}
* @memberof IF_001EditFormBase
*/
protected
drCount
:
number
=
2
;
/**
* 表单数据对象
*
* @type {*}
* @memberof IF_001EditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
postcode
:
null
,
hrpostname
:
null
,
hrdutyname
:
null
,
posttype
:
null
,
hrorganizationname
:
null
,
activeflag
:
null
,
postnum
:
null
,
entrytime
:
null
,
hrpostid
:
null
,
hrpost
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof IF_001EditFormBase
*/
public
rules
:
any
=
{
}
/**
* 属性值规则
*
* @type {*}
* @memberof IF_001Base
*/
public
deRules
:
any
=
{
};
/**
* 详情模型集合
*
* @type {*}
* @memberof IF_001EditFormBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'职位信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrpost.if_001_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart1
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
grouppanel1
:
new
FormGroupPanelModel
({
caption
:
'直接上级职位'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrpost.if_001_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart2
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
grouppanel2
:
new
FormGroupPanelModel
({
caption
:
'工作人员分配'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrpost.if_001_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srforikey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srforikey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfkey
:
new
FormItemModel
({
caption
:
'职位标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'职位'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfdeid
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfdeid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
postcode
:
new
FormItemModel
({
caption
:
'编号'
,
detailType
:
'FORMITEM'
,
name
:
'postcode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrpostname
:
new
FormItemModel
({
caption
:
'职位'
,
detailType
:
'FORMITEM'
,
name
:
'hrpostname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrdutyname
:
new
FormItemModel
({
caption
:
'职务'
,
detailType
:
'FORMITEM'
,
name
:
'hrdutyname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
posttype
:
new
FormItemModel
({
caption
:
'职位类型'
,
detailType
:
'FORMITEM'
,
name
:
'posttype'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrorganizationname
:
new
FormItemModel
({
caption
:
'部门'
,
detailType
:
'FORMITEM'
,
name
:
'hrorganizationname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
activeflag
:
new
FormItemModel
({
caption
:
'是否有效'
,
detailType
:
'FORMITEM'
,
name
:
'activeflag'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
postnum
:
new
FormItemModel
({
caption
:
'编制人数'
,
detailType
:
'FORMITEM'
,
name
:
'postnum'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
entrytime
:
new
FormItemModel
({
caption
:
'最早入职时间'
,
detailType
:
'FORMITEM'
,
name
:
'entrytime'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrpostid
:
new
FormItemModel
({
caption
:
'职位标识'
,
detailType
:
'FORMITEM'
,
name
:
'hrpostid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
}
\ No newline at end of file
app_PIM/src/widgets/hrpost/if-001-form/if-001-form-model.ts
0 → 100644
浏览文件 @
4481665d
/**
* IF_001 部件模型
*
* @export
* @class IF_001Model
*/
export
default
class
IF_001Model
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof IF_001Model
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfupdatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'srforikey'
,
},
{
name
:
'srfkey'
,
prop
:
'hrpostid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'hrpostname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'postcode'
,
prop
:
'postcode'
,
dataType
:
'TEXT'
,
},
{
name
:
'hrpostname'
,
prop
:
'hrpostname'
,
dataType
:
'TEXT'
,
},
{
name
:
'hrdutyname'
,
prop
:
'hrdutyname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'posttype'
,
prop
:
'posttype'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'hrorganizationname'
,
prop
:
'hrorganizationname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'activeflag'
,
prop
:
'activeflag'
,
dataType
:
'YESNO'
,
},
{
name
:
'postnum'
,
prop
:
'postnum'
,
dataType
:
'BIGINT'
,
},
{
name
:
'entrytime'
,
prop
:
'entrytime'
,
dataType
:
'DATE'
,
},
{
name
:
'hrpostid'
,
prop
:
'hrpostid'
,
dataType
:
'GUID'
,
},
{
name
:
'hrpost'
,
prop
:
'hrpostid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hrpost/if-001-form/if-001-form-service.ts
0 → 100644
浏览文件 @
4481665d
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HRPostService
from
'@/service/hrpost/hrpost-service'
;
import
IF_001Model
from
'./if-001-form-model'
;
/**
* IF_001 部件服务对象
*
* @export
* @class IF_001Service
*/
export
default
class
IF_001Service
extends
ControlService
{
/**
* 职位服务对象
*
* @type {HRPostService}
* @memberof IF_001Service
*/
public
appEntityService
:
HRPostService
=
new
HRPostService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof IF_001Service
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of IF_001Service.
*
* @param {*} [opts={}]
* @memberof IF_001Service
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
IF_001Model
();
}
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof IF_001Service
*/
private
doItems
(
promise
:
Promise
<
any
>
,
deKeyField
:
string
,
deName
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
promise
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
item
[
deName
]
=
item
[
deKeyField
];
data
[
index
]
=
item
;
});
resolve
(
data
);
}
else
{
reject
([])
}
}).
catch
((
response
:
any
)
=>
{
reject
([])
});
});
}
/**
* 获取跨实体数据集合
*
* @param {string} serviceName 服务名称
* @param {string} interfaceName 接口名称
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any[]>}
* @memberof IF_001Service
*/
@
Errorlog
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
data
.
page
=
data
.
page
?
data
.
page
:
0
;
data
.
size
=
data
.
size
?
data
.
size
:
1000
;
return
Promise
.
reject
([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
wfstart
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFStart
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
wfsubmit
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
,
true
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFSubmit
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Get
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
hrpostid
=
PrimaryKey
;
Data
.
hrpost
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
response
.
data
.
hrpostid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 前台逻辑
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IF_001Service
*/
@
Errorlog
public
frontLogic
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
return
Promise
.
reject
({
status
:
500
,
data
:
{
title
:
'失败'
,
message
:
'系统异常'
}
});
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
})
}
/**
* 处理请求数据
*
* @param action 行为
* @param data 数据
* @memberof IF_001Service
*/
public
handleRequestData
(
action
:
string
,
context
:
any
,
data
:
any
=
{},
isMerge
:
boolean
=
false
){
let
mode
:
any
=
this
.
getMode
();
if
(
!
mode
&&
mode
.
getDataItems
instanceof
Function
)
{
return
data
;
}
let
formItemItems
:
any
[]
=
mode
.
getDataItems
();
let
requestData
:
any
=
{};
if
(
isMerge
&&
(
data
&&
data
.
viewparams
)){
Object
.
assign
(
requestData
,
data
.
viewparams
);
}
formItemItems
.
forEach
((
item
:
any
)
=>
{
if
(
item
&&
item
.
dataType
&&
Object
.
is
(
item
.
dataType
,
'FONTKEY'
)){
if
(
item
&&
item
.
prop
){
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
prop
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
});
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
if
(
tempContext
&&
tempContext
.
srfsessionid
){
tempContext
.
srfsessionkey
=
tempContext
.
srfsessionid
;
delete
tempContext
.
srfsessionid
;
}
return
{
context
:
tempContext
,
data
:
requestData
};
}
/**
* 通过属性名称获取表单项名称
*
* @param name 实体属性名称
* @memberof IF_001Service
*/
public
getItemNameByDeName
(
name
:
string
)
:
string
{
let
itemName
=
name
;
let
mode
:
any
=
this
.
getMode
();
if
(
!
mode
&&
mode
.
getDataItems
instanceof
Function
)
{
return
name
;
}
let
formItemItems
:
any
[]
=
mode
.
getDataItems
();
formItemItems
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
prop
===
name
){
itemName
=
item
.
name
;
}
});
return
itemName
.
trim
();
}
}
\ No newline at end of file
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.html
0 → 100644
浏览文件 @
4481665d
<i-form
:model=
"this.data"
class=
'app-form info-form-mode'
ref=
'form'
id=
'hrpost_if_001'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrpost.if_001_form.details.group1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.postcode.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'postcode'
:itemRules=
"this.rules.postcode"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.postcode')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.postcode.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'postcode'
:value=
"data.postcode"
dataType=
"TEXT"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.hrpostname.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'hrpostname'
:itemRules=
"this.rules.hrpostname"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.hrpostname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrpostname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'hrpostname'
:value=
"data.hrpostname"
dataType=
"TEXT"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.hrdutyname.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'hrdutyname'
:itemRules=
"this.rules.hrdutyname"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.hrdutyname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrdutyname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'hrdutyname'
:value=
"data.hrdutyname"
dataType=
"PICKUPTEXT"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.posttype.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'posttype'
:itemRules=
"this.rules.posttype"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.posttype')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.posttype.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'posttype'
:value=
"data.posttype"
dataType=
"SSCODELIST"
:precision=
"0"
tag=
'CL_HR_004'
codelistType=
'STATIC'
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.hrorganizationname.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'hrorganizationname'
:itemRules=
"this.rules.hrorganizationname"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.hrorganizationname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrorganizationname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'hrorganizationname'
:value=
"data.hrorganizationname"
dataType=
"PICKUPTEXT"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.activeflag.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'activeflag'
:itemRules=
"this.rules.activeflag"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.activeflag')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.activeflag.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'activeflag'
:value=
"data.activeflag"
dataType=
"YESNO"
:precision=
"0"
tag=
'YesNo'
codelistType=
'STATIC'
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.postnum.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'postnum'
:itemRules=
"this.rules.postnum"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.postnum')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.postnum.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'postnum'
:value=
"data.postnum"
dataType=
"BIGINT"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.entrytime.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'entrytime'
:itemRules=
"this.rules.entrytime"
class=
''
:caption=
"$t('entities.hrpost.if_001_form.details.entrytime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.entrytime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'entrytime'
:value=
"data.entrytime"
dataType=
"DATE"
valueFormat=
"%1$tY-%1$tm-%1$td"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.grouppanel1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.grouppanel1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrpost.if_001_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.druipart1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'hrpost'
:parentdata=
'{"srfparentdefname":"PHRPOSTID","srfparentdename":"HRPOST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRPOSTREL_HRPOST_PHRPOSTID","SRFDER1NID":"DER1N_HRPOSTREL_HRPOST_PHRPOSTID"}'
:parameters=
"[
]"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{}'
:localParam =
'{}'
parameterName=
'hrpost'
parentName=
"HRPost"
refviewtype=
'DEGRIDVIEW9'
refreshitems=
''
:ignorefieldvaluechange=
"ignorefieldvaluechange"
viewname=
'hrpost-rel-v-001'
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
style=
"overflow: auto;"
>
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.grouppanel2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.grouppanel2"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrpost.if_001_form.details.grouppanel2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.druipart2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'hrpost'
:parentdata=
'{"srfparentdefname":"HRPOSTID","srfparentdename":"HRPOST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID","SRFDER1NID":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID"}'
:parameters=
"[
]"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{}'
:localParam =
'{}'
parameterName=
'hrpost'
parentName=
"HRPost"
refviewtype=
'DEGRIDVIEW9'
refreshitems=
''
:ignorefieldvaluechange=
"ignorefieldvaluechange"
viewname=
'hrdistribution-v-001'
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
style=
"overflow: auto;"
>
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.vue
0 → 100644
浏览文件 @
4481665d
<
template
src=
"./if-001-form.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { IF_001EditFormBase } from './if-001-form-base';
/**
* form部件
*
* @export
* @class IF_001EditForm
* @extends {IF_001EditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class IF_001EditForm extends IF_001EditFormBase { }
</script>
app_PIM/src/widgets/hrpost/part-v-001-portlet/part-v-001-portlet-base.tsx
0 → 100644
浏览文件 @
4481665d
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
MainControlBase
}
from
'@/studio-core'
;
import
HRPostService
from
'@/service/hrpost/hrpost-service'
;
import
PART_V_001Service
from
'./part-v-001-portlet-service'
;
import
HRPostUIService
from
'@/uiservice/hrpost/hrpost-ui-service'
;
import
{
Environment
}
from
'@/environments/environment'
;
/**
* dashboard_sysportlet1部件基类
*
* @export
* @class MainControlBase
* @extends {PART_V_001PortletBase}
*/
export
class
PART_V_001PortletBase
extends
MainControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected
controlType
:
string
=
'PORTLET'
;
/**
* 建构部件服务对象
*
* @type {PART_V_001Service}
* @memberof PART_V_001PortletBase
*/
public
service
:
PART_V_001Service
=
new
PART_V_001Service
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof PART_V_001PortletBase
*/
public
appEntityService
:
HRPostService
=
new
HRPostService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 长度
*
* @type {number}
* @memberof PART_V_001
*/
@
Prop
()
public
height
?:
number
;
/**
* 宽度
*
* @type {number}
* @memberof PART_V_001
*/
@
Prop
()
public
width
?:
number
;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof PART_V_001Base
*/
@
Prop
({
default
:
false
})
public
isAdaptiveSize
!
:
boolean
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PART_V_001Base
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PART_V_001Base
*/
public
getData
():
any
{
return
{};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof PART_V_001Base
*/
get
getHeight
():
any
{
if
(
!
this
.
$util
.
isEmpty
(
this
.
height
)
&&
!
this
.
$util
.
isNumberNaN
(
this
.
height
)){
if
(
this
.
height
==
0
){
return
'auto'
;
}
else
{
return
this
.
height
+
'px'
;
}
}
else
{
return
'auto'
;
}
}
/**
* vue 生命周期
*
* @memberof PART_V_001Base
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof PART_V_001Base
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
const
refs
:
any
=
this
.
$refs
;
Object
.
keys
(
refs
).
forEach
((
_name
:
string
)
=>
{
this
.
viewState
.
next
({
tag
:
_name
,
action
:
action
,
data
:
data
});
});
});
}
}
/**
* vue 生命周期
*
* @memberof PART_V_001Base
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PART_V_001Base
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
}
app_PIM/src/widgets/hrpost/part-v-001-portlet/part-v-001-portlet-model.ts
0 → 100644
浏览文件 @
4481665d
/**
* PART_V_001 部件模型
*
* @export
* @class PART_V_001Model
*/
export
default
class
PART_V_001Model
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PART_V_001Model
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'hrpost'
,
prop
:
'hrpostid'
,
},
{
name
:
'updateman'
,
},
{
name
:
'hrpostname'
,
},
{
name
:
'createman'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'createdate'
,
},
{
name
:
'hrdutyid'
,
},
{
name
:
'hrdutyname'
,
},
{
name
:
'postcode'
,
},
{
name
:
'posttype'
,
},
{
name
:
'activeflag'
,
},
{
name
:
'hrorganizationid'
,
},
{
name
:
'hrorganizationname'
,
},
{
name
:
'entrytime'
,
},
{
name
:
'postnum'
,
},
]
}
}
app_PIM/src/widgets/hrpost/part-v-001-portlet/part-v-001-portlet-service.ts
0 → 100644
浏览文件 @
4481665d
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* PART_V_001 部件服务对象
*
* @export
* @class PART_V_001Service
*/
export
default
class
PART_V_001Service
extends
ControlService
{
}
app_PIM/src/widgets/hrpost/part-v-001-portlet/part-v-001-portlet.html
0 → 100644
浏览文件 @
4481665d
<div
class=
'portlet part-v-001 '
:style=
"{}"
>
<div
class=
"portlet-without-title"
>
<hrpost-v-004
:viewUsage=
"4"
:viewdata=
"JSON.stringify(context)"
:viewDefaultUsage=
"false"
></hrpost-v-004>
</div>
</div>
app_PIM/src/widgets/hrpost/part-v-001-portlet/part-v-001-portlet.vue
0 → 100644
浏览文件 @
4481665d
<
template
src=
"./part-v-001-portlet.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { PART_V_001PortletBase } from './part-v-001-portlet-base';
/**
* dashboard_sysportlet1部件
*
* @export
* @class PART_V_001Portlet
* @extends {PART_V_001PortletBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class PART_V_001Portlet extends PART_V_001PortletBase { }
</script>
app_PIM/src/widgets/hrpost/v-006tabexppanel-tabexppanel/v-006tabexppanel-tabexppanel.html
浏览文件 @
4481665d
...
...
@@ -63,6 +63,12 @@
<tab-pane
:index=
"2"
name=
'tabviewpanel3'
tab=
'v_006tabexppanel'
class=
''
:label=
"(h) =>{
return h('div', [
h('i',{
class:'fa fa-user',
style:{
'margin-right' : '2px'
}
}),
h('span', '工作人员分配'),
h('Badge', {
props: {
...
...
config.xml
浏览文件 @
4481665d
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
mvn clean package -P
hrapi
cd humanresource-
provider/humanresource-provider-hrapi
mvn -P
hrapi
docker:build
mvn -P
hrapi
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
provider-hrapi.yaml iBizEE --with-registry-auth
mvn clean package -P
pim
cd humanresource-
app/humanresource-app-pim
mvn -P
pim
docker:build
mvn -P
pim
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
app-pim.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
humanresource-app/humanresource-app-pim/src/main/docker/Dockerfile
浏览文件 @
4481665d
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE
8080
EXPOSE
10327
ADD
humanresource-app-pim.jar /humanresource-app-pim.jar
humanresource-app/humanresource-app-pim/src/main/docker/humanresource-app-pim.yaml
浏览文件 @
4481665d
...
...
@@ -3,9 +3,25 @@ services:
humanresource-app-pim
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports
:
-
"
8080:8080
"
-
"
10327:10327
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10327
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/docker/Dockerfile
浏览文件 @
4481665d
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar
EXPOSE
10317
EXPOSE
8081
ADD
humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar
humanresource-provider/humanresource-provider-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
浏览文件 @
4481665d
...
...
@@ -3,25 +3,9 @@ services:
humanresource-provider-hrapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
ports
:
-
"
10317:10317
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10317
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录