Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
2589461a
提交
2589461a
编写于
8月 05, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
a7e916e5
变更
26
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
996 行增加
和
76 行删除
+996
-76
view-config.json
app_PIM/public/assets/json/view-config.json
+1
-1
en-US.ts
app_PIM/src/locale/lang/en-US.ts
+1
-0
zh-CN.ts
app_PIM/src/locale/lang/zh-CN.ts
+1
-0
hromhierarchy-cat_en_US.ts
...res/entities/hromhierarchy-cat/hromhierarchy-cat_en_US.ts
+1
-1
hromhierarchy-cat_zh_CN.ts
...res/entities/hromhierarchy-cat/hromhierarchy-cat_zh_CN.ts
+1
-1
hromhierarchy_en_US.ts
...cale/lanres/entities/hromhierarchy/hromhierarchy_en_US.ts
+9
-0
hromhierarchy_zh_CN.ts
...cale/lanres/entities/hromhierarchy/hromhierarchy_zh_CN.ts
+9
-0
pim-appmenu.ts
app_PIM/src/mock/app/pim-appmenu/pim-appmenu.ts
+20
-2
viewconfig.ts
app_PIM/src/mock/viewconfig/viewconfig.ts
+1
-1
hromhierarchy-cat-grid-view-base.tsx
...rarchy-cat-grid-view/hromhierarchy-cat-grid-view-base.tsx
+1
-1
hromhierarchy-cat-grid-view.html
...mhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.html
+1
-1
hromhierarchy-cat-grid-view.vue
...omhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue
+1
-1
hromhierarchy-grid-view.vue
.../base/hromhierarchy-grid-view/hromhierarchy-grid-view.vue
+1
-1
page-register.ts
app_PIM/src/pages/ungroup/pim/page-register.ts
+3
-3
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+45
-45
state.ts
app_PIM/src/store/modules/view-action/state.ts
+1
-0
pim-appmenu-base.tsx
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-base.tsx
+31
-6
pim-appmenu-model.ts
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-model.ts
+37
-4
ef-001-form.html
...rc/widgets/hromhierarchy-cat/ef-001-form/ef-001-form.html
+2
-2
grid-001-grid-base.tsx
...idgets/hromhierarchy/grid-001-grid/grid-001-grid-base.tsx
+190
-0
grid-001-grid-model.ts
...idgets/hromhierarchy/grid-001-grid/grid-001-grid-model.ts
+117
-0
grid-001-grid-service.ts
...gets/hromhierarchy/grid-001-grid/grid-001-grid-service.ts
+348
-0
grid-001-grid.html
...rc/widgets/hromhierarchy/grid-001-grid/grid-001-grid.html
+146
-0
grid-001-grid.vue
...src/widgets/hromhierarchy/grid-001-grid/grid-001-grid.vue
+22
-0
h2_table.xml
humanresource-core/src/main/resources/liquibase/h2_table.xml
+5
-5
systemResource.json
...ce-core/src/main/resources/permission/systemResource.json
+1
-1
未找到文件。
app_PIM/public/assets/json/view-config.json
浏览文件 @
2589461a
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
"memo"
:
""
"memo"
:
""
},
},
"hromhierarchycatgridview"
:
{
"hromhierarchycatgridview"
:
{
"title"
:
"
结构层次类别表格视图
"
,
"title"
:
"
组织层次结构
"
,
"caption"
:
"结构层次类别"
,
"caption"
:
"结构层次类别"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Base"
,
"viewmodule"
:
"Base"
,
...
...
app_PIM/src/locale/lang/en-US.ts
浏览文件 @
2589461a
...
@@ -146,6 +146,7 @@ export default {
...
@@ -146,6 +146,7 @@ export default {
menuitem12
:
"空缺职位"
,
menuitem12
:
"空缺职位"
,
menuitem13
:
"所有职位"
,
menuitem13
:
"所有职位"
,
menuitem14
:
"无效职位"
,
menuitem14
:
"无效职位"
,
menuitem8
:
"测试"
,
bottom_exp
:
"底部内容"
,
bottom_exp
:
"底部内容"
,
footer_left
:
"底部左侧"
,
footer_left
:
"底部左侧"
,
footer_center
:
"底部中间"
,
footer_center
:
"底部中间"
,
...
...
app_PIM/src/locale/lang/zh-CN.ts
浏览文件 @
2589461a
...
@@ -146,6 +146,7 @@ export default {
...
@@ -146,6 +146,7 @@ export default {
menuitem12
:
"空缺职位"
,
menuitem12
:
"空缺职位"
,
menuitem13
:
"所有职位"
,
menuitem13
:
"所有职位"
,
menuitem14
:
"无效职位"
,
menuitem14
:
"无效职位"
,
menuitem8
:
"测试"
,
bottom_exp
:
"底部内容"
,
bottom_exp
:
"底部内容"
,
footer_left
:
"底部左侧"
,
footer_left
:
"底部左侧"
,
footer_center
:
"底部中间"
,
footer_center
:
"底部中间"
,
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_en_US.ts
浏览文件 @
2589461a
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
views
:
{
views
:
{
gridview
:
{
gridview
:
{
caption
:
"结构层次类别"
,
caption
:
"结构层次类别"
,
title
:
"
结构层次类别表格视图
"
,
title
:
"
组织层次结构
"
,
},
},
v_002
:
{
v_002
:
{
caption
:
"结构层次类别"
,
caption
:
"结构层次类别"
,
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_zh_CN.ts
浏览文件 @
2589461a
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
views
:
{
views
:
{
gridview
:
{
gridview
:
{
caption
:
"结构层次类别"
,
caption
:
"结构层次类别"
,
title
:
"
结构层次类别表格视图
"
,
title
:
"
组织层次结构
"
,
},
},
v_002
:
{
v_002
:
{
caption
:
"结构层次类别"
,
caption
:
"结构层次类别"
,
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy/hromhierarchy_en_US.ts
浏览文件 @
2589461a
...
@@ -67,6 +67,15 @@ export default {
...
@@ -67,6 +67,15 @@ export default {
uiactions
:
{
uiactions
:
{
},
},
},
},
grid_001_grid
:
{
columns
:
{
organizationname
:
"组织名称"
,
pomhierarchyname
:
"上级组织"
,
showorder
:
"排序号"
,
},
uiactions
:
{
},
},
default_searchform
:
{
default_searchform
:
{
details
:
{
details
:
{
formpage1
:
"常规条件"
,
formpage1
:
"常规条件"
,
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy/hromhierarchy_zh_CN.ts
浏览文件 @
2589461a
...
@@ -66,6 +66,15 @@ export default {
...
@@ -66,6 +66,15 @@ export default {
uiactions
:
{
uiactions
:
{
},
},
},
},
grid_001_grid
:
{
columns
:
{
organizationname
:
"组织名称"
,
pomhierarchyname
:
"上级组织"
,
showorder
:
"排序号"
,
},
uiactions
:
{
},
},
default_searchform
:
{
default_searchform
:
{
details
:
{
details
:
{
formpage1
:
"常规条件"
,
formpage1
:
"常规条件"
,
...
...
app_PIM/src/mock/app/pim-appmenu/pim-appmenu.ts
浏览文件 @
2589461a
...
@@ -211,7 +211,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
...
@@ -211,7 +211,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
iconcls
:
'fa fa-signal'
,
iconcls
:
'fa fa-signal'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
6
'
,
appfunctag
:
'_
7
'
,
resourcetag
:
''
,
resourcetag
:
''
,
},
},
{
{
...
@@ -229,7 +229,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
...
@@ -229,7 +229,7 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
iconcls
:
'fa fa-sitemap'
,
iconcls
:
'fa fa-sitemap'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
5
'
,
appfunctag
:
'_
6
'
,
resourcetag
:
''
,
resourcetag
:
''
,
},
},
{
{
...
@@ -321,6 +321,24 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
...
@@ -321,6 +321,24 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
textcls
:
''
,
textcls
:
''
,
appfunctag
:
''
,
appfunctag
:
''
,
resourcetag
:
''
,
resourcetag
:
''
,
},
{
id
:
'ED02F38F-5988-4458-95BB-75F91E922110'
,
name
:
'menuitem8'
,
text
:
'测试'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'测试'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'_5'
,
resourcetag
:
''
,
},
},
],
],
},
},
...
...
app_PIM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
2589461a
...
@@ -32,7 +32,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
...
@@ -32,7 +32,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"0d8ac739134947cc5f6545d4041024de"
"viewtag"
:
"0d8ac739134947cc5f6545d4041024de"
},
},
"hromhierarchycatgridview"
:
{
"hromhierarchycatgridview"
:
{
"title"
:
"
结构层次类别表格视图
"
,
"title"
:
"
组织层次结构
"
,
"caption"
:
"结构层次类别"
,
"caption"
:
"结构层次类别"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Base"
,
"viewmodule"
:
"Base"
,
...
...
app_PIM/src/pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view-base.tsx
浏览文件 @
2589461a
...
@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
...
@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
/**
/**
*
结构层次类别表格视图
视图基类
*
组织层次结构
视图基类
*
*
* @export
* @export
* @class HROMHierarchyCatGridViewBase
* @class HROMHierarchyCatGridViewBase
...
...
app_PIM/src/pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.html
浏览文件 @
2589461a
<studio-view-style2
viewName=
"hromhierarchycatgridview"
viewTitle=
"
结构层次类别表格视图
"
class=
'degridview hromhierarchy-cat-grid-view'
>
<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)"
/>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<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($event)"
/>
</template>
...
...
app_PIM/src/pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue
浏览文件 @
2589461a
...
@@ -7,7 +7,7 @@ import view_grid from '@widgets/hromhierarchy-cat/main-grid/main-grid.vue';
...
@@ -7,7 +7,7 @@ import view_grid from '@widgets/hromhierarchy-cat/main-grid/main-grid.vue';
import view_searchform from '@widgets/hromhierarchy-cat/default-searchform/default-searchform.vue';
import view_searchform from '@widgets/hromhierarchy-cat/default-searchform/default-searchform.vue';
/**
/**
*
结构层次类别表格视图
视图
*
组织层次结构
视图
*
*
* @export
* @export
* @class HROMHierarchyCatGridView
* @class HROMHierarchyCatGridView
...
...
app_PIM/src/pages/base/hromhierarchy-grid-view/hromhierarchy-grid-view.vue
浏览文件 @
2589461a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
{ Component } from 'vue-property-decorator';
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyGridViewBase } from './hromhierarchy-grid-view-base';
import { HROMHierarchyGridViewBase } from './hromhierarchy-grid-view-base';
import view_grid from '@widgets/hromhierarchy/
main-grid/main
-grid.vue';
import view_grid from '@widgets/hromhierarchy/
grid-001-grid/grid-001
-grid.vue';
import view_searchform from '@widgets/hromhierarchy/default-searchform/default-searchform.vue';
import view_searchform from '@widgets/hromhierarchy/default-searchform/default-searchform.vue';
/**
/**
...
...
app_PIM/src/pages/ungroup/pim/page-register.ts
浏览文件 @
2589461a
...
@@ -18,12 +18,12 @@ export const PageComponents = {
...
@@ -18,12 +18,12 @@ export const PageComponents = {
Vue
.
component
(
'hroperation-unit-v-002'
,
()
=>
import
(
'@pages/base/hroperation-unit-v-002/hroperation-unit-v-002.vue'
));
Vue
.
component
(
'hroperation-unit-v-002'
,
()
=>
import
(
'@pages/base/hroperation-unit-v-002/hroperation-unit-v-002.vue'
));
Vue
.
component
(
'hrlegal-edit-view'
,
()
=>
import
(
'@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'
));
Vue
.
component
(
'hrlegal-edit-view'
,
()
=>
import
(
'@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'
));
Vue
.
component
(
'hrorganization-pickup-view'
,
()
=>
import
(
'@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'
));
Vue
.
component
(
'hrorganization-pickup-view'
,
()
=>
import
(
'@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'
));
Vue
.
component
(
'hromhierarchy-edit-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'
));
Vue
.
component
(
'hrorganization-grid-view'
,
()
=>
import
(
'@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'
));
Vue
.
component
(
'hrorganization-grid-view'
,
()
=>
import
(
'@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'
));
Vue
.
component
(
'hromhierarchy-edit-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'
));
Vue
.
component
(
'hromhierarchy-cat-edit-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue'
));
Vue
.
component
(
'hromhierarchy-cat-edit-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-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'
));
Vue
.
component
(
'hrorg-contact-edit-view'
,
()
=>
import
(
'@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'
));
Vue
.
component
(
'hrorg-contact-edit-view'
,
()
=>
import
(
'@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'
));
Vue
.
component
(
'hromhierarchy-tree-exp-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue'
));
Vue
.
component
(
'hrlegal-grid-view'
,
()
=>
import
(
'@pages/base/hrlegal-grid-view/hrlegal-grid-view.vue'
));
Vue
.
component
(
'hrlegal-v-002'
,
()
=>
import
(
'@pages/base/hrlegal-v-002/hrlegal-v-002.vue'
));
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
(
'hroperation-unit-tab-exp-view'
,
()
=>
import
(
'@pages/base/hroperation-unit-tab-exp-view/hroperation-unit-tab-exp-view.vue'
));
Vue
.
component
(
'hromhierarchy-cat-v-002'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'
));
Vue
.
component
(
'hromhierarchy-cat-v-002'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'
));
...
...
app_PIM/src/pages/ungroup/pim/router.ts
浏览文件 @
2589461a
...
@@ -446,27 +446,27 @@ const router = new Router({
...
@@ -446,27 +446,27 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'
),
},
},
{
{
path
:
'hro
mhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/editview/:edit
view?'
,
path
:
'hro
rganizations/:hrorganization?/gridview/:grid
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hro
mhierarchy.views.edit
view.title'
,
caption
:
'entities.hro
rganization.views.grid
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hromhierarchycats'
,
parameterName
:
'hromhierarchycat'
},
{
pathName
:
'hrorganizations'
,
parameterName
:
'hrorganization'
},
{
pathName
:
'hromhierarchies'
,
parameterName
:
'hromhierarchy'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hro
mhierarchy-edit-view/hromhierarchy-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hro
rganization-grid-view/hrorganization-grid
-view.vue'
),
},
},
{
{
path
:
'hromhierarchies/:hromhierarchy?/editview/:editview?'
,
path
:
'hromhierarch
ycats/:hromhierarchycat?/hromhierarch
ies/:hromhierarchy?/editview/:editview?'
,
meta
:
{
meta
:
{
caption
:
'entities.hromhierarchy.views.editview.title'
,
caption
:
'entities.hromhierarchy.views.editview.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hromhierarchycats'
,
parameterName
:
'hromhierarchycat'
},
{
pathName
:
'hromhierarchies'
,
parameterName
:
'hromhierarchy'
},
{
pathName
:
'hromhierarchies'
,
parameterName
:
'hromhierarchy'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
],
...
@@ -475,18 +475,18 @@ const router = new Router({
...
@@ -475,18 +475,18 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'
),
},
},
{
{
path
:
'hro
rganizations/:hrorganization?/gridview/:grid
view?'
,
path
:
'hro
mhierarchies/:hromhierarchy?/editview/:edit
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hro
rganization.views.grid
view.title'
,
caption
:
'entities.hro
mhierarchy.views.edit
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hro
rganizations'
,
parameterName
:
'hrorganization
'
},
{
pathName
:
'hro
mhierarchies'
,
parameterName
:
'hromhierarchy
'
},
{
pathName
:
'
gridview'
,
parameterName
:
'grid
view'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hro
rganization-grid-view/hrorganization-grid
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hro
mhierarchy-edit-view/hromhierarchy-edit
-view.vue'
),
},
},
{
{
path
:
'hromhierarchycats/:hromhierarchycat?/editview/:editview?'
,
path
:
'hromhierarchycats/:hromhierarchycat?/editview/:editview?'
,
...
@@ -503,91 +503,91 @@ const router = new Router({
...
@@ -503,91 +503,91 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue'
),
},
},
{
{
path
:
'hr
legals/:hrlegal?/gridview/:grid
view?'
,
path
:
'hr
operationunits/:hroperationunit?/hrorgcontacts/:hrorgcontact?/editview/:edit
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hr
legal.views.grid
view.title'
,
caption
:
'entities.hr
orgcontact.views.edit
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrlegals'
,
parameterName
:
'hrlegal'
},
{
pathName
:
'hroperationunits'
,
parameterName
:
'hroperationunit'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'hrorgcontacts'
,
parameterName
:
'hrorgcontact'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hr
legal-grid-view/hrlegal-grid
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hr
org-contact-edit-view/hrorg-contact-edit
-view.vue'
),
},
},
{
{
path
:
'hr
omhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/treeexpview/:treeexp
view?'
,
path
:
'hr
legals/:hrlegal?/hrorgcontacts/:hrorgcontact?/editview/:edit
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hro
mhierarchy.views.treeexp
view.title'
,
caption
:
'entities.hro
rgcontact.views.edit
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hr
omhierarchycats'
,
parameterName
:
'hromhierarchycat
'
},
{
pathName
:
'hr
legals'
,
parameterName
:
'hrlegal
'
},
{
pathName
:
'hro
mhierarchies'
,
parameterName
:
'hromhierarchy
'
},
{
pathName
:
'hro
rgcontacts'
,
parameterName
:
'hrorgcontact
'
},
{
pathName
:
'
treeexpview'
,
parameterName
:
'treeexp
view'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hro
mhierarchy-tree-exp-view/hromhierarchy-tree-exp
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hro
rg-contact-edit-view/hrorg-contact-edit
-view.vue'
),
},
},
{
{
path
:
'hro
mhierarchies/:hromhierarchy?/treeexpview/:treeexp
view?'
,
path
:
'hro
rgcontacts/:hrorgcontact?/editview/:edit
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hro
mhierarchy.views.treeexp
view.title'
,
caption
:
'entities.hro
rgcontact.views.edit
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hro
mhierarchies'
,
parameterName
:
'hromhierarchy
'
},
{
pathName
:
'hro
rgcontacts'
,
parameterName
:
'hrorgcontact
'
},
{
pathName
:
'
treeexpview'
,
parameterName
:
'treeexp
view'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hro
mhierarchy-tree-exp-view/hromhierarchy-tree-exp
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hro
rg-contact-edit-view/hrorg-contact-edit
-view.vue'
),
},
},
{
{
path
:
'hro
perationunits/:hroperationunit?/hrorgcontacts/:hrorgcontact?/editview/:edit
view?'
,
path
:
'hro
mhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/treeexpview/:treeexp
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hro
rgcontact.views.edit
view.title'
,
caption
:
'entities.hro
mhierarchy.views.treeexp
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hro
perationunits'
,
parameterName
:
'hroperationuni
t'
},
{
pathName
:
'hro
mhierarchycats'
,
parameterName
:
'hromhierarchyca
t'
},
{
pathName
:
'hro
rgcontacts'
,
parameterName
:
'hrorgcontact
'
},
{
pathName
:
'hro
mhierarchies'
,
parameterName
:
'hromhierarchy
'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
{
pathName
:
'
treeexpview'
,
parameterName
:
'treeexp
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hro
rg-contact-edit-view/hrorg-contact-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hro
mhierarchy-tree-exp-view/hromhierarchy-tree-exp
-view.vue'
),
},
},
{
{
path
:
'hr
legals/:hrlegal?/hrorgcontacts/:hrorgcontact?/editview/:edit
view?'
,
path
:
'hr
omhierarchies/:hromhierarchy?/treeexpview/:treeexp
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hro
rgcontact.views.edit
view.title'
,
caption
:
'entities.hro
mhierarchy.views.treeexp
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrlegals'
,
parameterName
:
'hrlegal'
},
{
pathName
:
'hromhierarchies'
,
parameterName
:
'hromhierarchy'
},
{
pathName
:
'hrorgcontacts'
,
parameterName
:
'hrorgcontact'
},
{
pathName
:
'treeexpview'
,
parameterName
:
'treeexpview'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hro
rg-contact-edit-view/hrorg-contact-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hro
mhierarchy-tree-exp-view/hromhierarchy-tree-exp
-view.vue'
),
},
},
{
{
path
:
'hr
orgcontacts/:hrorgcontact?/editview/:edit
view?'
,
path
:
'hr
legals/:hrlegal?/gridview/:grid
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hr
orgcontact.views.edit
view.title'
,
caption
:
'entities.hr
legal.views.grid
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hr
orgcontacts'
,
parameterName
:
'hrorgcontact
'
},
{
pathName
:
'hr
legals'
,
parameterName
:
'hrlegal
'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
{
pathName
:
'
gridview'
,
parameterName
:
'grid
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hr
org-contact-edit-view/hrorg-contact-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hr
legal-grid-view/hrlegal-grid
-view.vue'
),
},
},
{
{
path
:
'hrlegals/:hrlegal?/v_002/:v_002?'
,
path
:
'hrlegals/:hrlegal?/v_002/:v_002?'
,
...
...
app_PIM/src/store/modules/view-action/state.ts
浏览文件 @
2589461a
...
@@ -149,6 +149,7 @@ export const viewstate: any = {
...
@@ -149,6 +149,7 @@ export const viewstate: any = {
'9559258a9c3ac118e15ead941b780682'
,
'9559258a9c3ac118e15ead941b780682'
,
'0d8ac739134947cc5f6545d4041024de'
,
'0d8ac739134947cc5f6545d4041024de'
,
'41036146909ab3f28ff59b80370514b2'
,
'41036146909ab3f28ff59b80370514b2'
,
'188f3997d02da7fc34bac190ccd439e6'
,
'114f056047eddd92374e982356e59852'
,
'114f056047eddd92374e982356e59852'
,
],
],
},
},
...
...
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-base.tsx
浏览文件 @
2589461a
...
@@ -15,16 +15,18 @@ export class PIMBase extends Vue {
...
@@ -15,16 +15,18 @@ export class PIMBase extends Vue {
if
(
item
)
{
if
(
item
)
{
let
judge
=
true
;
let
judge
=
true
;
switch
(
item
.
appfunctag
)
{
switch
(
item
.
appfunctag
)
{
case
'_
5
'
:
case
'_
6
'
:
this
.
click_
5
(
item
);
break
;
this
.
click_
6
(
item
);
break
;
case
'_3'
:
case
'_3'
:
this
.
click_3
(
item
);
break
;
this
.
click_3
(
item
);
break
;
case
'_2'
:
case
'_2'
:
this
.
click_2
(
item
);
break
;
this
.
click_2
(
item
);
break
;
case
'_4'
:
case
'_4'
:
this
.
click_4
(
item
);
break
;
this
.
click_4
(
item
);
break
;
case
'_6'
:
case
'_7'
:
this
.
click_6
(
item
);
break
;
this
.
click_7
(
item
);
break
;
case
'_5'
:
this
.
click_5
(
item
);
break
;
default
:
default
:
judge
=
false
;
judge
=
false
;
console
.
warn
(
'未指定应用功能'
);
console
.
warn
(
'未指定应用功能'
);
...
@@ -41,7 +43,7 @@ export class PIMBase extends Vue {
...
@@ -41,7 +43,7 @@ export class PIMBase extends Vue {
* @param {*} [item={}]
* @param {*} [item={}]
* @memberof PIM
* @memberof PIM
*/
*/
public
click_
5
(
item
:
any
=
{})
{
public
click_
6
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
deResParameters
:
any
[]
=
[];
...
@@ -133,7 +135,7 @@ export class PIMBase extends Vue {
...
@@ -133,7 +135,7 @@ export class PIMBase extends Vue {
* @param {*} [item={}]
* @param {*} [item={}]
* @memberof PIM
* @memberof PIM
*/
*/
public
click_
6
(
item
:
any
=
{})
{
public
click_
7
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
deResParameters
:
any
[]
=
[];
...
@@ -149,6 +151,29 @@ export class PIMBase extends Vue {
...
@@ -149,6 +151,29 @@ export class PIMBase extends Vue {
this
.
$router
.
push
(
path
);
this
.
$router
.
push
(
path
);
})
})
}
}
/**
* 组织层次结构
*
* @param {*} [item={}]
* @memberof PIM
*/
public
click_5
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hromhierarchies'
,
parameterName
:
'hromhierarchy'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
/**
* 绘制内容
* 绘制内容
...
...
app_PIM/src/widgets/app/pim-appmenu/pim-appmenu-model.ts
浏览文件 @
2589461a
...
@@ -231,7 +231,7 @@ export default class PIMModel {
...
@@ -231,7 +231,7 @@ export default class PIMModel {
iconcls
:
'fa fa-signal'
,
iconcls
:
'fa fa-signal'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
6
'
,
appfunctag
:
'_
7
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
viewname
:
'hromhierarchy-cat-grid-view'
,
viewname
:
'hromhierarchy-cat-grid-view'
,
resourcetag
:
''
,
resourcetag
:
''
,
...
@@ -252,7 +252,7 @@ export default class PIMModel {
...
@@ -252,7 +252,7 @@ export default class PIMModel {
iconcls
:
'fa fa-sitemap'
,
iconcls
:
'fa fa-sitemap'
,
icon
:
''
,
icon
:
''
,
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'_
5
'
,
appfunctag
:
'_
6
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
viewname
:
'hrorganization-grid-view'
,
viewname
:
'hrorganization-grid-view'
,
resourcetag
:
''
,
resourcetag
:
''
,
...
@@ -351,6 +351,27 @@ export default class PIMModel {
...
@@ -351,6 +351,27 @@ export default class PIMModel {
appfunctag
:
''
,
appfunctag
:
''
,
resourcetag
:
''
,
resourcetag
:
''
,
}
}
,
{
id
:
'ED02F38F-5988-4458-95BB-75F91E922110'
,
name
:
'menuitem8'
,
text
:
'测试'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'测试'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'_5'
,
appfuncyype
:
'APPVIEW'
,
viewname
:
'hromhierarchy-grid-view'
,
resourcetag
:
''
,
}
,
,
],
],
}
}
...
@@ -448,7 +469,7 @@ export default class PIMModel {
...
@@ -448,7 +469,7 @@ export default class PIMModel {
*/
*/
private
funcs
:
any
[]
=
[
private
funcs
:
any
[]
=
[
{
{
appfunctag
:
'_
5
'
,
appfunctag
:
'_
6
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
openmode
:
''
,
codename
:
'hrorganizationgridview'
,
codename
:
'hrorganizationgridview'
,
...
@@ -496,7 +517,7 @@ export default class PIMModel {
...
@@ -496,7 +517,7 @@ export default class PIMModel {
],
],
},
},
{
{
appfunctag
:
'_
6
'
,
appfunctag
:
'_
7
'
,
appfuncyype
:
'APPVIEW'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
openmode
:
''
,
codename
:
'hromhierarchycatgridview'
,
codename
:
'hromhierarchycatgridview'
,
...
@@ -507,6 +528,18 @@ export default class PIMModel {
...
@@ -507,6 +528,18 @@ export default class PIMModel {
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
],
},
},
{
appfunctag
:
'_5'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
codename
:
'hromhierarchygridview'
,
deResParameters
:
[],
routepath
:
'/pim/:pim?/hromhierarchies/:hromhierarchy?/gridview/:gridview?'
,
parameters
:
[
{
pathName
:
'hromhierarchies'
,
parameterName
:
'hromhierarchy'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
},
];
];
/**
/**
...
...
app_PIM/src/widgets/hromhierarchy-cat/ef-001-form/ef-001-form.html
浏览文件 @
2589461a
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<app-form-group
:model=
"detailsModel.grouppanel1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"true"
>
<app-form-group
:model=
"detailsModel.grouppanel1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.druipart1.visible"
:style=
"{
'height': '600px !important',
}"
:lg=
"{ span: 24, offset: 0 }"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.druipart1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
<app-form-druipart
:formState=
"formState"
:formState=
"formState"
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
viewname=
'hromhierarchy-tree-exp-view'
viewname=
'hromhierarchy-tree-exp-view'
:data=
"JSON.stringify(this.data)"
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
@
drdatasaved=
"drdatasaved($event)"
style=
"
height:600px;
overflow: auto;"
>
style=
"overflow: auto;"
>
</app-form-druipart>
</app-form-druipart>
</i-col>
</i-col>
...
...
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid-base.tsx
0 → 100644
浏览文件 @
2589461a
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
GridControlBase
}
from
'@/studio-core'
;
import
HROMHierarchyService
from
'@/service/hromhierarchy/hromhierarchy-service'
;
import
GRID_001Service
from
'./grid-001-grid-service'
;
import
HROMHierarchyUIService
from
'@/uiservice/hromhierarchy/hromhierarchy-ui-service'
;
import
{
FormItemModel
}
from
'@/model/form-detail'
;
/**
* grid部件基类
*
* @export
* @class GridControlBase
* @extends {GRID_001GridBase}
*/
export
class
GRID_001GridBase
extends
GridControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof GRID_001GridBase
*/
protected
controlType
:
string
=
'GRID'
;
/**
* 建构部件服务对象
*
* @type {GRID_001Service}
* @memberof GRID_001GridBase
*/
public
service
:
GRID_001Service
=
new
GRID_001Service
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HROMHierarchyService}
* @memberof GRID_001GridBase
*/
public
appEntityService
:
HROMHierarchyService
=
new
HROMHierarchyService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof GRID_001GridBase
*/
protected
appDeName
:
string
=
'hromhierarchy'
;
/**
* 界面UI服务对象
*
* @type {HROMHierarchyUIService}
* @memberof GRID_001Base
*/
public
appUIService
:
HROMHierarchyUIService
=
new
HROMHierarchyUIService
(
this
.
$store
);
/**
* 界面行为模型
*
* @type {*}
* @memberof GRID_001Base
*/
public
ActionModel
:
any
=
{
};
/**
* 本地缓存标识
*
* @protected
* @type {string}
* @memberof GRID_001Base
*/
protected
localStorageTag
:
string
=
'hromhierarchy_grid_001_grid'
;
/**
* 所有列成员
*
* @type {any[]}
* @memberof GRID_001GridBase
*/
public
allColumns
:
any
[]
=
[
{
name
:
'organizationname'
,
label
:
'组织名称'
,
langtag
:
'entities.hromhierarchy.grid_001_grid.columns.organizationname'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'pomhierarchyname'
,
label
:
'上级组织'
,
langtag
:
'entities.hromhierarchy.grid_001_grid.columns.pomhierarchyname'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
true
,
},
{
name
:
'showorder'
,
label
:
'排序号'
,
langtag
:
'entities.hromhierarchy.grid_001_grid.columns.showorder'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
true
,
},
]
/**
* 获取表格行模型
*
* @type {*}
* @memberof GRID_001GridBase
*/
public
getGridRowModel
(){
return
{
pomhierarchyid
:
new
FormItemModel
(),
pomhierarchyname
:
new
FormItemModel
(),
showorder
:
new
FormItemModel
(),
srfkey
:
new
FormItemModel
(),
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof GRID_001GridBase
*/
public
rules
:
any
=
{
pomhierarchyid
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'blur'
},
],
pomhierarchyname
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'上级组织 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'上级组织 值不能为空'
,
trigger
:
'blur'
},
],
showorder
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'排序号 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'排序号 值不能为空'
,
trigger
:
'blur'
},
],
srfkey
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'组织层次结构标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'组织层次结构标识 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 获取对应列class
*
* @type {*}
* @memberof GRID_001Base
*/
public
hasRowEdit
:
any
=
{
'organizationname'
:
false
,
'pomhierarchyname'
:
true
,
'showorder'
:
true
,
};
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof GRID_001Base
*/
public
getCellClassName
(
args
:
{
row
:
any
,
column
:
any
,
rowIndex
:
number
,
columnIndex
:
number
}):
any
{
return
(
this
.
hasRowEdit
[
args
.
column
.
property
]
&&
this
.
actualIsOpenEdit
)
?
"edit-cell"
:
"info-cell"
;
}
/**
* 导出数据格式化
*
* @param {*} filterVal
* @param {*} jsonData
* @param {any[]} [codelistColumns=[]]
* @returns {Promise<any>}
* @memberof GRID_001GridBase
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
]);
}
}
\ No newline at end of file
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid-model.ts
0 → 100644
浏览文件 @
2589461a
/**
* GRID_001 部件模型
*
* @export
* @class GRID_001Model
*/
export
default
class
GRID_001Model
{
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof GRID_001GridMode
*/
public
isDEExport
:
boolean
=
false
;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof GRID_001GridMode
*/
public
getDataItems
():
any
[]
{
if
(
this
.
isDEExport
){
return
[
]
}
else
{
return
[
{
name
:
'hromhierarchycatid'
,
prop
:
'hromhierarchycatid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'pomhierarchyid'
,
prop
:
'pomhierarchyid'
,
dataType
:
'PICKUP'
,
isEditable
:
true
},
{
name
:
'organizationname'
,
prop
:
'organizationname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'organizationid'
,
prop
:
'organizationid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'pomhierarchyname'
,
prop
:
'pomhierarchyname'
,
dataType
:
'PICKUPTEXT'
,
isEditable
:
true
},
{
name
:
'showorder'
,
prop
:
'showorder'
,
dataType
:
'BIGINT'
,
isEditable
:
true
},
{
name
:
'srfmajortext'
,
prop
:
'organizationname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'srfdataaccaction'
,
prop
:
'omhierarchyid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfkey'
,
prop
:
'omhierarchyid'
,
dataType
:
'GUID'
,
isEditable
:
true
},
{
name
:
'hromhierarchy'
,
prop
:
'omhierarchyid'
,
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'filter'
,
prop
:
'filter'
},
{
name
:
'page'
,
prop
:
'page'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'srfparentdata'
,
prop
:
'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
}
\ No newline at end of file
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid-service.ts
0 → 100644
浏览文件 @
2589461a
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HROMHierarchyService
from
'@/service/hromhierarchy/hromhierarchy-service'
;
import
GRID_001Model
from
'./grid-001-grid-model'
;
/**
* GRID_001 部件服务对象
*
* @export
* @class GRID_001Service
*/
export
default
class
GRID_001Service
extends
ControlService
{
/**
* 组织层次结构服务对象
*
* @type {HROMHierarchyService}
* @memberof GRID_001Service
*/
public
appEntityService
:
HROMHierarchyService
=
new
HROMHierarchyService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof GRID_001Service
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of GRID_001Service.
*
* @param {*} [opts={}]
* @memberof GRID_001Service
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
GRID_001Model
();
}
/**
* 处理数据
*
* @public
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
public
doItems
(
promise
:
Promise
<
any
>
,
deKeyField
:
string
,
deName
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
promise
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
item
[
deName
]
=
item
[
deKeyField
];
data
[
index
]
=
item
;
});
resolve
(
data
);
}
else
{
reject
([])
}
}).
catch
((
response
:
any
)
=>
{
reject
([])
});
});
}
/**
* 获取跨实体数据集合
*
* @param {string} serviceName 服务名称
* @param {string} interfaceName 接口名称
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any[]>}
* @memberof GRID_001Service
*/
@
Errorlog
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
data
.
page
=
data
.
page
?
data
.
page
:
0
;
data
.
size
=
data
.
size
?
data
.
size
:
1000
;
if
(
Object
.
is
(
serviceName
,
'HROMHierarchyService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
appEntityService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'omhierarchyid'
,
'hromhierarchy'
);
}
return
Promise
.
reject
([])
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestDataWithUpdate
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestDataWithUpdate
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 获取数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Get
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
@
Errorlog
public
search
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
FetchDefault
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
@
Errorlog
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
response
.
data
.
omhierarchyid
=
Util
.
createUUID
();
}
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 前台逻辑
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GRID_001Service
*/
@
Errorlog
public
frontLogic
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
return
Promise
.
reject
({
status
:
500
,
data
:
{
title
:
'失败'
,
message
:
'系统异常'
}
});
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
})
}
/**
* 处理请求数据(修改或增加数据)
*
* @param action 行为
* @param data 数据
* @memberof GRID_001Service
*/
public
handleRequestDataWithUpdate
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isMerge
:
boolean
=
false
){
let
model
:
any
=
this
.
getMode
();
if
(
!
model
&&
model
.
getDataItems
instanceof
Function
)
{
return
data
;
}
let
dataItems
:
any
[]
=
model
.
getDataItems
();
let
requestData
:
any
=
{};
if
(
isMerge
&&
(
data
&&
data
.
viewparams
)){
Object
.
assign
(
requestData
,
data
.
viewparams
);
}
dataItems
.
forEach
((
item
:
any
)
=>
{
if
(
item
&&
item
.
dataType
&&
Object
.
is
(
item
.
dataType
,
'FONTKEY'
)){
if
(
item
&&
item
.
prop
&&
item
.
name
){
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
))
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
});
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
if
(
tempContext
&&
tempContext
.
srfsessionid
){
tempContext
.
srfsessionkey
=
tempContext
.
srfsessionid
;
delete
tempContext
.
srfsessionid
;
}
return
{
context
:
tempContext
,
data
:
requestData
};
}
}
\ No newline at end of file
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid.html
0 → 100644
浏览文件 @
2589461a
<div
:class=
"{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }"
>
<i-form>
<el-table
v-if=
"isDisplay === true"
:default-sort=
"{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"
@
sort-change=
"onSortChange($event)"
:border=
"isDragendCol"
:highlight-current-row =
"isSingleSelect"
:row-class-name=
"getRowClassName.bind(_self)"
:cell-class-name=
"getCellClassName.bind(_self)"
size=
"mini"
stripe
@
row-click=
"rowClick($event)"
@
select-all=
"selectAll($event)"
@
select=
"select($event)"
@
row-class-name=
"onRowClassName($event)"
@
row-dblclick=
"rowDBLClick($event)"
ref=
'multipleTable'
:data=
"items"
:show-header=
"!isHideHeader"
>
<template
slot=
"empty"
>
无数据
<span
class=
"quick-toolbar"
>
</span>
</template>
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"getColumnState('organizationname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'organizationname'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.organizationname')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hromhierarchy.grid_001_grid.columns.organizationname')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.organizationname}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('pomhierarchyname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'pomhierarchyname'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.pomhierarchyname')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hromhierarchy.grid_001_grid.columns.pomhierarchyname')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<app-picker
:formState=
"viewState"
:data=
"row"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
name=
'pomhierarchyname'
deMajorField=
'organizationname'
deKeyField=
'hromhierarchy'
:service=
"service"
:acParams=
"{ serviceName: 'HROMHierarchyService', interfaceName: 'FetchDefault'}"
valueitem=
'pomhierarchyid'
:value=
"row[column.property]"
editortype=
""
:pickupView=
"{ viewname: 'hromhierarchy-pickup-view', title: $t('entities.hromhierarchy.views.pickupview.title'), deResParameters: [{ pathName: 'hromhierarchycats', parameterName: 'hromhierarchycat' }, ], parameters: [{ pathName: 'hromhierarchies', parameterName: 'hromhierarchy' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=
""
@
formitemvaluechange=
"($event)=>{onGridItemValueChange(row,$event,$index)}"
>
</app-picker>
</app-form-item>
</template>
<template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'pomhierarchyname'
editorType=
"PICKER"
:value=
"row.pomhierarchyname"
dataType=
"PICKUPTEXT"
precision=
"0"
></app-span>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('showorder')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'showorder'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.showorder')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hromhierarchy.grid_001_grid.columns.showorder')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<input-box
:disabled=
"row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
v-model=
"row[column.property]"
style=
""
type=
"text"
@
change=
"($event)=>{gridEditItemChange(row, column.property, $event, $index)}"
>
</input-box>
</app-form-item>
</template>
<template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'showorder'
editorType=
"TEXTBOX"
:value=
"row.showorder"
dataType=
"BIGINT"
precision=
"0"
></app-span>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
</template>
</el-table>
<row
class=
'grid-pagination'
v-show=
"items.length > 0"
>
<page
class=
'pull-right'
@
on-change=
"pageOnChange($event)"
@
on-page-size-change=
"onPageSizeChange($event)"
:transfer=
"true"
:total=
"totalRecord"
show-sizer
:current=
"curPage"
:page-size=
"limit"
:page-size-opts=
"[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
show-elevator
show-total
>
<span>
<span
class=
"page-column"
>
<poptip
transfer
placement=
"top-start"
>
<i-button
icon=
"md-menu"
>
{{$t('app.gridpage.choicecolumns')}}
</i-button>
<div
slot=
"content"
>
<template
v-for=
"col in allColumns"
>
<div
:key=
"col.name"
><el-checkbox
v-model=
"col.show"
@
change=
"onColChange()"
>
{{$t(col.langtag)}}
</el-checkbox></div>
</template>
</div>
</poptip>
</span>
<span
v-if=
"selections.length > 0"
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
<span>
<template
v-if=
"items.length === 1"
>
1
</template>
<template
v-else
>
<span>
{{(curPage - 1) * limit + 1}}
-
{{totalRecord > curPage * limit ? curPage * limit : totalRecord}}
</span>
</template>
</span>
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}
{{totalRecord}}
{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form>
</div>
\ No newline at end of file
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid.vue
0 → 100644
浏览文件 @
2589461a
<
template
src=
"./grid-001-grid.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GRID_001GridBase } from './grid-001-grid-base';
/**
* grid部件
*
* @export
* @class GRID_001Grid
* @extends {GRID_001GridBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class GRID_001Grid extends GRID_001GridBase { }
</script>
humanresource-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
2589461a
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
<!--输出实体[HROMHIERARCHY]数据结构 -->
<!--输出实体[HROMHIERARCHY]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchy-
31
-6"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchy-
44
-6"
>
<createTable
tableName=
"OMHIERARCHY"
>
<createTable
tableName=
"OMHIERARCHY"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
</column>
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
<!--输出实体[HROMHIERARCHYCAT]数据结构 -->
<!--输出实体[HROMHIERARCHYCAT]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchycat-
28
-7"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchycat-
36
-7"
>
<createTable
tableName=
"OMHIERARCHYCAT"
>
<createTable
tableName=
"OMHIERARCHYCAT"
>
<column
name=
"OMHIERARCHYCATID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"OMHIERARCHYCATID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HROMHIERARCHYCAT_OMHIERARCH"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HROMHIERARCHYCAT_OMHIERARCH"
/>
...
@@ -305,13 +305,13 @@
...
@@ -305,13 +305,13 @@
<!--输出实体[HRLEGAL]外键关系 -->
<!--输出实体[HRLEGAL]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSE]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSE]外键关系 -->
<!--输出实体[HROMHIERARCHY]外键关系 -->
<!--输出实体[HROMHIERARCHY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-
31
-14"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-
44
-14"
>
<addForeignKeyConstraint
baseColumnNames=
"HROMHIERARCHYCATID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_HROMHIERARCHY_HROMHIERAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYCATID"
referencedTableName=
"OMHIERARCHYCAT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"HROMHIERARCHYCATID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_HROMHIERARCHY_HROMHIERAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYCATID"
referencedTableName=
"OMHIERARCHYCAT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-
31
-15"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-
44
-15"
>
<addForeignKeyConstraint
baseColumnNames=
"POMHIERARCHYID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_OMHIERARCHY_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYID"
referencedTableName=
"OMHIERARCHY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"POMHIERARCHYID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_OMHIERARCHY_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYID"
referencedTableName=
"OMHIERARCHY"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-
31
-16"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-
44
-16"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGANIZATIONID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_ORGANIZATION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"ORGANIZATIONID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_ORGANIZATION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[HROMHIERARCHYCAT]外键关系 -->
<!--输出实体[HROMHIERARCHYCAT]外键关系 -->
...
...
humanresource-core/src/main/resources/permission/systemResource.json
浏览文件 @
2589461a
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
{
{
"appid"
:
"PIM"
,
"appid"
:
"PIM"
,
"appname"
:
"基础管理"
,
"appname"
:
"基础管理"
,
"appmenu"
:[{
"menuid"
:
"PIM"
,
"menuname"
:
"PIM"
,
"menuitem"
:[{
"id"
:
"user_menus"
,
"name"
:
"用户菜单"
,
"items"
:[{
"id"
:
"menuitem3"
,
"name"
:
"设置"
}]},{
"id"
:
"top_menus"
,
"name"
:
"顶部菜单"
,
"items"
:[{
"id"
:
"menuitem1"
,
"name"
:
"菜单项"
}]},{
"id"
:
"left_exp"
,
"name"
:
"左侧菜单"
,
"items"
:[{
"id"
:
"menuitem5"
,
"name"
:
"人员"
,
"items"
:[{
"id"
:
"menuitem15"
,
"name"
:
"员工信息"
}]},{
"id"
:
"menuitem2"
,
"name"
:
"组织"
,
"items"
:[{
"id"
:
"menuitem4"
,
"name"
:
"法人"
},{
"id"
:
"menuitem6"
,
"name"
:
"运营单位"
},{
"id"
:
"menuitem7"
,
"name"
:
"组织层次结构"
},{
"id"
:
"menuitem9"
,
"name"
:
"所有组织"
},{
"id"
:
"menuitem10"
,
"name"
:
"职位"
,
"items"
:[{
"id"
:
"menuitem11"
,
"name"
:
"有效职位"
},{
"id"
:
"menuitem12"
,
"name"
:
"空缺职位"
},{
"id"
:
"menuitem13"
,
"name"
:
"所有职位"
},{
"id"
:
"menuitem14"
,
"name"
:
"无效职位"
}]}]}]},{
"id"
:
"bottom_exp"
,
"name"
:
"底部内容"
},{
"id"
:
"footer_left"
,
"name"
:
"底部左侧"
},{
"id"
:
"footer_center"
,
"name"
:
"底部中间"
},{
"id"
:
"footer_right"
,
"name"
:
"底部右侧"
}]
}]
"appmenu"
:[{
"menuid"
:
"PIM"
,
"menuname"
:
"PIM"
,
"menuitem"
:[{
"id"
:
"user_menus"
,
"name"
:
"用户菜单"
,
"items"
:[{
"id"
:
"menuitem3"
,
"name"
:
"设置"
}]},{
"id"
:
"top_menus"
,
"name"
:
"顶部菜单"
,
"items"
:[{
"id"
:
"menuitem1"
,
"name"
:
"菜单项"
}]},{
"id"
:
"left_exp"
,
"name"
:
"左侧菜单"
,
"items"
:[{
"id"
:
"menuitem5"
,
"name"
:
"人员"
,
"items"
:[{
"id"
:
"menuitem15"
,
"name"
:
"员工信息"
}]},{
"id"
:
"menuitem2"
,
"name"
:
"组织"
,
"items"
:[{
"id"
:
"menuitem4"
,
"name"
:
"法人"
},{
"id"
:
"menuitem6"
,
"name"
:
"运营单位"
},{
"id"
:
"menuitem7"
,
"name"
:
"组织层次结构"
},{
"id"
:
"menuitem9"
,
"name"
:
"所有组织"
},{
"id"
:
"menuitem10"
,
"name"
:
"职位"
,
"items"
:[{
"id"
:
"menuitem11"
,
"name"
:
"有效职位"
},{
"id"
:
"menuitem12"
,
"name"
:
"空缺职位"
},{
"id"
:
"menuitem13"
,
"name"
:
"所有职位"
},{
"id"
:
"menuitem14"
,
"name"
:
"无效职位"
}
,{
"id"
:
"menuitem8"
,
"name"
:
"测试"
}
]}]}]},{
"id"
:
"bottom_exp"
,
"name"
:
"底部内容"
},{
"id"
:
"footer_left"
,
"name"
:
"底部左侧"
},{
"id"
:
"footer_center"
,
"name"
:
"底部中间"
},{
"id"
:
"footer_right"
,
"name"
:
"底部右侧"
}]
}]
}
}
]
]
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录