Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
2bfe9df7
提交
2bfe9df7
编写于
8月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
8217b24b
变更
178
显示空白字符变更
内嵌
并排
正在显示
178 个修改的文件
包含
4432 行增加
和
484 行删除
+4432
-484
view-config.json
app_PIM/public/assets/json/view-config.json
+62
-2
hrdistribution_en_US.ts
...le/lanres/entities/hrdistribution/hrdistribution_en_US.ts
+42
-41
hrdistribution_zh_CN.ts
...le/lanres/entities/hrdistribution/hrdistribution_zh_CN.ts
+42
-41
hremployee_en_US.ts
...src/locale/lanres/entities/hremployee/hremployee_en_US.ts
+8
-0
hremployee_zh_CN.ts
...src/locale/lanres/entities/hremployee/hremployee_zh_CN.ts
+8
-0
hrpost-rel_en_US.ts
...src/locale/lanres/entities/hrpost-rel/hrpost-rel_en_US.ts
+42
-41
hrpost-rel_zh_CN.ts
...src/locale/lanres/entities/hrpost-rel/hrpost-rel_zh_CN.ts
+42
-41
hrpost_en_US.ts
app_PIM/src/locale/lanres/entities/hrpost/hrpost_en_US.ts
+10
-2
hrpost_zh_CN.ts
app_PIM/src/locale/lanres/entities/hrpost/hrpost_zh_CN.ts
+10
-2
hrdistributions.ts
app_PIM/src/mock/entity/hrdistributions/hrdistributions.ts
+271
-0
hrpost-rels.ts
app_PIM/src/mock/entity/hrpost-rels/hrpost-rels.ts
+271
-0
viewconfig.ts
app_PIM/src/mock/viewconfig/viewconfig.ts
+50
-2
hrlegal-edit-view.html
...M/src/pages/base/hrlegal-edit-view/hrlegal-edit-view.html
+1
-1
hrlegal-grid-view.html
...M/src/pages/base/hrlegal-grid-view/hrlegal-grid-view.html
+1
-1
hrlegal-tab-exp-view.html
...pages/base/hrlegal-tab-exp-view/hrlegal-tab-exp-view.html
+1
-1
hromhierarchy-cat-edit-view.html
...mhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.html
+1
-1
hromhierarchy-cat-grid-view.html
...mhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.html
+1
-1
hromhierarchy-cat-v-002.html
...base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.html
+1
-1
hromhierarchy-edit-view.html
...base/hromhierarchy-edit-view/hromhierarchy-edit-view.html
+1
-1
hromhierarchy-grid-view.html
...base/hromhierarchy-grid-view/hromhierarchy-grid-view.html
+1
-1
hroperation-unit-edit-view.html
...roperation-unit-edit-view/hroperation-unit-edit-view.html
+1
-1
hroperation-unit-grid-view.html
...roperation-unit-grid-view/hroperation-unit-grid-view.html
+1
-1
hroperation-unit-tab-exp-view.html
...tion-unit-tab-exp-view/hroperation-unit-tab-exp-view.html
+1
-1
hrorg-address-edit-view.html
...base/hrorg-address-edit-view/hrorg-address-edit-view.html
+1
-1
hrorg-address-grid-view.html
...base/hrorg-address-grid-view/hrorg-address-grid-view.html
+1
-1
hrorg-contact-edit-view.html
...base/hrorg-contact-edit-view/hrorg-contact-edit-view.html
+1
-1
hrorg-contact-grid-view.html
...base/hrorg-contact-grid-view/hrorg-contact-grid-view.html
+1
-1
hrorganization-edit-view.html
...se/hrorganization-edit-view/hrorganization-edit-view.html
+1
-1
hrorganization-grid-view.html
...se/hrorganization-grid-view/hrorganization-grid-view.html
+1
-1
hrdistribution-edit-view.html
...ce/hrdistribution-edit-view/hrdistribution-edit-view.html
+1
-1
hrdistribution-grid-view-base.tsx
...rdistribution-grid-view/hrdistribution-grid-view-base.tsx
+12
-2
hrdistribution-grid-view.html
...ce/hrdistribution-grid-view/hrdistribution-grid-view.html
+1
-1
hrdistribution-v-001-base.tsx
...source/hrdistribution-v-001/hrdistribution-v-001-base.tsx
+50
-14
hrdistribution-v-002-base.tsx
...source/hrdistribution-v-002/hrdistribution-v-002-base.tsx
+171
-0
hrdistribution-v-002.html
...n-resource/hrdistribution-v-002/hrdistribution-v-002.html
+31
-0
hrdistribution-v-002.vue
...an-resource/hrdistribution-v-002/hrdistribution-v-002.vue
+22
-0
hrduty-edit-view.html
...ges/human-resource/hrduty-edit-view/hrduty-edit-view.html
+1
-1
hrduty-grid-view.html
...ges/human-resource/hrduty-grid-view/hrduty-grid-view.html
+1
-1
hremployee-edit-view.html
...n-resource/hremployee-edit-view/hremployee-edit-view.html
+1
-1
hremployee-grid-view.html
...n-resource/hremployee-grid-view/hremployee-grid-view.html
+1
-1
hremployee-pickup-grid-view-base.tsx
...yee-pickup-grid-view/hremployee-pickup-grid-view-base.tsx
+221
-0
hremployee-pickup-grid-view.html
...mployee-pickup-grid-view/hremployee-pickup-grid-view.html
+44
-0
hremployee-pickup-grid-view.vue
...employee-pickup-grid-view/hremployee-pickup-grid-view.vue
+24
-0
hremployee-pickup-view-base.tsx
...ce/hremployee-pickup-view/hremployee-pickup-view-base.tsx
+170
-0
hremployee-pickup-view.html
...source/hremployee-pickup-view/hremployee-pickup-view.html
+25
-0
hremployee-pickup-view.vue
...esource/hremployee-pickup-view/hremployee-pickup-view.vue
+22
-0
hrpost-edit-view.html
...ges/human-resource/hrpost-edit-view/hrpost-edit-view.html
+1
-1
hrpost-grid-view.html
...ges/human-resource/hrpost-grid-view/hrpost-grid-view.html
+1
-1
hrpost-pickup-grid-view-base.tsx
.../hrpost-pickup-grid-view/hrpost-pickup-grid-view-base.tsx
+221
-0
hrpost-pickup-grid-view.html
...urce/hrpost-pickup-grid-view/hrpost-pickup-grid-view.html
+44
-0
hrpost-pickup-grid-view.vue
...ource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue
+24
-0
hrpost-pickup-view-base.tsx
...n-resource/hrpost-pickup-view/hrpost-pickup-view-base.tsx
+170
-0
hrpost-pickup-view.html
...human-resource/hrpost-pickup-view/hrpost-pickup-view.html
+25
-0
hrpost-pickup-view.vue
.../human-resource/hrpost-pickup-view/hrpost-pickup-view.vue
+22
-0
hrpost-rel-edit-view.html
...n-resource/hrpost-rel-edit-view/hrpost-rel-edit-view.html
+1
-1
hrpost-rel-grid-view-base.tsx
...source/hrpost-rel-grid-view/hrpost-rel-grid-view-base.tsx
+12
-2
hrpost-rel-grid-view.html
...n-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.html
+1
-1
hrpost-rel-v-001-base.tsx
...human-resource/hrpost-rel-v-001/hrpost-rel-v-001-base.tsx
+14
-4
hrpost-rel-v-002-base.tsx
...human-resource/hrpost-rel-v-002/hrpost-rel-v-002-base.tsx
+171
-0
hrpost-rel-v-002.html
...ges/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.html
+31
-0
hrpost-rel-v-002.vue
...ages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue
+22
-0
hrpost-tab-exp-view-base.tsx
...resource/hrpost-tab-exp-view/hrpost-tab-exp-view-base.tsx
+1
-1
hrpost-tab-exp-view.html
...man-resource/hrpost-tab-exp-view/hrpost-tab-exp-view.html
+1
-1
hrpost-tab-exp-view.vue
...uman-resource/hrpost-tab-exp-view/hrpost-tab-exp-view.vue
+1
-1
hrpost-v-001.html
...M/src/pages/human-resource/hrpost-v-001/hrpost-v-001.html
+1
-1
hrpost-v-002.html
...M/src/pages/human-resource/hrpost-v-002/hrpost-v-002.html
+1
-1
hrpost-v-003.html
...M/src/pages/human-resource/hrpost-v-003/hrpost-v-003.html
+1
-1
hrpost-v-006.html
...M/src/pages/human-resource/hrpost-v-006/hrpost-v-006.html
+1
-1
page-register.ts
app_PIM/src/pages/ungroup/pim/page-register.ts
+7
-1
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+204
-0
hrdistribution-service-base.ts
...src/service/hrdistribution/hrdistribution-service-base.ts
+60
-0
hrpost-rel-service-base.ts
app_PIM/src/service/hrpost-rel/hrpost-rel-service-base.ts
+60
-0
hrpost-service-base.ts
app_PIM/src/service/hrpost/hrpost-service-base.ts
+2
-0
state.ts
app_PIM/src/store/modules/view-action/state.ts
+62
-2
view-toolbar.tsx
.../src/studio-core/components/view-toolbar/view-toolbar.tsx
+3
-0
ControlBase.tsx
app_PIM/src/studio-core/widgets/ControlBase.tsx
+9
-0
GridControlBase.tsx
app_PIM/src/studio-core/widgets/GridControlBase.tsx
+6
-3
hrdistribution-ui-service-base.ts
...iservice/hrdistribution/hrdistribution-ui-service-base.ts
+2
-1
hremployee-ui-service-base.ts
...IM/src/uiservice/hremployee/hremployee-ui-service-base.ts
+2
-0
hrpost-rel-ui-service-base.ts
...IM/src/uiservice/hrpost-rel/hrpost-rel-ui-service-base.ts
+2
-1
hrpost-ui-service-base.ts
app_PIM/src/uiservice/hrpost/hrpost-ui-service-base.ts
+2
-0
default-searchform-base.tsx
...stribution/default-searchform/default-searchform-base.tsx
+9
-0
main-form-base.tsx
...M/src/widgets/hrdistribution/main-form/main-form-base.tsx
+26
-17
main-form-model.ts
...M/src/widgets/hrdistribution/main-form/main-form-model.ts
+12
-17
main-form-service.ts
...src/widgets/hrdistribution/main-form/main-form-service.ts
+12
-0
main-form.html
app_PIM/src/widgets/hrdistribution/main-form/main-form.html
+29
-76
main-grid-base.tsx
...M/src/widgets/hrdistribution/main-grid/main-grid-base.tsx
+9
-0
default-searchform-base.tsx
...ets/hrduty/default-searchform/default-searchform-base.tsx
+9
-0
main-form-base.tsx
app_PIM/src/widgets/hrduty/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
app_PIM/src/widgets/hrduty/main-grid/main-grid-base.tsx
+9
-0
pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
...panel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
+9
-0
default-searchform-base.tsx
...hremployee/default-searchform/default-searchform-base.tsx
+9
-0
main-form-base.tsx
app_PIM/src/widgets/hremployee/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
app_PIM/src/widgets/hremployee/main-grid/main-grid-base.tsx
+9
-0
pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
...panel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
+265
-0
pickup-viewpickupviewpanel-pickupviewpanel-model.ts
...panel/pickup-viewpickupviewpanel-pickupviewpanel-model.ts
+43
-0
pickup-viewpickupviewpanel-pickupviewpanel-service.ts
...nel/pickup-viewpickupviewpanel-pickupviewpanel-service.ts
+11
-0
pickup-viewpickupviewpanel-pickupviewpanel.html
...viewpanel/pickup-viewpickupviewpanel-pickupviewpanel.html
+16
-0
pickup-viewpickupviewpanel-pickupviewpanel.less
...viewpanel/pickup-viewpickupviewpanel-pickupviewpanel.less
+3
-0
pickup-viewpickupviewpanel-pickupviewpanel.vue
...pviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue
+22
-0
board-001-dashboard-base.tsx
.../hrlegal/board-001-dashboard/board-001-dashboard-base.tsx
+9
-0
default-searchform-base.tsx
...ts/hrlegal/default-searchform/default-searchform-base.tsx
+9
-0
ef-001-form-base.tsx
app_PIM/src/widgets/hrlegal/ef-001-form/ef-001-form-base.tsx
+9
-0
if-001-form-base.tsx
app_PIM/src/widgets/hrlegal/if-001-form/if-001-form-base.tsx
+9
-0
main-form-base.tsx
app_PIM/src/widgets/hrlegal/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
app_PIM/src/widgets/hrlegal/main-grid/main-grid-base.tsx
+9
-0
part-v-001-portlet-base.tsx
...ts/hrlegal/part-v-001-portlet/part-v-001-portlet-base.tsx
+9
-0
tab-exp-viewtabexppanel-tabexppanel-base.tsx
...-tabexppanel/tab-exp-viewtabexppanel-tabexppanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
...bviewpanel/tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
...viewpanel/tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
...viewpanel/tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
+9
-0
default-searchform-base.tsx
...rarchy-cat/default-searchform/default-searchform-base.tsx
+9
-0
ef-001-form-base.tsx
...idgets/hromhierarchy-cat/ef-001-form/ef-001-form-base.tsx
+9
-0
main-form-base.tsx
...rc/widgets/hromhierarchy-cat/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
...rc/widgets/hromhierarchy-cat/main-grid/main-grid-base.tsx
+9
-0
pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
...panel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
+9
-0
default-searchform-base.tsx
...mhierarchy/default-searchform/default-searchform-base.tsx
+9
-0
grid-001-grid-base.tsx
...idgets/hromhierarchy/grid-001-grid/grid-001-grid-base.tsx
+9
-0
main-form-base.tsx
...IM/src/widgets/hromhierarchy/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
...IM/src/widgets/hromhierarchy/main-grid/main-grid-base.tsx
+9
-0
pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
...panel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
+9
-0
tree-001-treeview-base.tsx
...romhierarchy/tree-001-treeview/tree-001-treeview-base.tsx
+9
-0
tree-exp-viewtreeexpbar-treeexpbar-base.tsx
...ar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.tsx
+9
-0
board-001-dashboard-base.tsx
...ion-unit/board-001-dashboard/board-001-dashboard-base.tsx
+9
-0
default-searchform-base.tsx
...ation-unit/default-searchform/default-searchform-base.tsx
+9
-0
ef-001-form-base.tsx
...widgets/hroperation-unit/ef-001-form/ef-001-form-base.tsx
+9
-0
if-001-form-base.tsx
...widgets/hroperation-unit/if-001-form/if-001-form-base.tsx
+9
-0
main-form-base.tsx
...src/widgets/hroperation-unit/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
...src/widgets/hroperation-unit/main-grid/main-grid-base.tsx
+9
-0
part-v-001-portlet-base.tsx
...ation-unit/part-v-001-portlet/part-v-001-portlet-base.tsx
+9
-0
tab-exp-viewtabexppanel-tabexppanel-base.tsx
...-tabexppanel/tab-exp-viewtabexppanel-tabexppanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
...bviewpanel/tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
...viewpanel/tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
...viewpanel/tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
+9
-0
default-searchform-base.tsx
...rg-address/default-searchform/default-searchform-base.tsx
+9
-0
main-form-base.tsx
...IM/src/widgets/hrorg-address/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
...IM/src/widgets/hrorg-address/main-grid/main-grid-base.tsx
+9
-0
default-searchform-base.tsx
...rg-contact/default-searchform/default-searchform-base.tsx
+9
-0
main-form-base.tsx
...IM/src/widgets/hrorg-contact/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
...IM/src/widgets/hrorg-contact/main-grid/main-grid-base.tsx
+9
-0
default-searchform-base.tsx
...ganization/default-searchform/default-searchform-base.tsx
+9
-0
main-form-base.tsx
...M/src/widgets/hrorganization/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
...M/src/widgets/hrorganization/main-grid/main-grid-base.tsx
+9
-0
pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
...panel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
+9
-0
default-searchform-base.tsx
...hrpost-rel/default-searchform/default-searchform-base.tsx
+9
-0
main-form-base.tsx
app_PIM/src/widgets/hrpost-rel/main-form/main-form-base.tsx
+27
-18
main-form-model.ts
app_PIM/src/widgets/hrpost-rel/main-form/main-form-model.ts
+14
-19
main-form-service.ts
...PIM/src/widgets/hrpost-rel/main-form/main-form-service.ts
+12
-0
main-form.html
app_PIM/src/widgets/hrpost-rel/main-form/main-form.html
+29
-76
main-grid-base.tsx
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid-base.tsx
+9
-0
board-001-dashboard-base.tsx
...s/hrpost/board-001-dashboard/board-001-dashboard-base.tsx
+9
-0
default-searchform-base.tsx
...ets/hrpost/default-searchform/default-searchform-base.tsx
+9
-0
ef-001-form-base.tsx
app_PIM/src/widgets/hrpost/ef-001-form/ef-001-form-base.tsx
+9
-0
if-001-form-base.tsx
app_PIM/src/widgets/hrpost/if-001-form/if-001-form-base.tsx
+9
-0
if-001-form.html
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.html
+2
-0
main-form-base.tsx
app_PIM/src/widgets/hrpost/main-form/main-form-base.tsx
+9
-0
main-grid-base.tsx
app_PIM/src/widgets/hrpost/main-grid/main-grid-base.tsx
+9
-0
part-v-001-portlet-base.tsx
...ets/hrpost/part-v-001-portlet/part-v-001-portlet-base.tsx
+9
-0
pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
...panel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
+265
-0
pickup-viewpickupviewpanel-pickupviewpanel-model.ts
...panel/pickup-viewpickupviewpanel-pickupviewpanel-model.ts
+67
-0
pickup-viewpickupviewpanel-pickupviewpanel-service.ts
...nel/pickup-viewpickupviewpanel-pickupviewpanel-service.ts
+11
-0
pickup-viewpickupviewpanel-pickupviewpanel.html
...viewpanel/pickup-viewpickupviewpanel-pickupviewpanel.html
+16
-0
pickup-viewpickupviewpanel-pickupviewpanel.less
...viewpanel/pickup-viewpickupviewpanel-pickupviewpanel.less
+3
-0
pickup-viewpickupviewpanel-pickupviewpanel.vue
...pviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue
+22
-0
tab-exp-viewtabexppanel-tabexppanel-base.tsx
...-tabexppanel/tab-exp-viewtabexppanel-tabexppanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
...bviewpanel/tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
...viewpanel/tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
...viewpanel/tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
+9
-0
tab-exp-viewtabviewpanel4-tabviewpanel-base.tsx
...viewpanel/tab-exp-viewtabviewpanel4-tabviewpanel-base.tsx
+9
-0
v-006tabexppanel-tabexppanel-base.tsx
...xppanel-tabexppanel/v-006tabexppanel-tabexppanel-base.tsx
+9
-0
v-006tabviewpanel-tabviewpanel-base.tsx
...anel-tabviewpanel/v-006tabviewpanel-tabviewpanel-base.tsx
+9
-0
v-006tabviewpanel2-tabviewpanel-base.tsx
...el2-tabviewpanel/v-006tabviewpanel2-tabviewpanel-base.tsx
+9
-0
v-006tabviewpanel3-tabviewpanel-base.tsx
...el3-tabviewpanel/v-006tabviewpanel3-tabviewpanel-base.tsx
+9
-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
浏览文件 @
2bfe9df7
...
...
@@ -9,6 +9,16 @@
"viewtag"
:
"045cc74f78937b52db67b8239361d181"
,
"memo"
:
""
},
"hrpostpickupview"
:
{
"title"
:
"职位数据选择视图"
,
"caption"
:
"职位"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostPickupView"
,
"viewfilename"
:
"hrpost-pickup-view"
,
"viewtag"
:
"04c02737ae62a4f4c014607441ee0401"
,
"memo"
:
"系统自动添加"
},
"hrorgcontacteditview"
:
{
"title"
:
"组织联系信息编辑视图"
,
"caption"
:
"组织联系信息"
,
...
...
@@ -219,6 +229,16 @@
"viewtag"
:
"53de2c13a619e20769cdc9dbfa10e1a5"
,
"memo"
:
"系统自动添加"
},
"hrpostpickupgridview"
:
{
"title"
:
"职位选择表格视图"
,
"caption"
:
"职位"
,
"viewtype"
:
"DEPICKUPGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostPickupGridView"
,
"viewfilename"
:
"hrpost-pickup-grid-view"
,
"viewtag"
:
"5bd45b52782142f58a041e31e633921c"
,
"memo"
:
"系统自动添加"
},
"hrpostv_004"
:
{
"title"
:
"职位编辑视图"
,
"caption"
:
"职位"
,
...
...
@@ -279,6 +299,16 @@
"viewtag"
:
"6cf9411c3f3597947dfee8dad2968182"
,
"memo"
:
"系统自动添加"
},
"hremployeepickupgridview"
:
{
"title"
:
"员工选择表格视图"
,
"caption"
:
"员工"
,
"viewtype"
:
"DEPICKUPGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeePickupGridView"
,
"viewfilename"
:
"hremployee-pickup-grid-view"
,
"viewtag"
:
"73f27ddcf2a626455aa88f4a052db014"
,
"memo"
:
"系统自动添加"
},
"hrorgcontactv_001"
:
{
"title"
:
"组织联系信息嵌入组织"
,
"caption"
:
"组织联系信息嵌入组织"
,
...
...
@@ -430,8 +460,8 @@
"memo"
:
"系统自动添加"
},
"hrposttabexpview"
:
{
"title"
:
"职位
信息
"
,
"caption"
:
"职位
信息
"
,
"title"
:
"职位"
,
"caption"
:
"职位"
,
"viewtype"
:
"DETABEXPVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostTabExpView"
,
...
...
@@ -479,6 +509,16 @@
"viewtag"
:
"c62ff001669cca98c0a2a7bc3383c775"
,
"memo"
:
""
},
"hrdistributionv_002"
:
{
"title"
:
"工作人员分配"
,
"caption"
:
"工作人员分配"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRDistributionV_002"
,
"viewfilename"
:
"hrdistribution-v-002"
,
"viewtag"
:
"cd7f9e0b57fdfdf34307ce460137b152"
,
"memo"
:
""
},
"hrpostv_006"
:
{
"title"
:
"职位信息"
,
"caption"
:
"职位信息"
,
...
...
@@ -499,6 +539,16 @@
"viewtag"
:
"d32b549b3c49b790b092eca97d1de2c1"
,
"memo"
:
""
},
"hrpostrelv_002"
:
{
"title"
:
"直接上级职位"
,
"caption"
:
"直接上级职位"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostRelV_002"
,
"viewfilename"
:
"hrpost-rel-v-002"
,
"viewtag"
:
"d4d0e128d8c7e5c141f99540b62fd9bf"
,
"memo"
:
""
},
"hrpostgridview"
:
{
"title"
:
"职位表格"
,
"caption"
:
"职位"
,
...
...
@@ -559,6 +609,16 @@
"viewtag"
:
"ebcbf493e0a574cf170412456645a3a7"
,
"memo"
:
"系统自动添加"
},
"hremployeepickupview"
:
{
"title"
:
"员工数据选择视图"
,
"caption"
:
"员工"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeePickupView"
,
"viewfilename"
:
"hremployee-pickup-view"
,
"viewtag"
:
"ec9d9fe37bbfc3fcb623e2dc34b48dbc"
,
"memo"
:
"系统自动添加"
},
"hrpostdashboardview"
:
{
"title"
:
"职位看板"
,
"caption"
:
"职位看板"
,
...
...
app_PIM/src/locale/lanres/entities/hrdistribution/hrdistribution_en_US.ts
浏览文件 @
2bfe9df7
...
...
@@ -27,13 +27,15 @@ export default {
caption
:
"工作人员分配"
,
title
:
"工作人员分配编辑视图"
,
},
v_002
:
{
caption
:
"工作人员分配"
,
title
:
"工作人员分配"
,
},
},
main_form
:
{
details
:
{
group1
:
"工作人员分配基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"工作人员分配标识"
,
...
...
@@ -42,11 +44,10 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
hrdistributionname
:
"工作人员分配名称"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
hremployeename
:
"员工姓名"
,
begintime
:
"入职时间"
,
endtime
:
"离职时间"
,
hremployeeid
:
"员工标识"
,
hrdistributionid
:
"工作人员分配标识"
,
},
uiactions
:
{
...
...
@@ -68,6 +69,40 @@ 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"
,
...
...
@@ -114,38 +149,4 @@ 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
浏览文件 @
2bfe9df7
...
...
@@ -26,13 +26,15 @@ export default {
caption
:
"工作人员分配"
,
title
:
"工作人员分配编辑视图"
,
},
v_002
:
{
caption
:
"工作人员分配"
,
title
:
"工作人员分配"
,
},
},
main_form
:
{
details
:
{
group1
:
"工作人员分配基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"工作人员分配标识"
,
...
...
@@ -41,11 +43,10 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
hrdistributionname
:
"工作人员分配名称"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
hremployeename
:
"员工姓名"
,
begintime
:
"入职时间"
,
endtime
:
"离职时间"
,
hremployeeid
:
"员工标识"
,
hrdistributionid
:
"工作人员分配标识"
,
},
uiactions
:
{
...
...
@@ -67,6 +68,40 @@ 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
:
"保存"
,
...
...
@@ -113,38 +148,4 @@ 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/hremployee/hremployee_en_US.ts
浏览文件 @
2bfe9df7
...
...
@@ -10,6 +10,10 @@ export default {
organizationid
:
"组织"
,
},
views
:
{
pickupgridview
:
{
caption
:
"员工"
,
title
:
"员工选择表格视图"
,
},
gridview
:
{
caption
:
"员工"
,
title
:
"员工表格视图"
,
...
...
@@ -18,6 +22,10 @@ export default {
caption
:
"员工"
,
title
:
"员工编辑视图"
,
},
pickupview
:
{
caption
:
"员工"
,
title
:
"员工数据选择视图"
,
},
},
main_form
:
{
details
:
{
...
...
app_PIM/src/locale/lanres/entities/hremployee/hremployee_zh_CN.ts
浏览文件 @
2bfe9df7
...
...
@@ -9,6 +9,10 @@ export default {
organizationid
:
"组织"
,
},
views
:
{
pickupgridview
:
{
caption
:
"员工"
,
title
:
"员工选择表格视图"
,
},
gridview
:
{
caption
:
"员工"
,
title
:
"员工表格视图"
,
...
...
@@ -17,6 +21,10 @@ export default {
caption
:
"员工"
,
title
:
"员工编辑视图"
,
},
pickupview
:
{
caption
:
"员工"
,
title
:
"员工数据选择视图"
,
},
},
main_form
:
{
details
:
{
...
...
app_PIM/src/locale/lanres/entities/hrpost-rel/hrpost-rel_en_US.ts
浏览文件 @
2bfe9df7
...
...
@@ -27,13 +27,15 @@ export default {
caption
:
"职位关系"
,
title
:
"职位关系编辑视图"
,
},
v_002
:
{
caption
:
"直接上级职位"
,
title
:
"直接上级职位"
,
},
},
main_form
:
{
details
:
{
group1
:
"职位关系基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"职位关系标识"
,
...
...
@@ -42,12 +44,11 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
hrpostrelname
:
"职位关系名称"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
phrpostname
:
"直接上级职位"
,
begintime
:
"生效"
,
endtime
:
"到期"
,
hrpostrelid
:
"职位关系标识"
,
phrpostid
:
"职位标识"
,
},
uiactions
:
{
},
...
...
@@ -68,6 +69,40 @@ 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"
,
...
...
@@ -114,38 +149,4 @@ 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
浏览文件 @
2bfe9df7
...
...
@@ -26,13 +26,15 @@ export default {
caption
:
"职位关系"
,
title
:
"职位关系编辑视图"
,
},
v_002
:
{
caption
:
"直接上级职位"
,
title
:
"直接上级职位"
,
},
},
main_form
:
{
details
:
{
group1
:
"职位关系基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"职位关系标识"
,
...
...
@@ -41,12 +43,11 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
hrpostrelname
:
"职位关系名称"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
phrpostname
:
"直接上级职位"
,
begintime
:
"生效"
,
endtime
:
"到期"
,
hrpostrelid
:
"职位关系标识"
,
phrpostid
:
"职位标识"
,
},
uiactions
:
{
},
...
...
@@ -67,6 +68,40 @@ 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
:
"保存"
,
...
...
@@ -113,38 +148,4 @@ 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
浏览文件 @
2bfe9df7
...
...
@@ -18,6 +18,10 @@ export default {
postnum
:
"编制人数"
,
},
views
:
{
pickupview
:
{
caption
:
"职位"
,
title
:
"职位数据选择视图"
,
},
v_003
:
{
caption
:
"职位"
,
title
:
"失效职位"
,
...
...
@@ -26,6 +30,10 @@ export default {
caption
:
"职位"
,
title
:
"空缺职位"
,
},
pickupgridview
:
{
caption
:
"职位"
,
title
:
"职位选择表格视图"
,
},
v_004
:
{
caption
:
"职位"
,
title
:
"职位编辑视图"
,
...
...
@@ -39,8 +47,8 @@ export default {
title
:
"有效职位"
,
},
tabexpview
:
{
caption
:
"职位
信息
"
,
title
:
"职位
信息
"
,
caption
:
"职位"
,
title
:
"职位"
,
},
v_005
:
{
caption
:
"快速新建"
,
...
...
app_PIM/src/locale/lanres/entities/hrpost/hrpost_zh_CN.ts
浏览文件 @
2bfe9df7
...
...
@@ -17,6 +17,10 @@ export default {
postnum
:
"编制人数"
,
},
views
:
{
pickupview
:
{
caption
:
"职位"
,
title
:
"职位数据选择视图"
,
},
v_003
:
{
caption
:
"职位"
,
title
:
"失效职位"
,
...
...
@@ -25,6 +29,10 @@ export default {
caption
:
"职位"
,
title
:
"空缺职位"
,
},
pickupgridview
:
{
caption
:
"职位"
,
title
:
"职位选择表格视图"
,
},
v_004
:
{
caption
:
"职位"
,
title
:
"职位编辑视图"
,
...
...
@@ -38,8 +46,8 @@ export default {
title
:
"有效职位"
,
},
tabexpview
:
{
caption
:
"职位
信息
"
,
title
:
"职位
信息
"
,
caption
:
"职位"
,
title
:
"职位"
,
},
v_005
:
{
caption
:
"快速新建"
,
...
...
app_PIM/src/mock/entity/hrdistributions/hrdistributions.ts
浏览文件 @
2bfe9df7
...
...
@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrdistributions\/batch$/)).reply((config: any) => {
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Select"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrdistributionid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
hrdistributionid
,
tempValue
.
hrdistributionid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
];
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Select"
);
...
...
@@ -115,6 +144,33 @@ mock.onGet(new RegExp(/^\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).r
return
[
status
,
_items
];
});
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Create"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrdistributionid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
hrdistributions
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Create"
);
...
...
@@ -141,6 +197,33 @@ mock.onPost(new RegExp(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((
return
[
status
,
mockDatas
[
0
]];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Update"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrdistributionid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
hrdistributions
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Update"
);
...
...
@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((c
return
[
status
,
data
];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: GetDraft"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
// GetDraft
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
hrdistributions
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: GetDraft"
);
...
...
@@ -195,6 +297,33 @@ mock.onGet(new RegExp(/^\/hrdistributions\/getdraft$/)).reply((config: any) => {
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: CheckKey"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrdistributionid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
hrdistributions
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: CheckKey"
);
...
...
@@ -233,6 +362,33 @@ mock.onPost(new RegExp(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/
return
[
status
,
data
];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Save"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrdistributionid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
hrdistributions
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Save"
);
...
...
@@ -271,6 +427,51 @@ mock.onPost(new RegExp(/^\/hrdistributions\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).r
return
[
status
,
data
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/
fetchdefault$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
];
let
tempValue
:
any
=
{};
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/
fetchdefault$/
).
exec
(
config
.
url
);
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
if
(
items
.
length
>
0
&&
paramArray
.
length
>
0
)
{
paramArray
.
forEach
((
paramkey
:
any
)
=>
{
if
(
tempValue
[
paramkey
]
&&
tempValue
[
paramkey
].
indexOf
(
";"
)
>
0
)
{
let
keysGrounp
:
Array
<
any
>
=
tempValue
[
paramkey
].
split
(
new
RegExp
(
/
[\;]
/
));
let
tempArray
:
Array
<
any
>
=
[];
keysGrounp
.
forEach
((
singlekey
:
any
)
=>
{
let
_items
=
items
.
filter
((
item
:
any
)
=>
{
return
item
[
paramkey
]
==
singlekey
});
if
(
_items
.
length
>
0
){
tempArray
.
push
(...
_items
);
}
})
items
=
tempArray
;
}
else
{
items
=
items
.
filter
((
item
:
any
)
=>
{
return
item
[
paramkey
]
==
tempValue
[
paramkey
]
});
}
})
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
items
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
hrdistributions
\/
fetchdefault$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: FetchDefault"
);
...
...
@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrdistributions\/fetchdefault(\?[\w-./?%&=,]*)*$/)).re
console
.
groupEnd
();
return
[
status
,
records
?
records
:
[]];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Remove"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrdistributionid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
hrdistributionid
,
tempValue
.
hrdistributionid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Remove"
);
...
...
@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrdistributions\/([a-zA-Z0-9\-\;]{1,35})$/)).reply(
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Get"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrdistributionid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
hrdistributionid
,
tempValue
.
hrdistributionid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
hrdistributions
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrdistribution 方法: Get"
);
...
...
app_PIM/src/mock/entity/hrpost-rels/hrpost-rels.ts
浏览文件 @
2bfe9df7
...
...
@@ -87,6 +87,35 @@ mock.onDelete(new RegExp(/^\/hrpostrels\/batch$/)).reply((config: any) => {
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Select"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrpostrelid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
hrpostrelid
,
tempValue
.
hrpostrelid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
];
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Select"
);
...
...
@@ -115,6 +144,33 @@ mock.onGet(new RegExp(/^\/hrpostrels\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply(
return
[
status
,
_items
];
});
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Create"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrpostrelid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
hrpostrels
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Create"
);
...
...
@@ -141,6 +197,33 @@ mock.onPost(new RegExp(/^\/hrpostrels\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((confi
return
[
status
,
mockDatas
[
0
]];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Update"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrpostrelid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
hrpostrels
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Update"
);
...
...
@@ -179,6 +262,25 @@ mock.onPut(new RegExp(/^\/hrpostrels\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config
return
[
status
,
data
];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: GetDraft"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
// GetDraft
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
hrpostrels
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: GetDraft"
);
...
...
@@ -195,6 +297,33 @@ mock.onGet(new RegExp(/^\/hrpostrels\/getdraft$/)).reply((config: any) => {
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: CheckKey"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrpostrelid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
hrpostrels
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: CheckKey"
);
...
...
@@ -233,6 +362,33 @@ mock.onPost(new RegExp(/^\/hrpostrels\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).re
return
[
status
,
data
];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Save"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrpostrelid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
hrpostrels
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Save"
);
...
...
@@ -271,6 +427,51 @@ mock.onPost(new RegExp(/^\/hrpostrels\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply(
return
[
status
,
data
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/
fetchdefault$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
];
let
tempValue
:
any
=
{};
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/
fetchdefault$/
).
exec
(
config
.
url
);
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
if
(
items
.
length
>
0
&&
paramArray
.
length
>
0
)
{
paramArray
.
forEach
((
paramkey
:
any
)
=>
{
if
(
tempValue
[
paramkey
]
&&
tempValue
[
paramkey
].
indexOf
(
";"
)
>
0
)
{
let
keysGrounp
:
Array
<
any
>
=
tempValue
[
paramkey
].
split
(
new
RegExp
(
/
[\;]
/
));
let
tempArray
:
Array
<
any
>
=
[];
keysGrounp
.
forEach
((
singlekey
:
any
)
=>
{
let
_items
=
items
.
filter
((
item
:
any
)
=>
{
return
item
[
paramkey
]
==
singlekey
});
if
(
_items
.
length
>
0
){
tempArray
.
push
(...
_items
);
}
})
items
=
tempArray
;
}
else
{
items
=
items
.
filter
((
item
:
any
)
=>
{
return
item
[
paramkey
]
==
tempValue
[
paramkey
]
});
}
})
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
items
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
hrpostrels
\/
fetchdefault$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: FetchDefault"
);
...
...
@@ -314,15 +515,57 @@ mock.onGet(new RegExp(/^\/hrpostrels\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((
console
.
groupEnd
();
return
[
status
,
records
?
records
:
[]];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Remove"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrpostrelid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
hrpostrelid
,
tempValue
.
hrpostrelid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Remove"
);
...
...
@@ -351,6 +594,34 @@ mock.onDelete(new RegExp(/^\/hrpostrels\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((conf
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Get"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'hrpostid'
,
'hrpostrelid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
hrposts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
hrpostrelid
,
tempValue
.
hrpostrelid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
hrpostrels
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:hrpostrel 方法: Get"
);
...
...
app_PIM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
2bfe9df7
...
...
@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROMHierarchyCatPickupGridView"
,
"viewtag"
:
"045cc74f78937b52db67b8239361d181"
},
"hrpostpickupview"
:
{
"title"
:
"职位数据选择视图"
,
"caption"
:
"职位"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostPickupView"
,
"viewtag"
:
"04c02737ae62a4f4c014607441ee0401"
},
"hrorgcontacteditview"
:
{
"title"
:
"组织联系信息编辑视图"
,
"caption"
:
"组织联系信息"
,
...
...
@@ -183,6 +191,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROrgContactGridView"
,
"viewtag"
:
"53de2c13a619e20769cdc9dbfa10e1a5"
},
"hrpostpickupgridview"
:
{
"title"
:
"职位选择表格视图"
,
"caption"
:
"职位"
,
"viewtype"
:
"DEPICKUPGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostPickupGridView"
,
"viewtag"
:
"5bd45b52782142f58a041e31e633921c"
},
"hrpostv_004"
:
{
"title"
:
"职位编辑视图"
,
"caption"
:
"职位"
,
...
...
@@ -231,6 +247,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HRPostRelEditView"
,
"viewtag"
:
"6cf9411c3f3597947dfee8dad2968182"
},
"hremployeepickupgridview"
:
{
"title"
:
"员工选择表格视图"
,
"caption"
:
"员工"
,
"viewtype"
:
"DEPICKUPGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeePickupGridView"
,
"viewtag"
:
"73f27ddcf2a626455aa88f4a052db014"
},
"hrorgcontactv_001"
:
{
"title"
:
"组织联系信息嵌入组织"
,
"caption"
:
"组织联系信息嵌入组织"
,
...
...
@@ -352,8 +376,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"b932c0eb66409c638c29ee27ba4fda37"
},
"hrposttabexpview"
:
{
"title"
:
"职位
信息
"
,
"caption"
:
"职位
信息
"
,
"title"
:
"职位"
,
"caption"
:
"职位"
,
"viewtype"
:
"DETABEXPVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostTabExpView"
,
...
...
@@ -391,6 +415,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROMHierarchyCatDashboardView"
,
"viewtag"
:
"c62ff001669cca98c0a2a7bc3383c775"
},
"hrdistributionv_002"
:
{
"title"
:
"工作人员分配"
,
"caption"
:
"工作人员分配"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRDistributionV_002"
,
"viewtag"
:
"cd7f9e0b57fdfdf34307ce460137b152"
},
"hrpostv_006"
:
{
"title"
:
"职位信息"
,
"caption"
:
"职位信息"
,
...
...
@@ -407,6 +439,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROperationUnitV_001"
,
"viewtag"
:
"d32b549b3c49b790b092eca97d1de2c1"
},
"hrpostrelv_002"
:
{
"title"
:
"直接上级职位"
,
"caption"
:
"直接上级职位"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRPostRelV_002"
,
"viewtag"
:
"d4d0e128d8c7e5c141f99540b62fd9bf"
},
"hrpostgridview"
:
{
"title"
:
"职位表格"
,
"caption"
:
"职位"
,
...
...
@@ -455,6 +495,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HRDutyPickupView"
,
"viewtag"
:
"ebcbf493e0a574cf170412456645a3a7"
},
"hremployeepickupview"
:
{
"title"
:
"员工数据选择视图"
,
"caption"
:
"员工"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HREmployeePickupView"
,
"viewtag"
:
"ec9d9fe37bbfc3fcb623e2dc34b48dbc"
},
"hrpostdashboardview"
:
{
"title"
:
"职位看板"
,
"caption"
:
"职位看板"
,
...
...
app_PIM/src/pages/base/hrlegal-edit-view/hrlegal-edit-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrlegaleditview"
viewTitle=
"法人编辑视图"
class=
'deeditview hrlegal-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hrlegal-grid-view/hrlegal-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrlegalgridview"
viewTitle=
"法人"
class=
'degridview hrlegal-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"法人名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/base/hrlegal-tab-exp-view/hrlegal-tab-exp-view.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_tabexppanel
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hromhierarchycateditview"
viewTitle=
"结构层次类别编辑视图"
class=
'deeditview hromhierarchy-cat-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hromhierarchycatgridview"
viewTitle=
"组织层次结构"
class=
'degridview hromhierarchy-cat-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"用途"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hromhierarchycatv_002"
viewTitle=
"层次结构"
class=
'deeditview hromhierarchy-cat-v-002'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hromhierarchyeditview"
viewTitle=
"组织层次结构编辑视图"
class=
'deeditview hromhierarchy-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hromhierarchy-grid-view/hromhierarchy-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hromhierarchygridview"
viewTitle=
"组织层次结构表格视图"
class=
'degridview hromhierarchy-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"组织名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hroperationuniteditview"
viewTitle=
"运营单位信息编辑"
class=
'deeditview hroperation-unit-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hroperationunitgridview"
viewTitle=
"运营单位"
class=
'degridview hroperation-unit-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"运营单位名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/base/hroperation-unit-tab-exp-view/hroperation-unit-tab-exp-view.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_tabexppanel
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hrorg-address-edit-view/hrorg-address-edit-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrorgaddresseditview"
viewTitle=
"组织地址编辑视图"
class=
'deeditview hrorg-address-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hrorg-address-grid-view/hrorg-address-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrorgaddressgridview"
viewTitle=
"组织地址表格视图"
class=
'degridview hrorg-address-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"名称或描述"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrorgcontacteditview"
viewTitle=
"组织联系信息编辑视图"
class=
'deeditview hrorg-contact-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hrorg-contact-grid-view/hrorg-contact-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrorgcontactgridview"
viewTitle=
"组织联系信息表格视图"
class=
'degridview hrorg-contact-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"联系人"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/base/hrorganization-edit-view/hrorganization-edit-view.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/base/hrorganization-grid-view/hrorganization-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrorganizationgridview"
viewTitle=
"组织"
class=
'degridview hrorganization-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"组织名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -561,7 +561,12 @@ export class HRDistributionGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRDistributionGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrdistributiongridview"
viewTitle=
"工作人员分配表格视图"
class=
'degridview hrdistribution-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"工作人员分配名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hrdistribution-v-001/hrdistribution-v-001-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -213,19 +213,36 @@ export class HRDistributionV_001Base extends GridView9Base {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
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
);
const
openDrawer
=
(
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
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
openIndexViewTab
(
data
);
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrdistribution-v-002'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrdistribution.views.v_002.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
...
...
@@ -247,17 +264,36 @@ export class HRDistributionV_001Base extends GridView9Base {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
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
);
const
openDrawer
=
(
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
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
openIndexViewTab
(
data
);
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrdistribution-v-002'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrdistribution.views.v_002.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
...
...
app_PIM/src/pages/human-resource/hrdistribution-v-002/hrdistribution-v-002-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
import
{
Subject
}
from
'rxjs'
;
import
{
OptionViewBase
}
from
'@/studio-core'
;
import
HRDistributionService
from
'@/service/hrdistribution/hrdistribution-service'
;
import
HRDistributionAuthService
from
'@/authservice/hrdistribution/hrdistribution-auth-service'
;
import
OptionViewEngine
from
'@engine/view/option-view-engine'
;
import
HRDistributionUIService
from
'@/uiservice/hrdistribution/hrdistribution-ui-service'
;
/**
* 工作人员分配视图基类
*
* @export
* @class HRDistributionV_002Base
* @extends {OptionViewBase}
*/
export
class
HRDistributionV_002Base
extends
OptionViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDistributionV_002Base
*/
protected
appDeName
:
string
=
'hrdistribution'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDistributionV_002Base
*/
protected
appDeKey
:
string
=
'hrdistributionid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDistributionV_002Base
*/
protected
appDeMajor
:
string
=
'hrdistributionname'
;
/**
* 实体服务对象
*
* @type {HRDistributionService}
* @memberof HRDistributionV_002Base
*/
protected
appEntityService
:
HRDistributionService
=
new
HRDistributionService
;
/**
* 实体权限服务对象
*
* @type HRDistributionUIService
* @memberof HRDistributionV_002Base
*/
public
appUIService
:
HRDistributionUIService
=
new
HRDistributionUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDistributionV_002Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDistributionV_002Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrdistribution.views.v_002.caption'
,
srfTitle
:
'entities.hrdistribution.views.v_002.title'
,
srfSubTitle
:
'entities.hrdistribution.views.v_002.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDistributionV_002Base
*/
protected
containerModel
:
any
=
{
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
view_okbtn
:
{
name
:
'okbtn'
,
type
:
'button'
,
text
:
'确定'
,
disabled
:
true
},
view_cancelbtn
:
{
name
:
'cancelbtn'
,
type
:
'button'
,
text
:
'取消'
,
disabled
:
false
},
view_leftbtn
:
{
name
:
'leftbtn'
,
type
:
'button'
,
text
:
'左移'
,
disabled
:
true
},
view_rightbtn
:
{
name
:
'rightbtn'
,
type
:
'button'
,
text
:
'右移'
,
disabled
:
true
},
view_allleftbtn
:
{
name
:
'allleftbtn'
,
type
:
'button'
,
text
:
'全部左移'
,
disabled
:
true
},
view_allrightbtn
:
{
name
:
'allrightbtn'
,
type
:
'button'
,
text
:
'全部右移'
,
disabled
:
true
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'cd7f9e0b57fdfdf34307ce460137b152'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDistributionV_002Base
*/
public
engine
:
OptionViewEngine
=
new
OptionViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRDistributionV_002Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'hrdistribution'
,
majorPSDEField
:
'hrdistributionname'
,
isLoadDefault
:
true
,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_002Base
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_002Base
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_002Base
*/
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/hrdistribution-v-002/hrdistribution-v-002.html
0 → 100644
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrdistributionv_002"
viewTitle=
"工作人员分配"
class=
'deoptview hrdistribution-v-002'
>
<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
>
<template
slot=
"footer"
>
<div
class=
"option-view-footer-actions"
>
<i-button
type=
'primary'
@
click=
"onClickOk.apply(_self, arguments)"
>
{{ containerModel.view_okbtn.text }}
</i-button>
<i-button
@
click=
"onClickCancel.apply(_self, arguments)"
>
{{ containerModel.view_cancelbtn.text }}
</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./hrdistribution-v-002.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDistributionV_002Base } from './hrdistribution-v-002-base';
import view_form from '@widgets/hrdistribution/main-form/main-form.vue';
/**
* 工作人员分配视图
*
* @export
* @class HRDistributionV_002
* @extends {HRDistributionV_002Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRDistributionV_002 extends HRDistributionV_002Base { }
</script>
app_PIM/src/pages/human-resource/hrduty-edit-view/hrduty-edit-view.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/human-resource/hrduty-grid-view/hrduty-grid-view.html
浏览文件 @
2bfe9df7
...
...
@@ -4,7 +4,7 @@
</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>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hremployee-edit-view/hremployee-edit-view.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/human-resource/hremployee-grid-view/hremployee-grid-view.html
浏览文件 @
2bfe9df7
...
...
@@ -4,7 +4,7 @@
</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>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
import
{
Subject
}
from
'rxjs'
;
import
{
PickupGridViewBase
}
from
'@/studio-core'
;
import
HREmployeeService
from
'@/service/hremployee/hremployee-service'
;
import
HREmployeeAuthService
from
'@/authservice/hremployee/hremployee-auth-service'
;
import
PickupGridViewEngine
from
'@engine/view/pickup-grid-view-engine'
;
import
HREmployeeUIService
from
'@/uiservice/hremployee/hremployee-ui-service'
;
/**
* 员工选择表格视图视图基类
*
* @export
* @class HREmployeePickupGridViewBase
* @extends {PickupGridViewBase}
*/
export
class
HREmployeePickupGridViewBase
extends
PickupGridViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HREmployeePickupGridViewBase
*/
protected
appDeName
:
string
=
'hremployee'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HREmployeePickupGridViewBase
*/
protected
appDeKey
:
string
=
'employeeid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HREmployeePickupGridViewBase
*/
protected
appDeMajor
:
string
=
'employeename'
;
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof HREmployeePickupGridViewBase
*/
protected
appEntityService
:
HREmployeeService
=
new
HREmployeeService
;
/**
* 实体权限服务对象
*
* @type HREmployeeUIService
* @memberof HREmployeePickupGridViewBase
*/
public
appUIService
:
HREmployeeUIService
=
new
HREmployeeUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HREmployeePickupGridViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HREmployeePickupGridViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hremployee.views.pickupgridview.caption'
,
srfTitle
:
'entities.hremployee.views.pickupgridview.title'
,
srfSubTitle
:
'entities.hremployee.views.pickupgridview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HREmployeePickupGridViewBase
*/
protected
containerModel
:
any
=
{
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
view_searchform
:
{
name
:
'searchform'
,
type
:
'SEARCHFORM'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'73f27ddcf2a626455aa88f4a052db014'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HREmployeePickupGridViewBase
*/
public
engine
:
PickupGridViewEngine
=
new
PickupGridViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HREmployeePickupGridViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'hremployee'
,
majorPSDEField
:
'employeename'
,
isLoadDefault
:
true
,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public
searchform_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'save'
,
$event
);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public
searchform_search
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'search'
,
$event
);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public
searchform_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof HREmployeePickupGridViewBase
*/
protected
isExpandSearchForm
:
boolean
=
true
;
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.html
0 → 100644
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hremployeepickupgridview"
viewTitle=
"员工选择表格视图"
class=
'depickupgridview hremployee-pickup-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</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"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./hremployee-pickup-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HREmployeePickupGridViewBase } from './hremployee-pickup-grid-view-base';
import view_grid from '@widgets/hremployee/main-grid/main-grid.vue';
import view_searchform from '@widgets/hremployee/default-searchform/default-searchform.vue';
/**
* 员工选择表格视图视图
*
* @export
* @class HREmployeePickupGridView
* @extends {HREmployeePickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HREmployeePickupGridView extends HREmployeePickupGridViewBase { }
</script>
app_PIM/src/pages/human-resource/hremployee-pickup-view/hremployee-pickup-view-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
import
{
Subject
}
from
'rxjs'
;
import
{
PickupViewBase
}
from
'@/studio-core'
;
import
HREmployeeService
from
'@/service/hremployee/hremployee-service'
;
import
HREmployeeAuthService
from
'@/authservice/hremployee/hremployee-auth-service'
;
import
PickupViewEngine
from
'@engine/view/pickup-view-engine'
;
import
HREmployeeUIService
from
'@/uiservice/hremployee/hremployee-ui-service'
;
/**
* 员工数据选择视图视图基类
*
* @export
* @class HREmployeePickupViewBase
* @extends {PickupViewBase}
*/
export
class
HREmployeePickupViewBase
extends
PickupViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HREmployeePickupViewBase
*/
protected
appDeName
:
string
=
'hremployee'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HREmployeePickupViewBase
*/
protected
appDeKey
:
string
=
'employeeid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HREmployeePickupViewBase
*/
protected
appDeMajor
:
string
=
'employeename'
;
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof HREmployeePickupViewBase
*/
protected
appEntityService
:
HREmployeeService
=
new
HREmployeeService
;
/**
* 实体权限服务对象
*
* @type HREmployeeUIService
* @memberof HREmployeePickupViewBase
*/
public
appUIService
:
HREmployeeUIService
=
new
HREmployeeUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HREmployeePickupViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HREmployeePickupViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hremployee.views.pickupview.caption'
,
srfTitle
:
'entities.hremployee.views.pickupview.title'
,
srfSubTitle
:
'entities.hremployee.views.pickupview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HREmployeePickupViewBase
*/
protected
containerModel
:
any
=
{
view_pickupviewpanel
:
{
name
:
'pickupviewpanel'
,
type
:
'PICKUPVIEWPANEL'
},
view_okbtn
:
{
name
:
'okbtn'
,
type
:
'button'
,
text
:
'确定'
,
disabled
:
true
},
view_cancelbtn
:
{
name
:
'cancelbtn'
,
type
:
'button'
,
text
:
'取消'
,
disabled
:
false
},
view_leftbtn
:
{
name
:
'leftbtn'
,
type
:
'button'
,
text
:
'左移'
,
disabled
:
true
},
view_rightbtn
:
{
name
:
'rightbtn'
,
type
:
'button'
,
text
:
'右移'
,
disabled
:
true
},
view_allleftbtn
:
{
name
:
'allleftbtn'
,
type
:
'button'
,
text
:
'全部左移'
,
disabled
:
true
},
view_allrightbtn
:
{
name
:
'allrightbtn'
,
type
:
'button'
,
text
:
'全部右移'
,
disabled
:
true
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'ec9d9fe37bbfc3fcb623e2dc34b48dbc'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HREmployeePickupViewBase
*/
public
engine
:
PickupViewEngine
=
new
PickupViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HREmployeePickupViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
pickupviewpanel
:
this
.
$refs
.
pickupviewpanel
,
keyPSDEField
:
'hremployee'
,
majorPSDEField
:
'employeename'
,
isLoadDefault
:
true
,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupViewBase
*/
public
pickupviewpanel_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'selectionchange'
,
$event
);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupViewBase
*/
public
pickupviewpanel_activated
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'activated'
,
$event
);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupViewBase
*/
public
pickupviewpanel_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'load'
,
$event
);
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.html
0 → 100644
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hremployeepickupview"
viewTitle=
"员工数据选择视图"
class=
'depickupview hremployee-pickup-view'
>
<div
class=
"content-container pickup-view"
>
<view
_pickupviewpanel
:viewState=
"viewState"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:context=
"JSON.parse(JSON.stringify(context))"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
name=
"pickupviewpanel"
ref=
'pickupviewpanel'
@
selectionchange=
"pickupviewpanel_selectionchange($event)"
@
activated=
"pickupviewpanel_activated($event)"
@
load=
"pickupviewpanel_load($event)"
@
closeview=
"closeView($event)"
>
</view
_pickupviewpanel
>
</div>
<template
slot=
"footer"
>
<div
v-if=
"isShowButton"
:style=
"{ textAlign: 'right' }"
>
<i-button
type=
"primary"
:disabled=
"this.viewSelections.length > 0 ? false : true"
@
click=
"onClickOk.apply(_self, arguments)"
>
{{this.containerModel.view_okbtn.text}}
</i-button>
<i-button
@
click=
"onClickCancel.apply(_self, arguments)"
>
{{this.containerModel.view_cancelbtn.text}}
</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./hremployee-pickup-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HREmployeePickupViewBase } from './hremployee-pickup-view-base';
import view_pickupviewpanel from '@widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 员工数据选择视图视图
*
* @export
* @class HREmployeePickupView
* @extends {HREmployeePickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
}
})
@VueLifeCycleProcessing()
export default class HREmployeePickupView extends HREmployeePickupViewBase { }
</script>
app_PIM/src/pages/human-resource/hrpost-edit-view/hrpost-edit-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrposteditview"
viewTitle=
"职位编辑视图"
class=
'deeditview hrpost-edit-view'
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/human-resource/hrpost-grid-view/hrpost-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostgridview"
viewTitle=
"职位表格"
class=
'degridview hrpost-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"职位"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
import
{
Subject
}
from
'rxjs'
;
import
{
PickupGridViewBase
}
from
'@/studio-core'
;
import
HRPostService
from
'@/service/hrpost/hrpost-service'
;
import
HRPostAuthService
from
'@/authservice/hrpost/hrpost-auth-service'
;
import
PickupGridViewEngine
from
'@engine/view/pickup-grid-view-engine'
;
import
HRPostUIService
from
'@/uiservice/hrpost/hrpost-ui-service'
;
/**
* 职位选择表格视图视图基类
*
* @export
* @class HRPostPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export
class
HRPostPickupGridViewBase
extends
PickupGridViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostPickupGridViewBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostPickupGridViewBase
*/
protected
appDeKey
:
string
=
'hrpostid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostPickupGridViewBase
*/
protected
appDeMajor
:
string
=
'hrpostname'
;
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof HRPostPickupGridViewBase
*/
protected
appEntityService
:
HRPostService
=
new
HRPostService
;
/**
* 实体权限服务对象
*
* @type HRPostUIService
* @memberof HRPostPickupGridViewBase
*/
public
appUIService
:
HRPostUIService
=
new
HRPostUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostPickupGridViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostPickupGridViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrpost.views.pickupgridview.caption'
,
srfTitle
:
'entities.hrpost.views.pickupgridview.title'
,
srfSubTitle
:
'entities.hrpost.views.pickupgridview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostPickupGridViewBase
*/
protected
containerModel
:
any
=
{
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
view_searchform
:
{
name
:
'searchform'
,
type
:
'SEARCHFORM'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'5bd45b52782142f58a041e31e633921c'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostPickupGridViewBase
*/
public
engine
:
PickupGridViewEngine
=
new
PickupGridViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRPostPickupGridViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'hrpost'
,
majorPSDEField
:
'hrpostname'
,
isLoadDefault
:
true
,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public
searchform_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'save'
,
$event
);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public
searchform_search
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'search'
,
$event
);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public
searchform_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof HRPostPickupGridViewBase
*/
protected
isExpandSearchForm
:
boolean
=
true
;
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.html
0 → 100644
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostpickupgridview"
viewTitle=
"职位选择表格视图"
class=
'depickupgridview hrpost-pickup-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</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"
:selectedData=
"selectedData"
:showBusyIndicator=
"true"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./hrpost-pickup-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostPickupGridViewBase } from './hrpost-pickup-grid-view-base';
import view_grid from '@widgets/hrpost/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrpost/default-searchform/default-searchform.vue';
/**
* 职位选择表格视图视图
*
* @export
* @class HRPostPickupGridView
* @extends {HRPostPickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HRPostPickupGridView extends HRPostPickupGridViewBase { }
</script>
app_PIM/src/pages/human-resource/hrpost-pickup-view/hrpost-pickup-view-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
import
{
Subject
}
from
'rxjs'
;
import
{
PickupViewBase
}
from
'@/studio-core'
;
import
HRPostService
from
'@/service/hrpost/hrpost-service'
;
import
HRPostAuthService
from
'@/authservice/hrpost/hrpost-auth-service'
;
import
PickupViewEngine
from
'@engine/view/pickup-view-engine'
;
import
HRPostUIService
from
'@/uiservice/hrpost/hrpost-ui-service'
;
/**
* 职位数据选择视图视图基类
*
* @export
* @class HRPostPickupViewBase
* @extends {PickupViewBase}
*/
export
class
HRPostPickupViewBase
extends
PickupViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostPickupViewBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostPickupViewBase
*/
protected
appDeKey
:
string
=
'hrpostid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostPickupViewBase
*/
protected
appDeMajor
:
string
=
'hrpostname'
;
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof HRPostPickupViewBase
*/
protected
appEntityService
:
HRPostService
=
new
HRPostService
;
/**
* 实体权限服务对象
*
* @type HRPostUIService
* @memberof HRPostPickupViewBase
*/
public
appUIService
:
HRPostUIService
=
new
HRPostUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostPickupViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostPickupViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrpost.views.pickupview.caption'
,
srfTitle
:
'entities.hrpost.views.pickupview.title'
,
srfSubTitle
:
'entities.hrpost.views.pickupview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostPickupViewBase
*/
protected
containerModel
:
any
=
{
view_pickupviewpanel
:
{
name
:
'pickupviewpanel'
,
type
:
'PICKUPVIEWPANEL'
},
view_okbtn
:
{
name
:
'okbtn'
,
type
:
'button'
,
text
:
'确定'
,
disabled
:
true
},
view_cancelbtn
:
{
name
:
'cancelbtn'
,
type
:
'button'
,
text
:
'取消'
,
disabled
:
false
},
view_leftbtn
:
{
name
:
'leftbtn'
,
type
:
'button'
,
text
:
'左移'
,
disabled
:
true
},
view_rightbtn
:
{
name
:
'rightbtn'
,
type
:
'button'
,
text
:
'右移'
,
disabled
:
true
},
view_allleftbtn
:
{
name
:
'allleftbtn'
,
type
:
'button'
,
text
:
'全部左移'
,
disabled
:
true
},
view_allrightbtn
:
{
name
:
'allrightbtn'
,
type
:
'button'
,
text
:
'全部右移'
,
disabled
:
true
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'04c02737ae62a4f4c014607441ee0401'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostPickupViewBase
*/
public
engine
:
PickupViewEngine
=
new
PickupViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRPostPickupViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
pickupviewpanel
:
this
.
$refs
.
pickupviewpanel
,
keyPSDEField
:
'hrpost'
,
majorPSDEField
:
'hrpostname'
,
isLoadDefault
:
true
,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupViewBase
*/
public
pickupviewpanel_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'selectionchange'
,
$event
);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupViewBase
*/
public
pickupviewpanel_activated
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'activated'
,
$event
);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupViewBase
*/
public
pickupviewpanel_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'load'
,
$event
);
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.html
0 → 100644
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostpickupview"
viewTitle=
"职位数据选择视图"
class=
'depickupview hrpost-pickup-view'
>
<div
class=
"content-container pickup-view"
>
<view
_pickupviewpanel
:viewState=
"viewState"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:context=
"JSON.parse(JSON.stringify(context))"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
name=
"pickupviewpanel"
ref=
'pickupviewpanel'
@
selectionchange=
"pickupviewpanel_selectionchange($event)"
@
activated=
"pickupviewpanel_activated($event)"
@
load=
"pickupviewpanel_load($event)"
@
closeview=
"closeView($event)"
>
</view
_pickupviewpanel
>
</div>
<template
slot=
"footer"
>
<div
v-if=
"isShowButton"
:style=
"{ textAlign: 'right' }"
>
<i-button
type=
"primary"
:disabled=
"this.viewSelections.length > 0 ? false : true"
@
click=
"onClickOk.apply(_self, arguments)"
>
{{this.containerModel.view_okbtn.text}}
</i-button>
<i-button
@
click=
"onClickCancel.apply(_self, arguments)"
>
{{this.containerModel.view_cancelbtn.text}}
</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./hrpost-pickup-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostPickupViewBase } from './hrpost-pickup-view-base';
import view_pickupviewpanel from '@widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 职位数据选择视图视图
*
* @export
* @class HRPostPickupView
* @extends {HRPostPickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
}
})
@VueLifeCycleProcessing()
export default class HRPostPickupView extends HRPostPickupViewBase { }
</script>
app_PIM/src/pages/human-resource/hrpost-rel-edit-view/hrpost-rel-edit-view.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -561,7 +561,12 @@ export class HRPostRelGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRPostRelGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostrelgridview"
viewTitle=
"职位关系表格视图"
class=
'degridview hrpost-rel-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"职位关系名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -213,10 +213,15 @@ export class HRPostRelV_001Base extends GridView9Base {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'
editview'
,
parameterName
:
'editview
'
},
{
pathName
:
'
v_002'
,
parameterName
:
'v_002
'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
...
...
@@ -247,10 +252,15 @@ export class HRPostRelV_001Base extends GridView9Base {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hrpost
&&
true
){
deResParameters
=
[
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'
editview'
,
parameterName
:
'editview
'
},
{
pathName
:
'
v_002'
,
parameterName
:
'v_002
'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
...
...
app_PIM/src/pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
import
{
Subject
}
from
'rxjs'
;
import
{
OptionViewBase
}
from
'@/studio-core'
;
import
HRPostRelService
from
'@/service/hrpost-rel/hrpost-rel-service'
;
import
HRPostRelAuthService
from
'@/authservice/hrpost-rel/hrpost-rel-auth-service'
;
import
OptionViewEngine
from
'@engine/view/option-view-engine'
;
import
HRPostRelUIService
from
'@/uiservice/hrpost-rel/hrpost-rel-ui-service'
;
/**
* 直接上级职位视图基类
*
* @export
* @class HRPostRelV_002Base
* @extends {OptionViewBase}
*/
export
class
HRPostRelV_002Base
extends
OptionViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostRelV_002Base
*/
protected
appDeName
:
string
=
'hrpostrel'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostRelV_002Base
*/
protected
appDeKey
:
string
=
'hrpostrelid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostRelV_002Base
*/
protected
appDeMajor
:
string
=
'hrpostrelname'
;
/**
* 实体服务对象
*
* @type {HRPostRelService}
* @memberof HRPostRelV_002Base
*/
protected
appEntityService
:
HRPostRelService
=
new
HRPostRelService
;
/**
* 实体权限服务对象
*
* @type HRPostRelUIService
* @memberof HRPostRelV_002Base
*/
public
appUIService
:
HRPostRelUIService
=
new
HRPostRelUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostRelV_002Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostRelV_002Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrpostrel.views.v_002.caption'
,
srfTitle
:
'entities.hrpostrel.views.v_002.title'
,
srfSubTitle
:
'entities.hrpostrel.views.v_002.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostRelV_002Base
*/
protected
containerModel
:
any
=
{
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
view_okbtn
:
{
name
:
'okbtn'
,
type
:
'button'
,
text
:
'确定'
,
disabled
:
true
},
view_cancelbtn
:
{
name
:
'cancelbtn'
,
type
:
'button'
,
text
:
'取消'
,
disabled
:
false
},
view_leftbtn
:
{
name
:
'leftbtn'
,
type
:
'button'
,
text
:
'左移'
,
disabled
:
true
},
view_rightbtn
:
{
name
:
'rightbtn'
,
type
:
'button'
,
text
:
'右移'
,
disabled
:
true
},
view_allleftbtn
:
{
name
:
'allleftbtn'
,
type
:
'button'
,
text
:
'全部左移'
,
disabled
:
true
},
view_allrightbtn
:
{
name
:
'allrightbtn'
,
type
:
'button'
,
text
:
'全部右移'
,
disabled
:
true
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'd4d0e128d8c7e5c141f99540b62fd9bf'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostRelV_002Base
*/
public
engine
:
OptionViewEngine
=
new
OptionViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRPostRelV_002Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'hrpostrel'
,
majorPSDEField
:
'hrpostrelname'
,
isLoadDefault
:
true
,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_002Base
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_002Base
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_002Base
*/
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-rel-v-002/hrpost-rel-v-002.html
0 → 100644
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostrelv_002"
viewTitle=
"直接上级职位"
class=
'deoptview hrpost-rel-v-002'
>
<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
>
<template
slot=
"footer"
>
<div
class=
"option-view-footer-actions"
>
<i-button
type=
'primary'
@
click=
"onClickOk.apply(_self, arguments)"
>
{{ containerModel.view_okbtn.text }}
</i-button>
<i-button
@
click=
"onClickCancel.apply(_self, arguments)"
>
{{ containerModel.view_cancelbtn.text }}
</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./hrpost-rel-v-002.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostRelV_002Base } from './hrpost-rel-v-002-base';
import view_form from '@widgets/hrpost-rel/main-form/main-form.vue';
/**
* 直接上级职位视图
*
* @export
* @class HRPostRelV_002
* @extends {HRPostRelV_002Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRPostRelV_002 extends HRPostRelV_002Base { }
</script>
app_PIM/src/pages/human-resource/hrpost-tab-exp-view/hrpost-tab-exp-view-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -6,7 +6,7 @@ import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
import
HRPostUIService
from
'@/uiservice/hrpost/hrpost-ui-service'
;
/**
* 职位
信息
视图基类
* 职位视图基类
*
* @export
* @class HRPostTabExpViewBase
...
...
app_PIM/src/pages/human-resource/hrpost-tab-exp-view/hrpost-tab-exp-view.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrposttabexpview"
viewTitle=
"职位
信息
"
class=
'detabexpview hrpost-tab-exp-view'
>
<studio-view-style2
viewName=
"hrposttabexpview"
viewTitle=
"职位"
class=
'detabexpview hrpost-tab-exp-view'
>
<view
_tabexppanel
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/human-resource/hrpost-tab-exp-view/hrpost-tab-exp-view.vue
浏览文件 @
2bfe9df7
...
...
@@ -6,7 +6,7 @@ import { HRPostTabExpViewBase } from './hrpost-tab-exp-view-base';
import view_tabexppanel from '@widgets/hrpost/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel.vue';
/**
* 职位
信息
视图
* 职位视图
*
* @export
* @class HRPostTabExpView
...
...
app_PIM/src/pages/human-resource/hrpost-v-001/hrpost-v-001.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostv_001"
viewTitle=
"有效职位"
class=
'degridview hrpost-v-001'
>
<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>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hrpost-v-002/hrpost-v-002.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostv_002"
viewTitle=
"空缺职位"
class=
'degridview hrpost-v-002'
>
<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>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hrpost-v-003/hrpost-v-003.html
浏览文件 @
2bfe9df7
<studio-view-style2
viewName=
"hrpostv_003"
viewTitle=
"失效职位"
class=
'degridview hrpost-v-003'
>
<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>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
...
...
app_PIM/src/pages/human-resource/hrpost-v-006/hrpost-v-006.html
浏览文件 @
2bfe9df7
...
...
@@ -3,7 +3,7 @@
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
($event
)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click
.apply(_self, arguments
)"
/>
</template>
<view
_tabexppanel
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/ungroup/pim/page-register.ts
浏览文件 @
2bfe9df7
export
const
PageComponents
=
{
install
(
Vue
:
any
,
opt
:
any
)
{
Vue
.
component
(
'hremployee-pickup-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'
));
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'
));
...
...
@@ -15,6 +16,8 @@ export const PageComponents = {
Vue
.
component
(
'hrpost-v-001'
,
()
=>
import
(
'@pages/human-resource/hrpost-v-001/hrpost-v-001.vue'
));
Vue
.
component
(
'hromhierarchy-grid-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-grid-view/hromhierarchy-grid-view.vue'
));
Vue
.
component
(
'hroperation-unit-v-002'
,
()
=>
import
(
'@pages/base/hroperation-unit-v-002/hroperation-unit-v-002.vue'
));
Vue
.
component
(
'hrpost-rel-v-002'
,
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue'
));
Vue
.
component
(
'hremployee-pickup-grid-view'
,
()
=>
import
(
'@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'
));
Vue
.
component
(
'hrorganization-pickup-view'
,
()
=>
import
(
'@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'
));
Vue
.
component
(
'hrlegal-grid-view'
,
()
=>
import
(
'@pages/base/hrlegal-grid-view/hrlegal-grid-view.vue'
));
Vue
.
component
(
'hromhierarchy-tree-exp-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue'
));
...
...
@@ -22,13 +25,16 @@ export const PageComponents = {
Vue
.
component
(
'hrlegal-v-002'
,
()
=>
import
(
'@pages/base/hrlegal-v-002/hrlegal-v-002.vue'
));
Vue
.
component
(
'hroperation-unit-tab-exp-view'
,
()
=>
import
(
'@pages/base/hroperation-unit-tab-exp-view/hroperation-unit-tab-exp-view.vue'
));
Vue
.
component
(
'hrorg-address-grid-view'
,
()
=>
import
(
'@pages/base/hrorg-address-grid-view/hrorg-address-grid-view.vue'
));
Vue
.
component
(
'hrpost-pickup-view'
,
()
=>
import
(
'@pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue'
));
Vue
.
component
(
'hrlegal-dashboard-view'
,
()
=>
import
(
'@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'
));
Vue
.
component
(
'hrorganization-pickup-grid-view'
,
()
=>
import
(
'@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'
));
Vue
.
component
(
'hrlegal-v-001'
,
()
=>
import
(
'@pages/base/hrlegal-v-001/hrlegal-v-001.vue'
));
Vue
.
component
(
'hrpost-pickup-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue'
));
Vue
.
component
(
'hrpost-dashboard-view'
,
()
=>
import
(
'@pages/human-resource/hrpost-dashboard-view/hrpost-dashboard-view.vue'
));
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
(
'hrdistribution-v-002'
,
()
=>
import
(
'@pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.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'
));
...
...
app_PIM/src/pages/ungroup/pim/router.ts
浏览文件 @
2bfe9df7
...
...
@@ -43,6 +43,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/ungroup/pim/pim.vue'
),
children
:
[
{
path
:
'hremployees/:hremployee?/pickupview/:pickupview?'
,
meta
:
{
caption
:
'entities.hremployee.views.pickupview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'pickupview'
,
parameterName
:
'pickupview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'
),
},
{
path
:
'hrposts/:hrpost?/v_004/:v_004?'
,
meta
:
{
...
...
@@ -113,6 +127,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-v-002/hrpost-v-002.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrdistributions/:hrdistribution?/editview/:editview?'
,
meta
:
{
caption
:
'entities.hrdistribution.views.editview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.vue'
),
},
{
path
:
'hrdistributions/:hrdistribution?/editview/:editview?'
,
meta
:
{
...
...
@@ -358,6 +387,49 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hroperation-unit-v-002/hroperation-unit-v-002.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrpostrels/:hrpostrel?/v_002/:v_002?'
,
meta
:
{
caption
:
'entities.hrpostrel.views.v_002.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'v_002'
,
parameterName
:
'v_002'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue'
),
},
{
path
:
'hrpostrels/:hrpostrel?/v_002/:v_002?'
,
meta
:
{
caption
:
'entities.hrpostrel.views.v_002.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'v_002'
,
parameterName
:
'v_002'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue'
),
},
{
path
:
'hremployees/:hremployee?/pickupgridview/:pickupgridview?'
,
meta
:
{
caption
:
'entities.hremployee.views.pickupgridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
{
pathName
:
'pickupgridview'
,
parameterName
:
'pickupgridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'
),
},
{
path
:
'hrorganizations/:hrorganization?/pickupview/:pickupview?'
,
meta
:
{
...
...
@@ -501,6 +573,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hrorg-address-grid-view/hrorg-address-grid-view.vue'
),
},
{
path
:
'hrposts/:hrpost?/pickupview/:pickupview?'
,
meta
:
{
caption
:
'entities.hrpost.views.pickupview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'pickupview'
,
parameterName
:
'pickupview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue'
),
},
{
path
:
'hrlegals/:hrlegal?/dashboardview/:dashboardview?'
,
meta
:
{
...
...
@@ -543,6 +629,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hrlegal-v-001/hrlegal-v-001.vue'
),
},
{
path
:
'hrposts/:hrpost?/pickupgridview/:pickupgridview?'
,
meta
:
{
caption
:
'entities.hrpost.views.pickupgridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'pickupgridview'
,
parameterName
:
'pickupgridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue'
),
},
{
path
:
'hrposts/:hrpost?/dashboardview/:dashboardview?'
,
meta
:
{
...
...
@@ -629,6 +729,50 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrdistributions/:hrdistribution?/v_002/:v_002?'
,
meta
:
{
caption
:
'entities.hrdistribution.views.v_002.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'v_002'
,
parameterName
:
'v_002'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.vue'
),
},
{
path
:
'hrdistributions/:hrdistribution?/v_002/:v_002?'
,
meta
:
{
caption
:
'entities.hrdistribution.views.v_002.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'v_002'
,
parameterName
:
'v_002'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrpostrels/:hrpostrel?/v_001/:v_001?'
,
meta
:
{
caption
:
'entities.hrpostrel.views.v_001.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
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
:
'hrpostrels/:hrpostrel?/v_001/:v_001?'
,
meta
:
{
...
...
@@ -855,6 +999,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.hrpostrel.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'
),
},
{
path
:
'hrpostrels/:hrpostrel?/gridview/:gridview?'
,
meta
:
{
...
...
@@ -941,6 +1100,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrdistributions/:hrdistribution?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.hrdistribution.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'hrdistributions'
,
parameterName
:
'hrdistribution'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view.vue'
),
},
{
path
:
'hrdistributions/:hrdistribution?/gridview/:gridview?'
,
meta
:
{
...
...
@@ -998,6 +1172,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hromhierarchy-pickup-grid-view/hromhierarchy-pickup-grid-view.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrpostrels/:hrpostrel?/editview/:editview?'
,
meta
:
{
caption
:
'entities.hrpostrel.views.editview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
pathName
:
'hrpostrels'
,
parameterName
:
'hrpostrel'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-edit-view/hrpost-rel-edit-view.vue'
),
},
{
path
:
'hrpostrels/:hrpostrel?/editview/:editview?'
,
meta
:
{
...
...
@@ -1012,6 +1201,21 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-edit-view/hrpost-rel-edit-view.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrdistributions/:hrdistribution?/v_001/:v_001?'
,
meta
:
{
caption
:
'entities.hrdistribution.views.v_001.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrposts'
,
parameterName
:
'hrpost'
},
{
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
:
'hrdistributions/:hrdistribution?/v_001/:v_001?'
,
meta
:
{
...
...
app_PIM/src/service/hrdistribution/hrdistribution-service-base.ts
浏览文件 @
2bfe9df7
...
...
@@ -48,6 +48,11 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrdistribution
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/
${
context
.
hrdistribution
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrdistributions/
${
context
.
hrdistribution
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrdistribution
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/
${
context
.
hrdistribution
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrdistributions/
${
context
.
hrdistribution
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrdistribution
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrdistribution
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/getdraft`
,
isloading
);
res
.
data
.
hrdistribution
=
data
.
hrdistribution
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrdistributions/getdraft`
,
isloading
);
res
.
data
.
hrdistribution
=
data
.
hrdistribution
;
...
...
@@ -149,6 +190,13 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrdistribution
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/
${
context
.
hrdistribution
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrdistributions/
${
context
.
hrdistribution
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrdistribution
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/
${
context
.
hrdistribution
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrdistributions/
${
context
.
hrdistribution
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrdistributions/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrpost-rel/hrpost-rel-service-base.ts
浏览文件 @
2bfe9df7
...
...
@@ -48,6 +48,11 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrpostrel
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/
${
context
.
hrpostrel
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrpostrels/
${
context
.
hrpostrel
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrpostrel
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/
${
context
.
hrpostrel
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrpostrels/
${
context
.
hrpostrel
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrpostrel
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/
${
context
.
hrpostrel
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrpostrels/
${
context
.
hrpostrel
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrpostrel
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/
${
context
.
hrpostrel
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrpostrels/
${
context
.
hrpostrel
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/getdraft`
,
isloading
);
res
.
data
.
hrpostrel
=
data
.
hrpostrel
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrpostrels/getdraft`
,
isloading
);
res
.
data
.
hrpostrel
=
data
.
hrpostrel
;
...
...
@@ -149,6 +190,13 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrpostrel
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/
${
context
.
hrpostrel
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrpostrels/
${
context
.
hrpostrel
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
context
.
hrpostrel
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/
${
context
.
hrpostrel
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrpostrels/
${
context
.
hrpostrel
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hrpost
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrpostrels/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrpostrels/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrpost/hrpost-service-base.ts
浏览文件 @
2bfe9df7
...
...
@@ -73,6 +73,8 @@ export default class HRPostServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrposts`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrdistributions'
,
JSON
.
stringify
(
res
.
data
.
hrdistributions
?
res
.
data
.
hrdistributions
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrpostrels'
,
JSON
.
stringify
(
res
.
data
.
hrpostrels
?
res
.
data
.
hrpostrels
:[]));
return
res
;
}
...
...
app_PIM/src/store/modules/view-action/state.ts
浏览文件 @
2bfe9df7
...
...
@@ -12,6 +12,16 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'04c02737ae62a4f4c014607441ee0401'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRPostPickupView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'5bd45b52782142f58a041e31e633921c'
,
],
},
{
viewtag
:
'0515a652f1ba4326ef610f1d98be95c8'
,
viewmodule
:
'Base'
,
...
...
@@ -216,7 +226,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'
6cf9411c3f3597947dfee8dad2968182
'
,
'
d4d0e128d8c7e5c141f99540b62fd9bf
'
,
],
},
{
...
...
@@ -229,6 +239,15 @@ export const viewstate: any = {
'0515a652f1ba4326ef610f1d98be95c8'
,
],
},
{
viewtag
:
'5bd45b52782142f58a041e31e633921c'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRPostPickupGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'5efdfaf722e7585dfd685922b16f7f88'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -276,7 +295,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'
9e5d3f17ad97fd735b8abc637018301d
'
,
'
cd7f9e0b57fdfdf34307ce460137b152
'
,
],
},
{
...
...
@@ -285,6 +304,16 @@ export const viewstate: any = {
viewname
:
'HRPostRelEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'04c02737ae62a4f4c014607441ee0401'
,
],
},
{
viewtag
:
'73f27ddcf2a626455aa88f4a052db014'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HREmployeePickupGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
...
...
@@ -365,6 +394,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'ec9d9fe37bbfc3fcb623e2dc34b48dbc'
,
],
},
{
...
...
@@ -471,6 +501,16 @@ export const viewstate: any = {
'ebcbf493e0a574cf170412456645a3a7'
,
],
},
{
viewtag
:
'cd7f9e0b57fdfdf34307ce460137b152'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRDistributionV_002'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'ec9d9fe37bbfc3fcb623e2dc34b48dbc'
,
],
},
{
viewtag
:
'd2137112227c4243e95ffe9ef7eaafab'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -493,6 +533,16 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'd4d0e128d8c7e5c141f99540b62fd9bf'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRPostRelV_002'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'04c02737ae62a4f4c014607441ee0401'
,
],
},
{
viewtag
:
'd5b65e4ae9fc38e66c7faf5698dc6776'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -552,6 +602,16 @@ export const viewstate: any = {
'de53ae7d577a526b3b268951df885868'
,
],
},
{
viewtag
:
'ec9d9fe37bbfc3fcb623e2dc34b48dbc'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HREmployeePickupView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'73f27ddcf2a626455aa88f4a052db014'
,
],
},
{
viewtag
:
'f03c9544f1a1107bb34a97542dde1a3e'
,
viewmodule
:
'HumanResource'
,
...
...
app_PIM/src/studio-core/components/view-toolbar/view-toolbar.tsx
浏览文件 @
2bfe9df7
...
...
@@ -211,6 +211,9 @@ export class ViewToolbar extends Vue {
if
(
item
.
type
===
'SEPERATOR'
)
{
return
this
.
renderSeperator
();
}
if
(
item
.
uiaction
&&
Object
.
is
(
item
.
uiaction
.
tag
,
'ExportExcel'
))
{
return
<
app
-
export
-
excel
item=
{
item
}
caption=
{
item
.
caption
}
on
-
exportexcel=
{
(
$event
:
any
)
=>
this
.
itemClick
({
tag
:
item
.
name
},
$event
)
}
></
app
-
export
-
excel
>
}
return
<
i
-
button
title=
{
item
.
tooltip
}
v
-
show=
{
item
.
visabled
}
disabled=
{
item
.
disabled
}
class=
{
item
.
class
}
on
-
click=
{
(
e
:
any
)
=>
this
.
itemClick
({
tag
:
item
.
name
},
e
)
}
>
<
menu
-
icon
item=
{
item
}
/>
<
span
class=
'caption'
v
-
show=
{
item
.
isShowCaption
}
>
{
item
.
caption
}
</
span
>
...
...
app_PIM/src/studio-core/widgets/ControlBase.tsx
浏览文件 @
2bfe9df7
...
...
@@ -72,6 +72,15 @@ export class ControlBase extends Vue {
*/
protected
appDeName
:
string
=
''
;
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof ControlBase
*/
protected
appDeLogicName
:
string
=
''
;
/**
* rxjs类型订阅事件
*
...
...
app_PIM/src/studio-core/widgets/GridControlBase.tsx
浏览文件 @
2bfe9df7
...
...
@@ -655,7 +655,7 @@ export class GridControlBase extends MDControlBase {
excel
.
export_json_to_excel
({
header
:
tHeader
,
//表头 必填
data
,
//具体数据 必填
filename
:
"${ctrl.getPSAppDataEntity().getLogicName()}"
+
(
this
.
$t
(
'app.gridpage.grid'
)
as
string
),
//非必填
filename
:
this
.
appDeLogicName
+
(
this
.
$t
(
'app.gridpage.grid'
)
as
string
),
//非必填
autoWidth
:
true
,
//非必填
bookType
:
"xlsx"
//非必填
});
...
...
@@ -688,11 +688,14 @@ export class GridControlBase extends MDControlBase {
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
Object
.
assign
(
arg
,
parentdata
);
let
tempViewParams
:
any
=
parentdata
.
viewparams
?
parentdata
.
viewparams
:
{};
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
let
post
:
any
;
if
(
this
.
isDeExport
)
{
const
post
:
Promise
<
any
>
=
this
.
service
.
searchDEExportData
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
post
=
this
.
service
.
searchDEExportData
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
}
else
{
const
post
:
Promise
<
any
>
=
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
post
=
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
}
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
...
...
app_PIM/src/uiservice/hrdistribution/hrdistribution-ui-service-base.ts
浏览文件 @
2bfe9df7
...
...
@@ -91,7 +91,8 @@ 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'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'editview'
,
srfappde
:
'hrdistributions'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'v_002'
,
srfappde
:
'hrdistributions'
});
}
/**
...
...
app_PIM/src/uiservice/hremployee/hremployee-ui-service-base.ts
浏览文件 @
2bfe9df7
...
...
@@ -89,8 +89,10 @@ export default class HREmployeeUIServiceBase extends UIService {
* @memberof HREmployeeUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'pickupgridview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'hremployees'
});
this
.
allViewMap
.
set
(
'PICKUPVIEW:'
,{
viewname
:
'pickupview'
,
srfappde
:
'hremployees'
});
}
/**
...
...
app_PIM/src/uiservice/hrpost-rel/hrpost-rel-ui-service-base.ts
浏览文件 @
2bfe9df7
...
...
@@ -91,7 +91,8 @@ export default class HRPostRelUIServiceBase extends UIService {
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'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'editview'
,
srfappde
:
'hrpostrels'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'v_002'
,
srfappde
:
'hrpostrels'
});
}
/**
...
...
app_PIM/src/uiservice/hrpost/hrpost-ui-service-base.ts
浏览文件 @
2bfe9df7
...
...
@@ -89,8 +89,10 @@ export default class HRPostUIServiceBase extends UIService {
* @memberof HRPostUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
'PICKUPVIEW:'
,{
viewname
:
'pickupview'
,
srfappde
:
'hrposts'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_003'
,
srfappde
:
'hrposts'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_002'
,
srfappde
:
'hrposts'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'pickupgridview'
,
srfappde
:
'hrposts'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_004'
,
srfappde
:
'hrposts'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'hrposts'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_001'
,
srfappde
:
'hrposts'
});
...
...
app_PIM/src/widgets/hrdistribution/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrdistribution'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'工作人员分配'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrdistribution/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrdistribution'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'工作人员分配'
;
/**
* 界面UI服务对象
*
...
...
@@ -73,11 +82,10 @@ export class MainEditFormBase extends EditFormControlBase {
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
hrdistributionname
:
null
,
createman
:
null
,
createdate
:
null
,
updateman
:
null
,
updatedate
:
null
,
hremployeename
:
null
,
begintime
:
null
,
endtime
:
null
,
hremployeeid
:
null
,
hrdistributionid
:
null
,
hrdistribution
:
null
,
};
...
...
@@ -89,6 +97,14 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
hremployeename
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'员工姓名 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'员工姓名 值不能为空'
,
trigger
:
'blur'
},
],
begintime
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'入职时间 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'入职时间 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
...
...
@@ -107,14 +123,10 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'工作人员分配基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
tru
e
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrdistribution.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
group1
:
new
FormGroupPanelModel
({
caption
:
'工作人员分配基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
fals
e
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrdistribution.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
group2
:
new
FormGroupPanelModel
({
caption
:
'操作信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrdistribution.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage2
:
new
FormPageModel
({
caption
:
'其它'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage2'
,
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
}),
...
...
@@ -131,18 +143,15 @@ 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
}),
hrdistributionname
:
new
FormItemModel
({
caption
:
'工作人员分配名称'
,
detailType
:
'FORMITEM'
,
name
:
'hrdistributionname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
createman
:
new
FormItemModel
({
caption
:
'建立人'
,
detailType
:
'FORMITEM'
,
name
:
'createman'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hremployeename
:
new
FormItemModel
({
caption
:
'员工姓名'
,
detailType
:
'FORMITEM'
,
name
:
'hremployeename'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
createdate
:
new
FormItemModel
({
caption
:
'建立时间'
,
detailType
:
'FORMITEM'
,
name
:
'createdat
e'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
begintime
:
new
FormItemModel
({
caption
:
'入职时间'
,
detailType
:
'FORMITEM'
,
name
:
'begintim
e'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
updateman
:
new
FormItemModel
({
caption
:
'更新人'
,
detailType
:
'FORMITEM'
,
name
:
'updateman
'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
endtime
:
new
FormItemModel
({
caption
:
'离职时间'
,
detailType
:
'FORMITEM'
,
name
:
'endtime
'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
updatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'updatedate
'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hremployeeid
:
new
FormItemModel
({
caption
:
'员工标识'
,
detailType
:
'FORMITEM'
,
name
:
'hremployeeid
'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrdistributionid
:
new
FormItemModel
({
caption
:
'工作人员分配标识'
,
detailType
:
'FORMITEM'
,
name
:
'hrdistributionid'
,
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/hrdistribution/main-form/main-form-model.ts
浏览文件 @
2bfe9df7
...
...
@@ -56,29 +56,24 @@ export default class MainModel {
name
:
'srfsourcekey'
,
},
{
name
:
'hr
distribution
name'
,
prop
:
'hr
distribution
name'
,
dataType
:
'TEXT'
,
name
:
'hr
employee
name'
,
prop
:
'hr
employee
name'
,
dataType
:
'
PICKUP
TEXT'
,
},
{
name
:
'
createman
'
,
prop
:
'
createman
'
,
dataType
:
'
TEXT
'
,
name
:
'
begintime
'
,
prop
:
'
begintime
'
,
dataType
:
'
DATE
'
,
},
{
name
:
'
createdat
e'
,
prop
:
'
createdat
e'
,
dataType
:
'DATE
TIME
'
,
name
:
'
endtim
e'
,
prop
:
'
endtim
e'
,
dataType
:
'DATE'
,
},
{
name
:
'updateman'
,
prop
:
'updateman'
,
dataType
:
'TEXT'
,
},
{
name
:
'updatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
name
:
'hremployeeid'
,
prop
:
'hremployeeid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'hrdistributionid'
,
...
...
app_PIM/src/widgets/hrdistribution/main-form/main-form-service.ts
浏览文件 @
2bfe9df7
...
...
@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import
ControlService
from
'@/widgets/control-service'
;
import
HRDistributionService
from
'@/service/hrdistribution/hrdistribution-service'
;
import
MainModel
from
'./main-form-model'
;
import
HREmployeeService
from
'@/service/hremployee/hremployee-service'
;
/**
...
...
@@ -41,6 +42,14 @@ export default class MainService extends ControlService {
this
.
model
=
new
MainModel
();
}
/**
* 员工服务对象
*
* @type {HREmployeeService}
* @memberof MainService
*/
public
hremployeeService
:
HREmployeeService
=
new
HREmployeeService
();
/**
* 处理数据
*
...
...
@@ -82,6 +91,9 @@ export default class MainService extends ControlService {
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
;
if
(
Object
.
is
(
serviceName
,
'HREmployeeService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
hremployeeService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'employeeid'
,
'hremployee'
);
}
return
Promise
.
reject
([])
}
...
...
app_PIM/src/widgets/hrdistribution/main-form/main-form.html
浏览文件 @
2bfe9df7
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'hrdistribution_main'
style=
""
>
<input
style=
"display:none;"
/>
<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.hrdistribution.main_form.details.formpage1')
])
}"
>
<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.hrdistribution.main_form.details.group1')"
:isShowCaption=
"
tru
e"
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.hrdistribution.main_form.details.group1')"
:isShowCaption=
"
fals
e"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<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.hrdistributionname.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'hrdistributionname'
:itemRules=
"this.rules.hrdistributionname"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.hrdistributionname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrdistributionname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.hrdistributionname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.hrdistributionname.disabled"
type=
'text'
style=
""
>
</input-box>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.hremployeename.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'hremployeename'
:itemRules=
"this.rules.hremployeename"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.hremployeename')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hremployeename.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
:formState=
"formState"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.hremployeename.disabled"
name=
'hremployeename'
deMajorField=
'employeename'
deKeyField=
'hremployee'
:service=
"service"
:acParams=
"{ serviceName: 'HREmployeeService', interfaceName: 'FetchDefault'}"
valueitem=
'hremployeeid'
:value=
"data.hremployeename"
:pickupView=
"{ viewname: 'hremployee-pickup-view', title: $t('entities.hremployee.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'hremployees', parameterName: 'hremployee' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=
""
@
formitemvaluechange=
"onFormItemValueChange($event)"
>
</app-picker>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</tab-pane>
<tab-pane
v-show=
"detailsModel.formpage2.visible"
name=
'formpage2'
:index=
"1"
tab=
'main'
class=
''
:label=
"(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.hrdistribution.main_form.details.formpage2')
])
}"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group2"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrdistribution.main_form.details.group2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.createman.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'createman'
:itemRules=
"this.rules.createman"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.createman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createman'
:value=
"data.createman"
dataType=
"TEXT"
:precision=
"0"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.begintime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'begintime'
:itemRules=
"this.rules.begintime"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.begintime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.begintime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.begintime"
:disabled=
"detailsModel.begintime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.begintime = val1 }"
></date-picker>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.createdate.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'createdate'
:itemRules=
"this.rules.createdate"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createdate'
:value=
"data.createdate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
: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.updateman.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'updateman'
:itemRules=
"this.rules.updateman"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.updateman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updateman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updateman'
:value=
"data.updateman"
dataType=
"TEXT"
:precision=
"0"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
: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.updatedate.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules.updatedate"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updatedate'
:value=
"data.updatedate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.endtime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'endtime'
:itemRules=
"this.rules.endtime"
class=
''
:caption=
"$t('entities.hrdistribution.main_form.details.endtime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.endtime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.endtime"
:disabled=
"detailsModel.endtime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.endtime = val1 }"
></date-picker>
</app-form-item>
...
...
@@ -98,7 +53,5 @@ tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewpa
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hrdistribution/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrdistribution'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'工作人员分配'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrduty/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrduty'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'职务'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrduty/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrduty'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'职务'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrduty/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrduty'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'职务'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrduty/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class PickupViewpickupviewpanelPickupviewpanelBase extends MainControlBas
*/
protected
appDeName
:
string
=
'hrduty'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职务'
;
/**
* 选中数据字符串
...
...
app_PIM/src/widgets/hremployee/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hremployee'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'员工'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hremployee/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hremployee'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'员工'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hremployee/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hremployee'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'员工'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
MainControlBase
}
from
'@/studio-core'
;
import
HREmployeeService
from
'@/service/hremployee/hremployee-service'
;
import
PickupViewpickupviewpanelService
from
'./pickup-viewpickupviewpanel-pickupviewpanel-service'
;
import
HREmployeeUIService
from
'@/uiservice/hremployee/hremployee-ui-service'
;
import
PickupViewpickupviewpanelModel
from
'./pickup-viewpickupviewpanel-pickupviewpanel-model'
;
/**
* pickupviewpanel部件基类
*
* @export
* @class MainControlBase
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
export
class
PickupViewpickupviewpanelPickupviewpanelBase
extends
MainControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
controlType
:
string
=
'PICKUPVIEWPANEL'
;
/**
* 建构部件服务对象
*
* @type {PickupViewpickupviewpanelService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public
service
:
PickupViewpickupviewpanelService
=
new
PickupViewpickupviewpanelService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public
appEntityService
:
HREmployeeService
=
new
HREmployeeService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeName
:
string
=
'hremployee'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeLogicName
:
string
=
'员工'
;
/**
* 选中数据字符串
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
@
Prop
()
public
selectedData
?:
string
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanel
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PickupViewpickupviewpanel
*/
public
getData
():
any
{
return
{};
}
/**
* 视图名称
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
view
:
any
=
{
viewname
:
'hremployee-pickup-grid-view'
,
data
:
{},
}
/**
* 局部上下文
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
localContext
:
any
=
null
;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
localViewParam
:
any
=
null
;
/**
* 视图数据
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
viewdata
:
string
=
JSON
.
stringify
(
this
.
context
);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
viewparam
:
string
=
JSON
.
stringify
(
this
.
viewparams
);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@
Prop
({
default
:
true
})
public
isShowButton
!
:
boolean
;
/**
* 是否单选
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@
Prop
()
public
isSingleSelect
?:
boolean
;
/**
* 初始化完成
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
public
inited
:
boolean
=
false
;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public
onViewDatasChange
(
$event
:
any
):
void
{
if
(
$event
.
length
>
0
){
$event
.
forEach
((
item
:
any
,
index
:
any
)
=>
{
let
srfmajortext
=
item
[
'employeename'
];
if
(
srfmajortext
){
Object
.
assign
(
$event
[
index
],{
srfmajortext
:
srfmajortext
});
}
});
}
this
.
$emit
(
'selectionchange'
,
$event
);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public
viewDatasActivated
(
$event
:
any
):
void
{
this
.
$emit
(
'activated'
,
$event
);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public
onViewLoad
(
$event
:
any
):
void
{
this
.
$emit
(
'load'
,
$event
);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public
afterCreated
(){
this
.
initNavParam
();
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
Object
.
assign
(
data
,
this
.
viewparams
));
this
.
inited
=
true
;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof PickupViewpickupviewpanel
*/
public
initNavParam
(){
if
(
this
.
localContext
&&
Object
.
keys
(
this
.
localContext
).
length
>
0
){
let
_context
:
any
=
this
.
$util
.
computedNavData
({},
this
.
context
,
this
.
viewparams
,
this
.
localContext
);
Object
.
assign
(
this
.
context
,
_context
);
}
if
(
this
.
localViewParam
&&
Object
.
keys
(
this
.
localViewParam
).
length
>
0
){
let
_param
:
any
=
this
.
$util
.
computedNavData
({},
this
.
context
,
this
.
viewparams
,
this
.
localViewParam
);
Object
.
assign
(
this
.
viewparams
,
_param
);
}
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
this
.
viewparams
);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
}
\ No newline at end of file
app_PIM/src/widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-model.ts
0 → 100644
浏览文件 @
2bfe9df7
/**
* PickupViewpickupviewpanel 部件模型
*
* @export
* @class PickupViewpickupviewpanelModel
*/
export
default
class
PickupViewpickupviewpanelModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanelModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'employeename'
,
},
{
name
:
'updateman'
,
},
{
name
:
'createman'
,
},
{
name
:
'hremployee'
,
prop
:
'employeeid'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'createdate'
,
},
{
name
:
'organizationid'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-service.ts
0 → 100644
浏览文件 @
2bfe9df7
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* PickupViewpickupviewpanel 部件服务对象
*
* @export
* @class PickupViewpickupviewpanelService
*/
export
default
class
PickupViewpickupviewpanelService
extends
ControlService
{
}
\ No newline at end of file
app_PIM/src/widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.html
0 → 100644
浏览文件 @
2bfe9df7
<div
class=
'pickupviewpanel'
>
<component
v-if=
"inited && view.viewname && !Object.is(view.viewname, '')"
:is=
"view.viewname"
class=
"viewcontainer3"
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:viewDefaultUsage=
"false"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
@
viewdataschange=
"onViewDatasChange.apply(_self, arguments)"
@
viewdatasactivated=
"viewDatasActivated.apply(_self, arguments)"
@
viewload=
"onViewLoad.apply(_self, arguments)"
>
</component>
</div>
\ No newline at end of file
app_PIM/src/widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.less
0 → 100644
浏览文件 @
2bfe9df7
.pickupviewpanel{
width: 100%;
}
\ No newline at end of file
app_PIM/src/widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./pickup-viewpickupviewpanel-pickupviewpanel.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { PickupViewpickupviewpanelPickupviewpanelBase } from './pickup-viewpickupviewpanel-pickupviewpanel-base';
/**
* pickupviewpanel部件
*
* @export
* @class PickupViewpickupviewpanelPickupviewpanel
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class PickupViewpickupviewpanelPickupviewpanel extends PickupViewpickupviewpanelPickupviewpanelBase { }
</script>
app_PIM/src/widgets/hrlegal/board-001-dashboard/board-001-dashboard-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class BOARD_001DashboardBase extends MainControlBase {
* @memberof BOARD_001DashboardBase
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof BOARD_001DashboardBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 是否支持看板定制
*
...
...
app_PIM/src/widgets/hrlegal/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrlegal/ef-001-form/ef-001-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class EF_001EditFormBase extends EditFormControlBase {
* @memberof EF_001EditFormBase
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof EF_001EditFormBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrlegal/if-001-form/if-001-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class IF_001EditFormBase extends EditFormControlBase {
* @memberof IF_001EditFormBase
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrlegal/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrlegal/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrlegal/part-v-001-portlet/part-v-001-portlet-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class PART_V_001PortletBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 长度
*
...
...
app_PIM/src/widgets/hrlegal/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -48,6 +48,15 @@ export class TabExpViewtabexppanelTabexppanelBase extends TabExpPanelControlBase
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 是否初始化
*
...
...
app_PIM/src/widgets/hrlegal/tab-exp-viewtabviewpanel-tabviewpanel/tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrlegal/tab-exp-viewtabviewpanel2-tabviewpanel/tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrlegal/tab-exp-viewtabviewpanel3-tabviewpanel/tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanel3TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrlegal'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel3TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'法人'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hromhierarchy-cat/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hromhierarchycat'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'结构层次类别'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hromhierarchy-cat/ef-001-form/ef-001-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class EF_001EditFormBase extends EditFormControlBase {
* @memberof EF_001EditFormBase
*/
protected
appDeName
:
string
=
'hromhierarchycat'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof EF_001EditFormBase
*/
protected
appDeLogicName
:
string
=
'结构层次类别'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hromhierarchy-cat/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hromhierarchycat'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'结构层次类别'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hromhierarchy-cat/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hromhierarchycat'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'结构层次类别'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hromhierarchy-cat/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class PickupViewpickupviewpanelPickupviewpanelBase extends MainControlBas
*/
protected
appDeName
:
string
=
'hromhierarchycat'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeLogicName
:
string
=
'结构层次类别'
;
/**
* 选中数据字符串
...
...
app_PIM/src/widgets/hromhierarchy/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'组织层次结构'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class GRID_001GridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof GRID_001GridBase
*/
protected
appDeLogicName
:
string
=
'组织层次结构'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hromhierarchy/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'组织层次结构'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hromhierarchy/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'组织层次结构'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hromhierarchy/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class PickupViewpickupviewpanelPickupviewpanelBase extends MainControlBas
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeLogicName
:
string
=
'组织层次结构'
;
/**
* 选中数据字符串
...
...
app_PIM/src/widgets/hromhierarchy/tree-001-treeview/tree-001-treeview-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TREE_001TreeBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TREE_001TreeBase
*/
protected
appDeLogicName
:
string
=
'组织层次结构'
;
/**
* 获取多项数据
*
...
...
app_PIM/src/widgets/hromhierarchy/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TreeExpViewtreeexpbarTreeExpBarBase
*/
protected
appDeLogicName
:
string
=
'组织层次结构'
;
/**
* treeexpbar_tree 部件 selectionchange 事件
*
...
...
app_PIM/src/widgets/hroperation-unit/board-001-dashboard/board-001-dashboard-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class BOARD_001DashboardBase extends MainControlBase {
* @memberof BOARD_001DashboardBase
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof BOARD_001DashboardBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 是否支持看板定制
*
...
...
app_PIM/src/widgets/hroperation-unit/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hroperation-unit/ef-001-form/ef-001-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class EF_001EditFormBase extends EditFormControlBase {
* @memberof EF_001EditFormBase
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof EF_001EditFormBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hroperation-unit/if-001-form/if-001-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class IF_001EditFormBase extends EditFormControlBase {
* @memberof IF_001EditFormBase
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hroperation-unit/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hroperation-unit/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hroperation-unit/part-v-001-portlet/part-v-001-portlet-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class PART_V_001PortletBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 长度
*
...
...
app_PIM/src/widgets/hroperation-unit/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -48,6 +48,15 @@ export class TabExpViewtabexppanelTabexppanelBase extends TabExpPanelControlBase
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 是否初始化
*
...
...
app_PIM/src/widgets/hroperation-unit/tab-exp-viewtabviewpanel-tabviewpanel/tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hroperation-unit/tab-exp-viewtabviewpanel2-tabviewpanel/tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hroperation-unit/tab-exp-viewtabviewpanel3-tabviewpanel/tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanel3TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hroperationunit'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel3TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'运营单位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrorg-address/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrorgaddress'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'组织地址'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrorg-address/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrorgaddress'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'组织地址'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrorg-address/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrorgaddress'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'组织地址'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrorg-contact/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrorgcontact'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'组织联系信息'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrorg-contact/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrorgcontact'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'组织联系信息'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrorg-contact/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrorgcontact'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'组织联系信息'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrorganization/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrorganization'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'组织'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrorganization/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrorganization'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'组织'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrorganization/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrorganization'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'组织'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrorganization/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class PickupViewpickupviewpanelPickupviewpanelBase extends MainControlBas
*/
protected
appDeName
:
string
=
'hrorganization'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeLogicName
:
string
=
'组织'
;
/**
* 选中数据字符串
...
...
app_PIM/src/widgets/hrpost-rel/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrpostrel'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'职位关系'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrpost-rel/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrpostrel'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'职位关系'
;
/**
* 界面UI服务对象
*
...
...
@@ -73,12 +82,11 @@ export class MainEditFormBase extends EditFormControlBase {
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
hrpostrelname
:
null
,
createman
:
null
,
createdate
:
null
,
updateman
:
null
,
updatedate
:
null
,
phrpostname
:
null
,
begintime
:
null
,
endtime
:
null
,
hrpostrelid
:
null
,
phrpostid
:
null
,
hrpostrel
:
null
,
};
...
...
@@ -89,6 +97,14 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
phrpostname
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'直接上级职位 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'直接上级职位 值不能为空'
,
trigger
:
'blur'
},
],
begintime
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'生效 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'生效 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
...
...
@@ -107,14 +123,10 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'职位关系基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
tru
e
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrpostrel.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
group1
:
new
FormGroupPanelModel
({
caption
:
'职位关系基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
fals
e
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrpostrel.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
group2
:
new
FormGroupPanelModel
({
caption
:
'操作信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrpostrel.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage2
:
new
FormPageModel
({
caption
:
'其它'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage2'
,
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
}),
...
...
@@ -131,18 +143,15 @@ 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
}),
hrpostrelname
:
new
FormItemModel
({
caption
:
'职位关系名称'
,
detailType
:
'FORMITEM'
,
name
:
'hrpostrel
name'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
phrpostname
:
new
FormItemModel
({
caption
:
'直接上级职位'
,
detailType
:
'FORMITEM'
,
name
:
'phrpost
name'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
createman
:
new
FormItemModel
({
caption
:
'建立人'
,
detailType
:
'FORMITEM'
,
name
:
'createman
'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
begintime
:
new
FormItemModel
({
caption
:
'生效'
,
detailType
:
'FORMITEM'
,
name
:
'begintime
'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
createdate
:
new
FormItemModel
({
caption
:
'建立时间'
,
detailType
:
'FORMITEM'
,
name
:
'createdate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
updateman
:
new
FormItemModel
({
caption
:
'更新人'
,
detailType
:
'FORMITEM'
,
name
:
'updateman'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
updatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'updatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
endtime
:
new
FormItemModel
({
caption
:
'到期'
,
detailType
:
'FORMITEM'
,
name
:
'endtime'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrpostrelid
:
new
FormItemModel
({
caption
:
'职位关系标识'
,
detailType
:
'FORMITEM'
,
name
:
'hrpostrelid'
,
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
}]
}),
phrpostid
:
new
FormItemModel
({
caption
:
'职位标识'
,
detailType
:
'FORMITEM'
,
name
:
'phrpostid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
}
\ No newline at end of file
app_PIM/src/widgets/hrpost-rel/main-form/main-form-model.ts
浏览文件 @
2bfe9df7
...
...
@@ -56,35 +56,30 @@ export default class MainModel {
name
:
'srfsourcekey'
,
},
{
name
:
'
hrpostrel
name'
,
prop
:
'
hrpostrel
name'
,
dataType
:
'TEXT'
,
name
:
'
phrpost
name'
,
prop
:
'
phrpost
name'
,
dataType
:
'
PICKUP
TEXT'
,
},
{
name
:
'
createman
'
,
prop
:
'
createman
'
,
dataType
:
'
TEXT
'
,
name
:
'
begintime
'
,
prop
:
'
begintime
'
,
dataType
:
'
DATE
'
,
},
{
name
:
'createdate'
,
prop
:
'createdate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'updateman'
,
prop
:
'updateman'
,
dataType
:
'TEXT'
,
},
{
name
:
'updatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
name
:
'endtime'
,
prop
:
'endtime'
,
dataType
:
'DATE'
,
},
{
name
:
'hrpostrelid'
,
prop
:
'hrpostrelid'
,
dataType
:
'GUID'
,
},
{
name
:
'phrpostid'
,
prop
:
'phrpostid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'hrpostrel'
,
prop
:
'hrpostrelid'
,
...
...
app_PIM/src/widgets/hrpost-rel/main-form/main-form-service.ts
浏览文件 @
2bfe9df7
...
...
@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import
ControlService
from
'@/widgets/control-service'
;
import
HRPostRelService
from
'@/service/hrpost-rel/hrpost-rel-service'
;
import
MainModel
from
'./main-form-model'
;
import
HRPostService
from
'@/service/hrpost/hrpost-service'
;
/**
...
...
@@ -41,6 +42,14 @@ export default class MainService extends ControlService {
this
.
model
=
new
MainModel
();
}
/**
* 职位服务对象
*
* @type {HRPostService}
* @memberof MainService
*/
public
hrpostService
:
HRPostService
=
new
HRPostService
();
/**
* 处理数据
*
...
...
@@ -82,6 +91,9 @@ export default class MainService extends ControlService {
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
;
if
(
Object
.
is
(
serviceName
,
'HRPostService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
hrpostService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'hrpostid'
,
'hrpost'
);
}
return
Promise
.
reject
([])
}
...
...
app_PIM/src/widgets/hrpost-rel/main-form/main-form.html
浏览文件 @
2bfe9df7
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'hrpostrel_main'
style=
""
>
<input
style=
"display:none;"
/>
<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.hrpostrel.main_form.details.formpage1')
])
}"
>
<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.hrpostrel.main_form.details.group1')"
:isShowCaption=
"
tru
e"
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.hrpostrel.main_form.details.group1')"
:isShowCaption=
"
fals
e"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<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.hrpostrelname.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'hrpostrelname'
:itemRules=
"this.rules.hrpostrelname"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.hrpostrelname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrpostrelname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.hrpostrelname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.hrpostrelname.disabled"
type=
'text'
style=
""
>
</input-box>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.phrpostname.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'phrpostname'
:itemRules=
"this.rules.phrpostname"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.phrpostname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.phrpostname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
:formState=
"formState"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.phrpostname.disabled"
name=
'phrpostname'
deMajorField=
'hrpostname'
deKeyField=
'hrpost'
:service=
"service"
:acParams=
"{ serviceName: 'HRPostService', interfaceName: 'FetchDefault'}"
valueitem=
'phrpostid'
:value=
"data.phrpostname"
:pickupView=
"{ viewname: 'hrpost-pickup-view', title: $t('entities.hrpost.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'hrposts', parameterName: 'hrpost' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=
""
@
formitemvaluechange=
"onFormItemValueChange($event)"
>
</app-picker>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</tab-pane>
<tab-pane
v-show=
"detailsModel.formpage2.visible"
name=
'formpage2'
:index=
"1"
tab=
'main'
class=
''
:label=
"(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.hrpostrel.main_form.details.formpage2')
])
}"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group2"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrpostrel.main_form.details.group2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.createman.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'createman'
:itemRules=
"this.rules.createman"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.createman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createman'
:value=
"data.createman"
dataType=
"TEXT"
:precision=
"0"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.begintime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'begintime'
:itemRules=
"this.rules.begintime"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.begintime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.begintime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.begintime"
:disabled=
"detailsModel.begintime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.begintime = val1 }"
></date-picker>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.createdate.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'createdate'
:itemRules=
"this.rules.createdate"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createdate'
:value=
"data.createdate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
: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.updateman.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'updateman'
:itemRules=
"this.rules.updateman"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.updateman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updateman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updateman'
:value=
"data.updateman"
dataType=
"TEXT"
:precision=
"0"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
: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.updatedate.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules.updatedate"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updatedate'
:value=
"data.updatedate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.endtime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'endtime'
:itemRules=
"this.rules.endtime"
class=
''
:caption=
"$t('entities.hrpostrel.main_form.details.endtime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.endtime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.endtime"
:disabled=
"detailsModel.endtime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.endtime = val1 }"
></date-picker>
</app-form-item>
...
...
@@ -98,7 +53,5 @@ tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewpa
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hrpost-rel/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrpostrel'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'职位关系'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrpost/board-001-dashboard/board-001-dashboard-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class BOARD_001DashboardBase extends MainControlBase {
* @memberof BOARD_001DashboardBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof BOARD_001DashboardBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 是否支持看板定制
*
...
...
app_PIM/src/widgets/hrpost/default-searchform/default-searchform-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 表单数据对象
*
...
...
app_PIM/src/widgets/hrpost/ef-001-form/ef-001-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class EF_001EditFormBase extends EditFormControlBase {
* @memberof EF_001EditFormBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof EF_001EditFormBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrpost/if-001-form/if-001-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class IF_001EditFormBase extends EditFormControlBase {
* @memberof IF_001EditFormBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof IF_001EditFormBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.html
浏览文件 @
2bfe9df7
...
...
@@ -103,6 +103,7 @@ tag='YesNo' codelistType='STATIC' :data="data" :context="context" :viewparams="v
paramItem=
'hrpost'
:parentdata=
'{"srfparentdefname":"PHRPOSTID","srfparentdename":"HRPOST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRPOSTREL_HRPOST_PHRPOSTID","SRFDER1NID":"DER1N_HRPOSTREL_HRPOST_PHRPOSTID"}'
:parameters=
"[
{ pathName: 'hrposts', parameterName: 'hrpost' },
]"
:context=
"context"
:viewparams=
"viewparams"
...
...
@@ -137,6 +138,7 @@ tag='YesNo' codelistType='STATIC' :data="data" :context="context" :viewparams="v
paramItem=
'hrpost'
:parentdata=
'{"srfparentdefname":"HRPOSTID","srfparentdename":"HRPOST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID","SRFDER1NID":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID"}'
:parameters=
"[
{ pathName: 'hrposts', parameterName: 'hrpost' },
]"
:context=
"context"
:viewparams=
"viewparams"
...
...
app_PIM/src/widgets/hrpost/main-form/main-form-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrpost/main-grid/main-grid-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 界面UI服务对象
*
...
...
app_PIM/src/widgets/hrpost/part-v-001-portlet/part-v-001-portlet-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -50,6 +50,15 @@ export class PART_V_001PortletBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 长度
*
...
...
app_PIM/src/widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-base.tsx
0 → 100644
浏览文件 @
2bfe9df7
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
PickupViewpickupviewpanelService
from
'./pickup-viewpickupviewpanel-pickupviewpanel-service'
;
import
HRPostUIService
from
'@/uiservice/hrpost/hrpost-ui-service'
;
import
PickupViewpickupviewpanelModel
from
'./pickup-viewpickupviewpanel-pickupviewpanel-model'
;
/**
* pickupviewpanel部件基类
*
* @export
* @class MainControlBase
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
export
class
PickupViewpickupviewpanelPickupviewpanelBase
extends
MainControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
controlType
:
string
=
'PICKUPVIEWPANEL'
;
/**
* 建构部件服务对象
*
* @type {PickupViewpickupviewpanelService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public
service
:
PickupViewpickupviewpanelService
=
new
PickupViewpickupviewpanelService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public
appEntityService
:
HRPostService
=
new
HRPostService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 选中数据字符串
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
@
Prop
()
public
selectedData
?:
string
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanel
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PickupViewpickupviewpanel
*/
public
getData
():
any
{
return
{};
}
/**
* 视图名称
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
view
:
any
=
{
viewname
:
'hrpost-pickup-grid-view'
,
data
:
{},
}
/**
* 局部上下文
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
localContext
:
any
=
null
;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
localViewParam
:
any
=
null
;
/**
* 视图数据
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
viewdata
:
string
=
JSON
.
stringify
(
this
.
context
);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
viewparam
:
string
=
JSON
.
stringify
(
this
.
viewparams
);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@
Prop
({
default
:
true
})
public
isShowButton
!
:
boolean
;
/**
* 是否单选
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@
Prop
()
public
isSingleSelect
?:
boolean
;
/**
* 初始化完成
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
public
inited
:
boolean
=
false
;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public
onViewDatasChange
(
$event
:
any
):
void
{
if
(
$event
.
length
>
0
){
$event
.
forEach
((
item
:
any
,
index
:
any
)
=>
{
let
srfmajortext
=
item
[
'hrpostname'
];
if
(
srfmajortext
){
Object
.
assign
(
$event
[
index
],{
srfmajortext
:
srfmajortext
});
}
});
}
this
.
$emit
(
'selectionchange'
,
$event
);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public
viewDatasActivated
(
$event
:
any
):
void
{
this
.
$emit
(
'activated'
,
$event
);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public
onViewLoad
(
$event
:
any
):
void
{
this
.
$emit
(
'load'
,
$event
);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public
afterCreated
(){
this
.
initNavParam
();
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
Object
.
assign
(
data
,
this
.
viewparams
));
this
.
inited
=
true
;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof PickupViewpickupviewpanel
*/
public
initNavParam
(){
if
(
this
.
localContext
&&
Object
.
keys
(
this
.
localContext
).
length
>
0
){
let
_context
:
any
=
this
.
$util
.
computedNavData
({},
this
.
context
,
this
.
viewparams
,
this
.
localContext
);
Object
.
assign
(
this
.
context
,
_context
);
}
if
(
this
.
localViewParam
&&
Object
.
keys
(
this
.
localViewParam
).
length
>
0
){
let
_param
:
any
=
this
.
$util
.
computedNavData
({},
this
.
context
,
this
.
viewparams
,
this
.
localViewParam
);
Object
.
assign
(
this
.
viewparams
,
_param
);
}
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
this
.
viewparams
);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
}
\ No newline at end of file
app_PIM/src/widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-model.ts
0 → 100644
浏览文件 @
2bfe9df7
/**
* PickupViewpickupviewpanel 部件模型
*
* @export
* @class PickupViewpickupviewpanelModel
*/
export
default
class
PickupViewpickupviewpanelModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanelModel
*/
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'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-service.ts
0 → 100644
浏览文件 @
2bfe9df7
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* PickupViewpickupviewpanel 部件服务对象
*
* @export
* @class PickupViewpickupviewpanelService
*/
export
default
class
PickupViewpickupviewpanelService
extends
ControlService
{
}
\ No newline at end of file
app_PIM/src/widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.html
0 → 100644
浏览文件 @
2bfe9df7
<div
class=
'pickupviewpanel'
>
<component
v-if=
"inited && view.viewname && !Object.is(view.viewname, '')"
:is=
"view.viewname"
class=
"viewcontainer3"
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:viewDefaultUsage=
"false"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
@
viewdataschange=
"onViewDatasChange.apply(_self, arguments)"
@
viewdatasactivated=
"viewDatasActivated.apply(_self, arguments)"
@
viewload=
"onViewLoad.apply(_self, arguments)"
>
</component>
</div>
\ No newline at end of file
app_PIM/src/widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.less
0 → 100644
浏览文件 @
2bfe9df7
.pickupviewpanel{
width: 100%;
}
\ No newline at end of file
app_PIM/src/widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue
0 → 100644
浏览文件 @
2bfe9df7
<
template
src=
"./pickup-viewpickupviewpanel-pickupviewpanel.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { PickupViewpickupviewpanelPickupviewpanelBase } from './pickup-viewpickupviewpanel-pickupviewpanel-base';
/**
* pickupviewpanel部件
*
* @export
* @class PickupViewpickupviewpanelPickupviewpanel
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class PickupViewpickupviewpanelPickupviewpanel extends PickupViewpickupviewpanelPickupviewpanelBase { }
</script>
app_PIM/src/widgets/hrpost/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -48,6 +48,15 @@ export class TabExpViewtabexppanelTabexppanelBase extends TabExpPanelControlBase
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 是否初始化
*
...
...
app_PIM/src/widgets/hrpost/tab-exp-viewtabviewpanel-tabviewpanel/tab-exp-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrpost/tab-exp-viewtabviewpanel2-tabviewpanel/tab-exp-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrpost/tab-exp-viewtabviewpanel3-tabviewpanel/tab-exp-viewtabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanel3TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel3TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrpost/tab-exp-viewtabviewpanel4-tabviewpanel/tab-exp-viewtabviewpanel4-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class TabExpViewtabviewpanel4TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel4TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrpost/v-006tabexppanel-tabexppanel/v-006tabexppanel-tabexppanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -48,6 +48,15 @@ export class V_006tabexppanelTabexppanelBase extends TabExpPanelControlBase {
* @memberof V_006tabexppanelTabexppanelBase
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof V_006tabexppanelTabexppanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 是否初始化
*
...
...
app_PIM/src/widgets/hrpost/v-006tabviewpanel-tabviewpanel/v-006tabviewpanel-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class V_006tabviewpanelTabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof V_006tabviewpanelTabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrpost/v-006tabviewpanel2-tabviewpanel/v-006tabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class V_006tabviewpanel2TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof V_006tabviewpanel2TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 导航模式下项是否激活
*
...
...
app_PIM/src/widgets/hrpost/v-006tabviewpanel3-tabviewpanel/v-006tabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
2bfe9df7
...
...
@@ -49,6 +49,15 @@ export class V_006tabviewpanel3TabviewpanelBase extends MainControlBase {
*/
protected
appDeName
:
string
=
'hrpost'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof V_006tabviewpanel3TabviewpanelBase
*/
protected
appDeLogicName
:
string
=
'职位'
;
/**
* 导航模式下项是否激活
*
...
...
config.xml
浏览文件 @
2bfe9df7
...
...
@@ -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
浏览文件 @
2bfe9df7
...
...
@@ -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
浏览文件 @
2bfe9df7
...
...
@@ -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
浏览文件 @
2bfe9df7
...
...
@@ -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
浏览文件 @
2bfe9df7
...
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录