Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
ee0c9cf4
提交
ee0c9cf4
编写于
8月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
cfe2c427
变更
33
展开全部
显示空白字符变更
内嵌
并排
正在显示
33 个修改的文件
包含
2907 行增加
和
82 行删除
+2907
-82
view-config.json
app_PIM/public/assets/json/view-config.json
+10
-0
hroperation-unit.ts
app_PIM/src/interface/entity/hroperation-unit.ts
+48
-0
hroperation-unit_en_US.ts
...anres/entities/hroperation-unit/hroperation-unit_en_US.ts
+94
-3
hroperation-unit_zh_CN.ts
...anres/entities/hroperation-unit/hroperation-unit_zh_CN.ts
+94
-3
pim-appmenu.ts
app_PIM/src/mock/app/pim-appmenu/pim-appmenu.ts
+4
-4
viewconfig.ts
app_PIM/src/mock/viewconfig/viewconfig.ts
+8
-0
hroperation-unit-grid-view-base.tsx
...ration-unit-grid-view/hroperation-unit-grid-view-base.tsx
+1003
-0
hroperation-unit-grid-view.html
...roperation-unit-grid-view/hroperation-unit-grid-view.html
+52
-0
hroperation-unit-grid-view.vue
...hroperation-unit-grid-view/hroperation-unit-grid-view.vue
+24
-0
page-register.ts
app_PIM/src/pages/ungroup/pim/page-register.ts
+1
-0
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+14
-0
state.ts
app_PIM/src/store/modules/view-action/state.ts
+11
-0
hroperation-unit-ui-service-base.ts
...vice/hroperation-unit/hroperation-unit-ui-service-base.ts
+1
-0
pim-appmenu-base.tsx
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-base.tsx
+31
-6
pim-appmenu-model.ts
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-model.ts
+20
-6
default-searchform-base.tsx
...ation-unit/default-searchform/default-searchform-base.tsx
+73
-0
default-searchform-model.ts
...ation-unit/default-searchform/default-searchform-model.ts
+31
-0
default-searchform-service.ts
...ion-unit/default-searchform/default-searchform-service.ts
+388
-0
default-searchform.html
...operation-unit/default-searchform/default-searchform.html
+9
-0
default-searchform.vue
...roperation-unit/default-searchform/default-searchform.vue
+22
-0
main-form-base.tsx
...src/widgets/hroperation-unit/main-form/main-form-base.tsx
+21
-6
main-form-model.ts
...src/widgets/hroperation-unit/main-form/main-form-model.ts
+30
-0
main-form.html
...PIM/src/widgets/hroperation-unit/main-form/main-form.html
+88
-29
main-grid-base.tsx
...src/widgets/hroperation-unit/main-grid/main-grid-base.tsx
+201
-0
main-grid-model.ts
...src/widgets/hroperation-unit/main-grid/main-grid-model.ts
+109
-0
main-grid-service.ts
...c/widgets/hroperation-unit/main-grid/main-grid-service.ts
+345
-0
main-grid.html
...PIM/src/widgets/hroperation-unit/main-grid/main-grid.html
+128
-0
main-grid.vue
app_PIM/src/widgets/hroperation-unit/main-grid/main-grid.vue
+22
-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
浏览文件 @
ee0c9cf4
...
@@ -9,6 +9,16 @@
...
@@ -9,6 +9,16 @@
"viewtag"
:
"0d8ac739134947cc5f6545d4041024de"
,
"viewtag"
:
"0d8ac739134947cc5f6545d4041024de"
,
"memo"
:
""
"memo"
:
""
},
},
"hroperationunitgridview"
:
{
"title"
:
"运营单位表格视图"
,
"caption"
:
"运营单位"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Base"
,
"viewname"
:
"HROperationUnitGridView"
,
"viewfilename"
:
"hroperation-unit-grid-view"
,
"viewtag"
:
"286e8ac9eca7b6eb8058fde93995db10"
,
"memo"
:
""
},
"hroperationuniteditview"
:
{
"hroperationuniteditview"
:
{
"title"
:
"运营单位编辑视图"
,
"title"
:
"运营单位编辑视图"
,
"caption"
:
"运营单位"
,
"caption"
:
"运营单位"
,
...
...
app_PIM/src/interface/entity/hroperation-unit.ts
浏览文件 @
ee0c9cf4
...
@@ -61,4 +61,52 @@ export interface HROperationUnit {
...
@@ -61,4 +61,52 @@ export interface HROperationUnit {
* @memberof HROperationUnit
* @memberof HROperationUnit
*/
*/
organizationtype
?:
any
;
organizationtype
?:
any
;
/**
* 组织层级
*
* @returns {*}
* @memberof HROperationUnit
*/
orglevel
?:
any
;
/**
* 排序号
*
* @returns {*}
* @memberof HROperationUnit
*/
showorder
?:
any
;
/**
* 运营单位类型
*
* @returns {*}
* @memberof HROperationUnit
*/
operationunittype
?:
any
;
/**
* 组织简称
*
* @returns {*}
* @memberof HROperationUnit
*/
shortname
?:
any
;
/**
* 备注
*
* @returns {*}
* @memberof HROperationUnit
*/
memo
?:
any
;
/**
* 组织编码
*
* @returns {*}
* @memberof HROperationUnit
*/
orgcode
?:
any
;
}
}
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hroperation-unit/hroperation-unit_en_US.ts
浏览文件 @
ee0c9cf4
...
@@ -8,8 +8,18 @@ export default {
...
@@ -8,8 +8,18 @@ export default {
createdate
:
"建立时间"
,
createdate
:
"建立时间"
,
operationunitname
:
"运营单位名称"
,
operationunitname
:
"运营单位名称"
,
organizationtype
:
"组织类型"
,
organizationtype
:
"组织类型"
,
orglevel
:
"组织层级"
,
showorder
:
"排序号"
,
operationunittype
:
"运营单位类型"
,
shortname
:
"组织简称"
,
memo
:
"备注"
,
orgcode
:
"组织编码"
,
},
},
views
:
{
views
:
{
gridview
:
{
caption
:
"运营单位"
,
title
:
"运营单位表格视图"
,
},
editview
:
{
editview
:
{
caption
:
"运营单位"
,
caption
:
"运营单位"
,
title
:
"运营单位编辑视图"
,
title
:
"运营单位编辑视图"
,
...
@@ -17,10 +27,9 @@ export default {
...
@@ -17,10 +27,9 @@ export default {
},
},
main_form
:
{
main_form
:
{
details
:
{
details
:
{
group1
:
"运营单位基本信息"
,
group1
:
"运营单位信息"
,
grouppanel1
:
"备注"
,
formpage1
:
"基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srforikey
:
""
,
srfkey
:
"运营单位标识"
,
srfkey
:
"运营单位标识"
,
...
@@ -29,11 +38,35 @@ export default {
...
@@ -29,11 +38,35 @@ export default {
srfuf
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
srfsourcekey
:
""
,
operationunitname
:
"运营单位名称"
,
operationunittype
:
"运营单位类型"
,
orgcode
:
"组织编码"
,
shortname
:
"组织简称"
,
showorder
:
"排序号"
,
memo
:
"备注"
,
operationunitid
:
"运营单位标识"
,
operationunitid
:
"运营单位标识"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
},
},
main_grid
:
{
columns
:
{
operationunitname
:
"运营单位名称"
,
operationunittype
:
"运营单位类型"
,
orgcode
:
"组织编码"
,
shortname
:
"组织简称"
,
showorder
:
"排序号"
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
tbitem3
:
{
tbitem3
:
{
caption
:
"Save"
,
caption
:
"Save"
,
...
@@ -80,4 +113,62 @@ export default {
...
@@ -80,4 +113,62 @@ export default {
tip
:
"Help"
,
tip
:
"Help"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"Export"
,
tip
:
"Export {0} Data To Excel"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"Export Data Model"
,
tip
:
"导出数据模型"
,
},
tbitem23
:
{
caption
:
"数据导入"
,
tip
:
"数据导入"
,
},
tbitem17
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"Filter"
,
tip
:
"Filter"
,
},
tbitem18
:
{
caption
:
"Help"
,
tip
:
"Help"
,
},
},
};
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hroperation-unit/hroperation-unit_zh_CN.ts
浏览文件 @
ee0c9cf4
...
@@ -7,8 +7,18 @@ export default {
...
@@ -7,8 +7,18 @@ export default {
createdate
:
"建立时间"
,
createdate
:
"建立时间"
,
operationunitname
:
"运营单位名称"
,
operationunitname
:
"运营单位名称"
,
organizationtype
:
"组织类型"
,
organizationtype
:
"组织类型"
,
orglevel
:
"组织层级"
,
showorder
:
"排序号"
,
operationunittype
:
"运营单位类型"
,
shortname
:
"组织简称"
,
memo
:
"备注"
,
orgcode
:
"组织编码"
,
},
},
views
:
{
views
:
{
gridview
:
{
caption
:
"运营单位"
,
title
:
"运营单位表格视图"
,
},
editview
:
{
editview
:
{
caption
:
"运营单位"
,
caption
:
"运营单位"
,
title
:
"运营单位编辑视图"
,
title
:
"运营单位编辑视图"
,
...
@@ -16,10 +26,9 @@ export default {
...
@@ -16,10 +26,9 @@ export default {
},
},
main_form
:
{
main_form
:
{
details
:
{
details
:
{
group1
:
"运营单位基本信息"
,
group1
:
"运营单位信息"
,
grouppanel1
:
"备注"
,
formpage1
:
"基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srforikey
:
""
,
srfkey
:
"运营单位标识"
,
srfkey
:
"运营单位标识"
,
...
@@ -28,11 +37,35 @@ export default {
...
@@ -28,11 +37,35 @@ export default {
srfuf
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
srfsourcekey
:
""
,
operationunitname
:
"运营单位名称"
,
operationunittype
:
"运营单位类型"
,
orgcode
:
"组织编码"
,
shortname
:
"组织简称"
,
showorder
:
"排序号"
,
memo
:
"备注"
,
operationunitid
:
"运营单位标识"
,
operationunitid
:
"运营单位标识"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
},
},
main_grid
:
{
columns
:
{
operationunitname
:
"运营单位名称"
,
operationunittype
:
"运营单位类型"
,
orgcode
:
"组织编码"
,
shortname
:
"组织简称"
,
showorder
:
"排序号"
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
tbitem3
:
{
tbitem3
:
{
caption
:
"保存"
,
caption
:
"保存"
,
...
@@ -79,4 +112,62 @@ export default {
...
@@ -79,4 +112,62 @@ export default {
tip
:
"帮助"
,
tip
:
"帮助"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"导出"
,
tip
:
"导出"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"导出数据模型"
,
tip
:
"导出数据模型"
,
},
tbitem23
:
{
caption
:
"数据导入"
,
tip
:
"数据导入"
,
},
tbitem17
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"过滤"
,
tip
:
"过滤"
,
},
tbitem18
:
{
caption
:
"帮助"
,
tip
:
"帮助"
,
},
},
};
};
\ No newline at end of file
app_PIM/src/mock/app/pim-appmenu/pim-appmenu.ts
浏览文件 @
ee0c9cf4
...
@@ -137,7 +137,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
...
@@ -137,7 +137,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
iconcls
:
'fa fa-user'
,
iconcls
:
'fa fa-user'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
3
'
,
appfunctag
:
'_
4
'
,
resourcetag
:
''
,
resourcetag
:
''
,
},
},
],
],
...
@@ -172,7 +172,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
...
@@ -172,7 +172,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
hidden
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
opendefault
:
false
,
iconcls
:
'fa fa-
list-ul
'
,
iconcls
:
'fa fa-
shirtsinbulk
'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_2'
,
appfunctag
:
'_2'
,
...
@@ -193,7 +193,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
...
@@ -193,7 +193,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
iconcls
:
'fa fa-building-o'
,
iconcls
:
'fa fa-building-o'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
''
,
appfunctag
:
'
_3
'
,
resourcetag
:
''
,
resourcetag
:
''
,
},
},
{
{
...
@@ -247,7 +247,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
...
@@ -247,7 +247,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
iconcls
:
'fa fa-cubes'
,
iconcls
:
'fa fa-cubes'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
4
'
,
appfunctag
:
'_
5
'
,
resourcetag
:
''
,
resourcetag
:
''
,
},
},
{
{
...
...
app_PIM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
ee0c9cf4
...
@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
...
@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROrganizationGridView"
,
"viewname"
:
"HROrganizationGridView"
,
"viewtag"
:
"0d8ac739134947cc5f6545d4041024de"
"viewtag"
:
"0d8ac739134947cc5f6545d4041024de"
},
},
"hroperationunitgridview"
:
{
"title"
:
"运营单位表格视图"
,
"caption"
:
"运营单位"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Base"
,
"viewname"
:
"HROperationUnitGridView"
,
"viewtag"
:
"286e8ac9eca7b6eb8058fde93995db10"
},
"hroperationuniteditview"
:
{
"hroperationuniteditview"
:
{
"title"
:
"运营单位编辑视图"
,
"title"
:
"运营单位编辑视图"
,
"caption"
:
"运营单位"
,
"caption"
:
"运营单位"
,
...
...
app_PIM/src/pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view-base.tsx
0 → 100644
浏览文件 @
ee0c9cf4
此差异已折叠。
点击以展开。
app_PIM/src/pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.html
0 → 100644
浏览文件 @
ee0c9cf4
<studio-view-style2
viewName=
"hroperationunitgridview"
viewTitle=
"运营单位表格视图"
class=
'degridview hroperation-unit-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>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
v-show=
"isExpandSearchForm"
loaddraftAction=
"FilterGetDraft"
loadAction=
"FilterGet"
name=
"searchform"
ref=
'searchform'
@
save=
"searchform_save($event)"
@
search=
"searchform_search($event)"
@
load=
"searchform_load($event)"
@
closeview=
"closeView($event)"
>
</view
_searchform
>
</template>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.vue
0 → 100644
浏览文件 @
ee0c9cf4
<
template
src=
"./hroperation-unit-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROperationUnitGridViewBase } from './hroperation-unit-grid-view-base';
import view_grid from '@widgets/hroperation-unit/main-grid/main-grid.vue';
import view_searchform from '@widgets/hroperation-unit/default-searchform/default-searchform.vue';
/**
* 运营单位表格视图视图
*
* @export
* @class HROperationUnitGridView
* @extends {HROperationUnitGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HROperationUnitGridView extends HROperationUnitGridViewBase { }
</script>
app_PIM/src/pages/ungroup/pim/page-register.ts
浏览文件 @
ee0c9cf4
export
const
PageComponents
=
{
export
const
PageComponents
=
{
install
(
Vue
:
any
,
opt
:
any
)
{
install
(
Vue
:
any
,
opt
:
any
)
{
Vue
.
component
(
'hremployee-edit-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue'
));
Vue
.
component
(
'hremployee-edit-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue'
));
Vue
.
component
(
'hroperation-unit-grid-view'
,
()
=>
import
(
'@pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.vue'
));
Vue
.
component
(
'hrlegal-edit-view'
,
()
=>
import
(
'@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'
));
Vue
.
component
(
'hrlegal-edit-view'
,
()
=>
import
(
'@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'
));
Vue
.
component
(
'hroperation-unit-edit-view'
,
()
=>
import
(
'@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'
));
Vue
.
component
(
'hroperation-unit-edit-view'
,
()
=>
import
(
'@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'
));
Vue
.
component
(
'hremployee-grid-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-grid-view/hremployee-grid-view.vue'
));
Vue
.
component
(
'hremployee-grid-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-grid-view/hremployee-grid-view.vue'
));
...
...
app_PIM/src/pages/ungroup/pim/router.ts
浏览文件 @
ee0c9cf4
...
@@ -57,6 +57,20 @@ const router = new Router({
...
@@ -57,6 +57,20 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/human-resource/hremployee-edit-view/hremployee-edit-view.vue'
),
},
},
{
path
:
'hroperationunits/:hroperationunit?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.hroperationunit.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hroperationunits'
,
parameterName
:
'hroperationunit'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.vue'
),
},
{
{
path
:
'hrlegals/:hrlegal?/editview/:editview?'
,
path
:
'hrlegals/:hrlegal?/editview/:editview?'
,
meta
:
{
meta
:
{
...
...
app_PIM/src/store/modules/view-action/state.ts
浏览文件 @
ee0c9cf4
...
@@ -15,6 +15,16 @@ export const viewstate: any = {
...
@@ -15,6 +15,16 @@ export const viewstate: any = {
'b4ef4b87eb87fc3a2a8479027d62ac4c'
,
'b4ef4b87eb87fc3a2a8479027d62ac4c'
,
],
],
},
},
{
viewtag
:
'286e8ac9eca7b6eb8058fde93995db10'
,
viewmodule
:
'Base'
,
viewname
:
'HROperationUnitGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'28aca0d4ad43b8ef609172d9be9359c7'
,
],
},
{
{
viewtag
:
'28aca0d4ad43b8ef609172d9be9359c7'
,
viewtag
:
'28aca0d4ad43b8ef609172d9be9359c7'
,
viewmodule
:
'Base'
,
viewmodule
:
'Base'
,
...
@@ -41,6 +51,7 @@ export const viewstate: any = {
...
@@ -41,6 +51,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewaction
:
''
,
viewdatachange
:
false
,
viewdatachange
:
false
,
refviews
:
[
refviews
:
[
'286e8ac9eca7b6eb8058fde93995db10'
,
'9559258a9c3ac118e15ead941b780682'
,
'9559258a9c3ac118e15ead941b780682'
,
'0d8ac739134947cc5f6545d4041024de'
,
'0d8ac739134947cc5f6545d4041024de'
,
'41036146909ab3f28ff59b80370514b2'
,
'41036146909ab3f28ff59b80370514b2'
,
...
...
app_PIM/src/uiservice/hroperation-unit/hroperation-unit-ui-service-base.ts
浏览文件 @
ee0c9cf4
...
@@ -89,6 +89,7 @@ export default class HROperationUnitUIServiceBase extends UIService {
...
@@ -89,6 +89,7 @@ export default class HROperationUnitUIServiceBase extends UIService {
* @memberof HROperationUnitUIServiceBase
* @memberof HROperationUnitUIServiceBase
*/
*/
public
initViewMap
(){
public
initViewMap
(){
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'hroperationunits'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'hroperationunits'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'hroperationunits'
});
}
}
...
...
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-base.tsx
浏览文件 @
ee0c9cf4
...
@@ -15,12 +15,14 @@ export class PIMBase extends Vue {
...
@@ -15,12 +15,14 @@ export class PIMBase extends Vue {
if
(
item
)
{
if
(
item
)
{
let
judge
=
true
;
let
judge
=
true
;
switch
(
item
.
appfunctag
)
{
switch
(
item
.
appfunctag
)
{
case
'_4'
:
case
'_5'
:
this
.
click_4
(
item
);
break
;
this
.
click_5
(
item
);
break
;
case
'_2'
:
this
.
click_2
(
item
);
break
;
case
'_3'
:
case
'_3'
:
this
.
click_3
(
item
);
break
;
this
.
click_3
(
item
);
break
;
case
'_2'
:
this
.
click_2
(
item
);
break
;
case
'_4'
:
this
.
click_4
(
item
);
break
;
default
:
default
:
judge
=
false
;
judge
=
false
;
console
.
warn
(
'未指定应用功能'
);
console
.
warn
(
'未指定应用功能'
);
...
@@ -37,7 +39,7 @@ export class PIMBase extends Vue {
...
@@ -37,7 +39,7 @@ export class PIMBase extends Vue {
* @param {*} [item={}]
* @param {*} [item={}]
* @memberof PIM
* @memberof PIM
*/
*/
public
click_
4
(
item
:
any
=
{})
{
public
click_
5
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
deResParameters
:
any
[]
=
[];
...
@@ -54,6 +56,29 @@ export class PIMBase extends Vue {
...
@@ -54,6 +56,29 @@ export class PIMBase extends Vue {
})
})
}
}
/**
* 运营单位
*
* @param {*} [item={}]
* @memberof PIM
*/
public
click_3
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hroperationunits'
,
parameterName
:
'hroperationunit'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
/**
* 法人
* 法人
*
*
...
@@ -83,7 +108,7 @@ export class PIMBase extends Vue {
...
@@ -83,7 +108,7 @@ export class PIMBase extends Vue {
* @param {*} [item={}]
* @param {*} [item={}]
* @memberof PIM
* @memberof PIM
*/
*/
public
click_
3
(
item
:
any
=
{})
{
public
click_
4
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
deResParameters
:
any
[]
=
[];
...
...
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-model.ts
浏览文件 @
ee0c9cf4
...
@@ -147,7 +147,7 @@ export default class PIMModel {
...
@@ -147,7 +147,7 @@ export default class PIMModel {
iconcls
:
'fa fa-user'
,
iconcls
:
'fa fa-user'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
3
'
,
appfunctag
:
'_
4
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
viewname
:
'hremployee-grid-view'
,
viewname
:
'hremployee-grid-view'
,
resourcetag
:
''
,
resourcetag
:
''
,
...
@@ -186,7 +186,7 @@ export default class PIMModel {
...
@@ -186,7 +186,7 @@ export default class PIMModel {
hidden
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
opendefault
:
false
,
iconcls
:
'fa fa-
list-ul
'
,
iconcls
:
'fa fa-
shirtsinbulk
'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_2'
,
appfunctag
:
'_2'
,
...
@@ -210,7 +210,9 @@ export default class PIMModel {
...
@@ -210,7 +210,9 @@ export default class PIMModel {
iconcls
:
'fa fa-building-o'
,
iconcls
:
'fa fa-building-o'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
''
,
appfunctag
:
'_3'
,
appfuncyype
:
'APPVIEW'
,
viewname
:
'hroperation-unit-grid-view'
,
resourcetag
:
''
,
resourcetag
:
''
,
}
}
,
,
...
@@ -267,7 +269,7 @@ export default class PIMModel {
...
@@ -267,7 +269,7 @@ export default class PIMModel {
iconcls
:
'fa fa-cubes'
,
iconcls
:
'fa fa-cubes'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
4
'
,
appfunctag
:
'_
5
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
viewname
:
'hrorganization-grid-view'
,
viewname
:
'hrorganization-grid-view'
,
resourcetag
:
''
,
resourcetag
:
''
,
...
@@ -463,7 +465,7 @@ export default class PIMModel {
...
@@ -463,7 +465,7 @@ export default class PIMModel {
*/
*/
private
funcs
:
any
[]
=
[
private
funcs
:
any
[]
=
[
{
{
appfunctag
:
'_
4
'
,
appfunctag
:
'_
5
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
openmode
:
''
,
codename
:
'hrorganizationgridview'
,
codename
:
'hrorganizationgridview'
,
...
@@ -474,6 +476,18 @@ export default class PIMModel {
...
@@ -474,6 +476,18 @@ export default class PIMModel {
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
],
},
},
{
appfunctag
:
'_3'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
codename
:
'hroperationunitgridview'
,
deResParameters
:
[],
routepath
:
'/pim/:pim?/hroperationunits/:hroperationunit?/gridview/:gridview?'
,
parameters
:
[
{
pathName
:
'hroperationunits'
,
parameterName
:
'hroperationunit'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
},
{
{
appfunctag
:
'_2'
,
appfunctag
:
'_2'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
...
@@ -487,7 +501,7 @@ export default class PIMModel {
...
@@ -487,7 +501,7 @@ export default class PIMModel {
],
],
},
},
{
{
appfunctag
:
'_
3
'
,
appfunctag
:
'_
4
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
openmode
:
''
,
codename
:
'hremployeegridview'
,
codename
:
'hremployeegridview'
,
...
...
app_PIM/src/widgets/hroperation-unit/default-searchform/default-searchform-base.tsx
0 → 100644
浏览文件 @
ee0c9cf4
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
SearchFormControlBase
}
from
'@/studio-core'
;
import
HROperationUnitService
from
'@/service/hroperation-unit/hroperation-unit-service'
;
import
DefaultService
from
'./default-searchform-service'
;
import
HROperationUnitUIService
from
'@/uiservice/hroperation-unit/hroperation-unit-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
/**
* searchform部件基类
*
* @export
* @class SearchFormControlBase
* @extends {DefaultSearchFormBase}
*/
export
class
DefaultSearchFormBase
extends
SearchFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
controlType
:
string
=
'SEARCHFORM'
;
/**
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof DefaultSearchFormBase
*/
public
service
:
DefaultService
=
new
DefaultService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HROperationUnitService}
* @memberof DefaultSearchFormBase
*/
public
appEntityService
:
HROperationUnitService
=
new
HROperationUnitService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 表单数据对象
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
data
:
any
=
{
};
/**
* 详情模型集合
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
detailsModel
:
any
=
{
formpage1
:
new
FormPageModel
({
caption
:
'常规条件'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
};
}
\ No newline at end of file
app_PIM/src/widgets/hroperation-unit/default-searchform/default-searchform-model.ts
0 → 100644
浏览文件 @
ee0c9cf4
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export
default
class
DefaultModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hroperation-unit/default-searchform/default-searchform-service.ts
0 → 100644
浏览文件 @
ee0c9cf4
此差异已折叠。
点击以展开。
app_PIM/src/widgets/hroperation-unit/default-searchform/default-searchform.html
0 → 100644
浏览文件 @
ee0c9cf4
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'searchform'
style=
""
>
<input
style=
"display:none;"
/>
<div
class=
"search-button"
>
<i-button
size=
"small"
type=
"primary"
ghost
@
click=
"onSearch.apply(_self, arguments)"
>
{{$t('app.searchButton.search')}}
</i-button>
<i-button
size=
"small"
type=
"default"
ghost
@
click=
"onReset.apply(_self, arguments)"
>
{{this.$t('app.searchButton.reset')}}
</i-button>
</div>
<div
class=
"form-content"
>
</div>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hroperation-unit/default-searchform/default-searchform.vue
0 → 100644
浏览文件 @
ee0c9cf4
<
template
src=
"./default-searchform.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DefaultSearchFormBase } from './default-searchform-base';
/**
* searchform部件
*
* @export
* @class DefaultSearchForm
* @extends {DefaultSearchFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DefaultSearchForm extends DefaultSearchFormBase { }
</script>
app_PIM/src/widgets/hroperation-unit/main-form/main-form-base.tsx
浏览文件 @
ee0c9cf4
...
@@ -73,6 +73,12 @@ export class MainEditFormBase extends EditFormControlBase {
...
@@ -73,6 +73,12 @@ export class MainEditFormBase extends EditFormControlBase {
srfuf
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
srfsourcekey
:
null
,
operationunitname
:
null
,
operationunittype
:
null
,
orgcode
:
null
,
shortname
:
null
,
showorder
:
null
,
memo
:
null
,
operationunitid
:
null
,
operationunitid
:
null
,
hroperationunit
:
null
,
hroperationunit
:
null
,
};
};
...
@@ -102,13 +108,11 @@ export class MainEditFormBase extends EditFormControlBase {
...
@@ -102,13 +108,11 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
* @memberof MainEditFormBase
*/
*/
public
detailsModel
:
any
=
{
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'运营单位
基本
信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hroperationunit.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
group1
:
new
FormGroupPanelModel
({
caption
:
'运营单位信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hroperationunit.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
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.hroperationunit.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
group2
:
new
FormGroupPanelModel
({
caption
:
'操作信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hroperationunit.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage
2
:
new
FormPageModel
({
caption
:
'其它'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage2
'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
formpage
1
:
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
}),
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
...
@@ -126,8 +130,19 @@ export class MainEditFormBase extends EditFormControlBase {
...
@@ -126,8 +130,19 @@ export class MainEditFormBase extends EditFormControlBase {
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
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
}),
operationunitname
:
new
FormItemModel
({
caption
:
'运营单位名称'
,
detailType
:
'FORMITEM'
,
name
:
'operationunitname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
operationunittype
:
new
FormItemModel
({
caption
:
'运营单位类型'
,
detailType
:
'FORMITEM'
,
name
:
'operationunittype'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
orgcode
:
new
FormItemModel
({
caption
:
'组织编码'
,
detailType
:
'FORMITEM'
,
name
:
'orgcode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
shortname
:
new
FormItemModel
({
caption
:
'组织简称'
,
detailType
:
'FORMITEM'
,
name
:
'shortname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
showorder
:
new
FormItemModel
({
caption
:
'排序号'
,
detailType
:
'FORMITEM'
,
name
:
'showorder'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
operationunitid
:
new
FormItemModel
({
caption
:
'运营单位标识'
,
detailType
:
'FORMITEM'
,
name
:
'operationunitid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
operationunitid
:
new
FormItemModel
({
caption
:
'运营单位标识'
,
detailType
:
'FORMITEM'
,
name
:
'operationunitid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
form
:
new
FormTabPanelModel
({
caption
:
'form'
,
detailType
:
'TABPANEL'
,
name
:
'form'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
tabPages
:
[{
name
:
'formpage1'
,
index
:
0
,
visible
:
true
},
{
name
:
'formpage2'
,
index
:
1
,
visible
:
true
}]
}),
};
};
}
}
\ No newline at end of file
app_PIM/src/widgets/hroperation-unit/main-form/main-form-model.ts
浏览文件 @
ee0c9cf4
...
@@ -55,6 +55,36 @@ export default class MainModel {
...
@@ -55,6 +55,36 @@ export default class MainModel {
{
{
name
:
'srfsourcekey'
,
name
:
'srfsourcekey'
,
},
},
{
name
:
'operationunitname'
,
prop
:
'operationunitname'
,
dataType
:
'TEXT'
,
},
{
name
:
'operationunittype'
,
prop
:
'operationunittype'
,
dataType
:
'INHERIT'
,
},
{
name
:
'orgcode'
,
prop
:
'orgcode'
,
dataType
:
'INHERIT'
,
},
{
name
:
'shortname'
,
prop
:
'shortname'
,
dataType
:
'INHERIT'
,
},
{
name
:
'showorder'
,
prop
:
'showorder'
,
dataType
:
'INHERIT'
,
},
{
name
:
'memo'
,
prop
:
'memo'
,
dataType
:
'INHERIT'
,
},
{
{
name
:
'operationunitid'
,
name
:
'operationunitid'
,
prop
:
'operationunitid'
,
prop
:
'operationunitid'
,
...
...
app_PIM/src/widgets/hroperation-unit/main-form/main-form.html
浏览文件 @
ee0c9cf4
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'hroperationunit_main'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'hroperationunit_main'
style=
""
>
<input
style=
"display:none;"
/>
<input
style=
"display:none;"
/>
<row
>
<row
>
<tabs
:animated=
"false"
size=
"small"
name=
'main'
:value=
"detailsModel.form.activiedPage"
@
on-click=
"detailsModel.form.clickPage($event)"
>
<tab-pane
v-show=
"detailsModel.formpage1.visible"
name=
'formpage1'
:index=
"0"
tab=
'main'
class=
''
:label=
"(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.hroperationunit.main_form.details.formpage1')
])
}"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<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.hroperationunit.main_form.details.group1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hroperationunit.main_form.details.group1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.operationunitname.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=
'operationunitname'
:itemRules=
"this.rules.operationunitname"
class=
''
:caption=
"$t('entities.hroperationunit.main_form.details.operationunitname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.operationunitname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.operationunitname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.operationunitname.disabled"
type=
'text'
style=
""
>
</input-box>
</row>
</app-form-item>
</app-form-group>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.operationunittype.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=
'operationunittype'
:itemRules=
"this.rules.operationunittype"
class=
''
:caption=
"$t('entities.hroperationunit.main_form.details.operationunittype')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.operationunittype.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.operationunittype"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.operationunittype.disabled"
valueType=
"string"
tag=
'CL_HR_0001'
codelistType=
'STATIC'
placeholder=
'请选择...'
/>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.orgcode.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=
'orgcode'
:itemRules=
"this.rules.orgcode"
class=
''
:caption=
"$t('entities.hroperationunit.main_form.details.orgcode')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.orgcode.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.orgcode"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.orgcode.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.shortname.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=
'shortname'
:itemRules=
"this.rules.shortname"
class=
''
:caption=
"$t('entities.hroperationunit.main_form.details.shortname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.shortname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.shortname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.shortname.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.showorder.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=
'showorder'
:itemRules=
"this.rules.showorder"
class=
''
:caption=
"$t('entities.hroperationunit.main_form.details.showorder')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.showorder.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.showorder"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.showorder.disabled"
type=
'number'
style=
""
>
</input-box>
</app-form-item>
</tab-pane>
</i-col>
<tab-pane
v-show=
"detailsModel.formpage2.visible"
name=
'formpage2'
:index=
"1"
tab=
'main'
class=
''
:label=
"(h) =>{
</row>
return h('span',{
</app-form-group>
class:'caption'
},[
$t('entities.hroperationunit.main_form.details.formpage2')
])
}"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
</i-col>
<app-form-group
:model=
"detailsModel.group2"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hroperationunit.main_form.details.group2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.grouppanel1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<app-form-group
:model=
"detailsModel.grouppanel1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hroperationunit.main_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.memo.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'memo'
:itemRules=
"this.rules.memo"
class=
''
:caption=
"$t('entities.hroperationunit.main_form.details.memo')"
uiStyle=
"DEFAULT"
:labelWidth=
"0"
:isShowCaption=
"false"
:error=
"detailsModel.memo.error"
:isEmptyCaption=
"false"
labelPos=
"NONE"
>
<input-box
v-model=
"data.memo"
:textareaId=
"this.$util.createUUID()"
:disabled=
"detailsModel.memo.disabled"
type=
'textarea'
textareaStyle=
"height:200px;"
></input-box>
</app-form-item>
</i-col>
</row>
</row>
</app-form-group>
</app-form-group>
...
@@ -44,7 +105,5 @@
...
@@ -44,7 +105,5 @@
</i-col>
</i-col>
</tab-pane>
</tabs>
</row>
</row>
</i-form>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hroperation-unit/main-grid/main-grid-base.tsx
0 → 100644
浏览文件 @
ee0c9cf4
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
GridControlBase
}
from
'@/studio-core'
;
import
HROperationUnitService
from
'@/service/hroperation-unit/hroperation-unit-service'
;
import
MainService
from
'./main-grid-service'
;
import
HROperationUnitUIService
from
'@/uiservice/hroperation-unit/hroperation-unit-ui-service'
;
import
{
FormItemModel
}
from
'@/model/form-detail'
;
/**
* grid部件基类
*
* @export
* @class GridControlBase
* @extends {MainGridBase}
*/
export
class
MainGridBase
extends
GridControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
controlType
:
string
=
'GRID'
;
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainGridBase
*/
public
service
:
MainService
=
new
MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HROperationUnitService}
* @memberof MainGridBase
*/
public
appEntityService
:
HROperationUnitService
=
new
HROperationUnitService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 界面UI服务对象
*
* @type {HROperationUnitUIService}
* @memberof MainBase
*/
public
appUIService
:
HROperationUnitUIService
=
new
HROperationUnitUIService
(
this
.
$store
);
/**
* 界面行为模型
*
* @type {*}
* @memberof MainBase
*/
public
ActionModel
:
any
=
{
};
/**
* 本地缓存标识
*
* @protected
* @type {string}
* @memberof MainBase
*/
protected
localStorageTag
:
string
=
'hroperationunit_main_grid'
;
/**
* 所有列成员
*
* @type {any[]}
* @memberof MainGridBase
*/
public
allColumns
:
any
[]
=
[
{
name
:
'operationunitname'
,
label
:
'运营单位名称'
,
langtag
:
'entities.hroperationunit.main_grid.columns.operationunitname'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'operationunittype'
,
label
:
'运营单位类型'
,
langtag
:
'entities.hroperationunit.main_grid.columns.operationunittype'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'orgcode'
,
label
:
'组织编码'
,
langtag
:
'entities.hroperationunit.main_grid.columns.orgcode'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'shortname'
,
label
:
'组织简称'
,
langtag
:
'entities.hroperationunit.main_grid.columns.shortname'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'showorder'
,
label
:
'排序号'
,
langtag
:
'entities.hroperationunit.main_grid.columns.showorder'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
]
/**
* 获取表格行模型
*
* @type {*}
* @memberof MainGridBase
*/
public
getGridRowModel
(){
return
{
srfkey
:
new
FormItemModel
(),
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof MainGridBase
*/
public
rules
:
any
=
{
srfkey
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'运营单位标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'运营单位标识 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 获取对应列class
*
* @type {*}
* @memberof MainBase
*/
public
hasRowEdit
:
any
=
{
'operationunitname'
:
false
,
'operationunittype'
:
false
,
'orgcode'
:
false
,
'shortname'
:
false
,
'showorder'
:
false
,
};
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof MainBase
*/
public
getCellClassName
(
args
:
{
row
:
any
,
column
:
any
,
rowIndex
:
number
,
columnIndex
:
number
}):
any
{
return
(
this
.
hasRowEdit
[
args
.
column
.
property
]
&&
this
.
actualIsOpenEdit
)
?
"edit-cell"
:
"info-cell"
;
}
/**
* 导出数据格式化
*
* @param {*} filterVal
* @param {*} jsonData
* @param {any[]} [codelistColumns=[]]
* @returns {Promise<any>}
* @memberof MainGridBase
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
{
name
:
'operationunittype'
,
srfkey
:
'CL_HR_0001'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
]);
}
}
\ No newline at end of file
app_PIM/src/widgets/hroperation-unit/main-grid/main-grid-model.ts
0 → 100644
浏览文件 @
ee0c9cf4
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
isDEExport
:
boolean
=
false
;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
getDataItems
():
any
[]
{
if
(
this
.
isDEExport
){
return
[
]
}
else
{
return
[
{
name
:
'orgcode'
,
prop
:
'orgcode'
,
dataType
:
'INHERIT'
,
},
{
name
:
'showorder'
,
prop
:
'showorder'
,
dataType
:
'INHERIT'
,
},
{
name
:
'shortname'
,
prop
:
'shortname'
,
dataType
:
'INHERIT'
,
},
{
name
:
'srfmajortext'
,
prop
:
'operationunitname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfdataaccaction'
,
prop
:
'operationunitid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfkey'
,
prop
:
'operationunitid'
,
dataType
:
'GUID'
,
isEditable
:
true
},
{
name
:
'operationunittype'
,
prop
:
'operationunittype'
,
dataType
:
'INHERIT'
,
},
{
name
:
'operationunitname'
,
prop
:
'operationunitname'
,
dataType
:
'TEXT'
,
},
{
name
:
'hroperationunit'
,
prop
:
'operationunitid'
,
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'filter'
,
prop
:
'filter'
},
{
name
:
'page'
,
prop
:
'page'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'srfparentdata'
,
prop
:
'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
}
\ No newline at end of file
app_PIM/src/widgets/hroperation-unit/main-grid/main-grid-service.ts
0 → 100644
浏览文件 @
ee0c9cf4
此差异已折叠。
点击以展开。
app_PIM/src/widgets/hroperation-unit/main-grid/main-grid.html
0 → 100644
浏览文件 @
ee0c9cf4
<div
:class=
"{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }"
>
<i-form>
<el-table
v-if=
"isDisplay === true"
:default-sort=
"{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"
@
sort-change=
"onSortChange($event)"
:border=
"isDragendCol"
:highlight-current-row =
"isSingleSelect"
:row-class-name=
"getRowClassName.bind(_self)"
:cell-class-name=
"getCellClassName.bind(_self)"
size=
"mini"
stripe
@
row-click=
"rowClick($event)"
@
select-all=
"selectAll($event)"
@
select=
"select($event)"
@
row-class-name=
"onRowClassName($event)"
@
row-dblclick=
"rowDBLClick($event)"
ref=
'multipleTable'
:data=
"items"
:show-header=
"!isHideHeader"
>
<template
slot=
"empty"
>
无数据
<span
class=
"quick-toolbar"
>
</span>
</template>
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"getColumnState('operationunitname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'operationunitname'"
:label=
"$t('entities.hroperationunit.main_grid.columns.operationunitname')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hroperationunit.main_grid.columns.operationunitname')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.operationunitname}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('operationunittype')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'operationunittype'"
:label=
"$t('entities.hroperationunit.main_grid.columns.operationunittype')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hroperationunit.main_grid.columns.operationunittype')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.operationunittype"
tag=
'CL_HR_0001'
codelistType=
'STATIC'
></codelist>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('orgcode')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'orgcode'"
:label=
"$t('entities.hroperationunit.main_grid.columns.orgcode')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hroperationunit.main_grid.columns.orgcode')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.orgcode}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('shortname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'shortname'"
:label=
"$t('entities.hroperationunit.main_grid.columns.shortname')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hroperationunit.main_grid.columns.shortname')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.shortname}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('showorder')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'showorder'"
:label=
"$t('entities.hroperationunit.main_grid.columns.showorder')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hroperationunit.main_grid.columns.showorder')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.showorder}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"adaptiveState"
>
<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/hroperation-unit/main-grid/main-grid.vue
0 → 100644
浏览文件 @
ee0c9cf4
<
template
src=
"./main-grid.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainGridBase } from './main-grid-base';
/**
* grid部件
*
* @export
* @class MainGrid
* @extends {MainGridBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainGrid extends MainGridBase { }
</script>
config.xml
浏览文件 @
ee0c9cf4
...
@@ -37,11 +37,11 @@
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizhumanresources/
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
cd ibizhumanresources/
mvn clean package -P
hrapi
mvn clean package -P
pim
cd humanresource-
provider/humanresource-provider-hrapi
cd humanresource-
app/humanresource-app-pim
mvn -P
hrapi
docker:build
mvn -P
pim
docker:build
mvn -P
hrapi
docker:push
mvn -P
pim
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
provider-hrapi.yaml iBizEE --with-registry-auth
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
app-pim.yaml iBizEE --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
humanresource-app/humanresource-app-pim/src/main/docker/Dockerfile
浏览文件 @
ee0c9cf4
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
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
ADD
humanresource-app-pim.jar /humanresource-app-pim.jar
humanresource-app/humanresource-app-pim/src/main/docker/humanresource-app-pim.yaml
浏览文件 @
ee0c9cf4
...
@@ -3,9 +3,25 @@ services:
...
@@ -3,9 +3,25 @@ services:
humanresource-app-pim
:
humanresource-app-pim
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports
:
ports
:
-
"
8080:8080
"
-
"
10327:10327
"
networks
:
networks
:
-
agent_network
-
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
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/docker/Dockerfile
浏览文件 @
ee0c9cf4
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar
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
ADD
humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar
humanresource-provider/humanresource-provider-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
浏览文件 @
ee0c9cf4
...
@@ -3,25 +3,9 @@ services:
...
@@ -3,25 +3,9 @@ services:
humanresource-provider-hrapi
:
humanresource-provider-hrapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
ports
:
ports
:
-
"
10317:10317
"
-
"
8081:8081
"
networks
:
networks
:
-
agent_network
-
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
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录