Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
675102e6
提交
675102e6
编写于
8月 05, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
d56f3c86
变更
26
显示空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
415 行增加
和
47 行删除
+415
-47
hromhierarchy-cat.ts
app_PIM/src/interface/entity/hromhierarchy-cat.ts
+1
-1
hromhierarchy-cat_en_US.ts
...res/entities/hromhierarchy-cat/hromhierarchy-cat_en_US.ts
+6
-6
hromhierarchy-cat_zh_CN.ts
...res/entities/hromhierarchy-cat/hromhierarchy-cat_zh_CN.ts
+6
-6
hromhierarchy_en_US.ts
...cale/lanres/entities/hromhierarchy/hromhierarchy_en_US.ts
+4
-0
hromhierarchy_zh_CN.ts
...cale/lanres/entities/hromhierarchy/hromhierarchy_zh_CN.ts
+4
-0
hromhierarchy-cat-grid-view-base.tsx
...rarchy-cat-grid-view/hromhierarchy-cat-grid-view-base.tsx
+51
-0
hromhierarchy-cat-grid-view.html
...mhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.html
+1
-1
hromhierarchy-grid-view-base.tsx
.../hromhierarchy-grid-view/hromhierarchy-grid-view-base.tsx
+53
-0
hrorg-address-grid-view-base.tsx
.../hrorg-address-grid-view/hrorg-address-grid-view-base.tsx
+51
-0
hrorg-contact-grid-view-base.tsx
.../hrorg-contact-grid-view/hrorg-contact-grid-view-base.tsx
+51
-0
hrorganization-grid-view-base.tsx
...rorganization-grid-view/hrorganization-grid-view-base.tsx
+51
-0
hremployee-grid-view-base.tsx
...source/hremployee-grid-view/hremployee-grid-view-base.tsx
+51
-0
page-register.ts
app_PIM/src/pages/ungroup/pim/page-register.ts
+1
-1
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+12
-12
state.ts
app_PIM/src/store/modules/view-action/state.ts
+1
-0
ef-001-form-base.tsx
...idgets/hromhierarchy-cat/ef-001-form/ef-001-form-base.tsx
+3
-3
ef-001-form.html
...rc/widgets/hromhierarchy-cat/ef-001-form/ef-001-form.html
+3
-3
main-form-base.tsx
...rc/widgets/hromhierarchy-cat/main-form/main-form-base.tsx
+2
-2
main-grid-base.tsx
...rc/widgets/hromhierarchy-cat/main-grid/main-grid-base.tsx
+1
-1
grid-001-grid-base.tsx
...idgets/hromhierarchy/grid-001-grid/grid-001-grid-base.tsx
+12
-2
grid-001-grid-model.ts
...idgets/hromhierarchy/grid-001-grid/grid-001-grid-model.ts
+2
-0
grid-001-grid-service.ts
...gets/hromhierarchy/grid-001-grid/grid-001-grid-service.ts
+12
-0
grid-001-grid.html
...rc/widgets/hromhierarchy/grid-001-grid/grid-001-grid.html
+32
-4
tree-001-treeview-service.ts
...mhierarchy/tree-001-treeview/tree-001-treeview-service.ts
+1
-2
HROMHierarchyCat.java
...zlab/humanresource/core/base/domain/HROMHierarchyCat.java
+2
-2
HROMHierarchyCatSearchContext.java
...ource/core/base/filter/HROMHierarchyCatSearchContext.java
+1
-1
未找到文件。
app_PIM/src/interface/entity/hromhierarchy-cat.ts
浏览文件 @
675102e6
...
@@ -15,7 +15,7 @@ export interface HROMHierarchyCat {
...
@@ -15,7 +15,7 @@ export interface HROMHierarchyCat {
omhierarchycatid
?:
any
;
omhierarchycatid
?:
any
;
/**
/**
* 名称
*
层次类别
名称
*
*
* @returns {*}
* @returns {*}
* @memberof HROMHierarchyCat
* @memberof HROMHierarchyCat
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_en_US.ts
浏览文件 @
675102e6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
export
default
{
export
default
{
fields
:
{
fields
:
{
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
createman
:
"建立人"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updateman
:
"更新人"
,
...
@@ -42,12 +42,12 @@ export default {
...
@@ -42,12 +42,12 @@ export default {
srfupdatedate
:
"更新时间"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srforikey
:
""
,
srfkey
:
"结构层次类别标识"
,
srfkey
:
"结构层次类别标识"
,
srfmajortext
:
"名称"
,
srfmajortext
:
"
层次类别
名称"
,
srftempmode
:
""
,
srftempmode
:
""
,
srfuf
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
srfsourcekey
:
""
,
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
memo
:
"备注"
,
memo
:
"备注"
,
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatid
:
"结构层次类别标识"
,
},
},
...
@@ -63,12 +63,12 @@ export default {
...
@@ -63,12 +63,12 @@ export default {
srfupdatedate
:
"更新时间"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srforikey
:
""
,
srfkey
:
"结构层次类别标识"
,
srfkey
:
"结构层次类别标识"
,
srfmajortext
:
"名称"
,
srfmajortext
:
"
层次类别
名称"
,
srftempmode
:
""
,
srftempmode
:
""
,
srfuf
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
srfsourcekey
:
""
,
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
memo
:
"备注"
,
memo
:
"备注"
,
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatid
:
"结构层次类别标识"
,
},
},
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
},
},
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
memo
:
"备注"
,
memo
:
"备注"
,
},
},
uiactions
:
{
uiactions
:
{
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_zh_CN.ts
浏览文件 @
675102e6
export
default
{
export
default
{
fields
:
{
fields
:
{
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
createman
:
"建立人"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updateman
:
"更新人"
,
...
@@ -41,12 +41,12 @@ export default {
...
@@ -41,12 +41,12 @@ export default {
srfupdatedate
:
"更新时间"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srforikey
:
""
,
srfkey
:
"结构层次类别标识"
,
srfkey
:
"结构层次类别标识"
,
srfmajortext
:
"名称"
,
srfmajortext
:
"
层次类别
名称"
,
srftempmode
:
""
,
srftempmode
:
""
,
srfuf
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
srfsourcekey
:
""
,
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
memo
:
"备注"
,
memo
:
"备注"
,
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatid
:
"结构层次类别标识"
,
},
},
...
@@ -62,12 +62,12 @@ export default {
...
@@ -62,12 +62,12 @@ export default {
srfupdatedate
:
"更新时间"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srforikey
:
""
,
srfkey
:
"结构层次类别标识"
,
srfkey
:
"结构层次类别标识"
,
srfmajortext
:
"名称"
,
srfmajortext
:
"
层次类别
名称"
,
srftempmode
:
""
,
srftempmode
:
""
,
srfuf
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
srfsourcekey
:
""
,
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
memo
:
"备注"
,
memo
:
"备注"
,
omhierarchycatid
:
"结构层次类别标识"
,
omhierarchycatid
:
"结构层次类别标识"
,
},
},
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
},
},
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
omhierarchycatname
:
"名称"
,
omhierarchycatname
:
"
层次类别
名称"
,
memo
:
"备注"
,
memo
:
"备注"
,
},
},
uiactions
:
{
uiactions
:
{
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy/hromhierarchy_en_US.ts
浏览文件 @
675102e6
...
@@ -107,6 +107,10 @@ export default {
...
@@ -107,6 +107,10 @@ export default {
caption
:
"新建行"
,
caption
:
"新建行"
,
tip
:
"新建行"
,
tip
:
"新建行"
,
},
},
deuiaction1
:
{
caption
:
"保存行"
,
tip
:
"保存行"
,
},
tbitem26
:
{
tbitem26
:
{
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
...
...
app_PIM/src/locale/lanres/entities/hromhierarchy/hromhierarchy_zh_CN.ts
浏览文件 @
675102e6
...
@@ -106,6 +106,10 @@ export default {
...
@@ -106,6 +106,10 @@ export default {
caption
:
"新建行"
,
caption
:
"新建行"
,
tip
:
"新建行"
,
tip
:
"新建行"
,
},
},
deuiaction1
:
{
caption
:
"保存行"
,
tip
:
"保存行"
,
},
tbitem26
:
{
tbitem26
:
{
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
...
...
app_PIM/src/pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view-base.tsx
浏览文件 @
675102e6
...
@@ -182,6 +182,9 @@ export class HROMHierarchyCatGridViewBase extends GridViewBase {
...
@@ -182,6 +182,9 @@ export class HROMHierarchyCatGridViewBase extends GridViewBase {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
}
...
@@ -396,6 +399,34 @@ export class HROMHierarchyCatGridViewBase extends GridViewBase {
...
@@ -396,6 +399,34 @@ export class HROMHierarchyCatGridViewBase extends GridViewBase {
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROMHierarchyCat"
);
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROMHierarchyCat"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROMHierarchyCat"
);
}
/**
/**
* 逻辑事件
* 逻辑事件
*
*
...
@@ -672,6 +703,26 @@ export class HROMHierarchyCatGridViewBase extends GridViewBase {
...
@@ -672,6 +703,26 @@ export class HROMHierarchyCatGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROMHierarchyCatGridViewBase
*/
public
SaveRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
();
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
/**
* 删除
* 删除
*
*
...
...
app_PIM/src/pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.html
浏览文件 @
675102e6
<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>
<template
slot=
"searchForm"
>
<template
slot=
"searchForm"
>
...
...
app_PIM/src/pages/base/hromhierarchy-grid-view/hromhierarchy-grid-view-base.tsx
浏览文件 @
675102e6
...
@@ -112,6 +112,8 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
...
@@ -112,6 +112,8 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
tbitem25
:
{
name
:
'tbitem25'
,
caption
:
'新建行'
,
'isShowCaption'
:
false
,
'isShowIcon'
:
true
,
tooltip
:
'新建行'
,
iconcls
:
'fa fa-plus'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'NewRow'
,
target
:
''
,
class
:
''
}
},
tbitem25
:
{
name
:
'tbitem25'
,
caption
:
'新建行'
,
'isShowCaption'
:
false
,
'isShowIcon'
:
true
,
tooltip
:
'新建行'
,
iconcls
:
'fa fa-plus'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'NewRow'
,
target
:
''
,
class
:
''
}
},
deuiaction1
:
{
name
:
'deuiaction1'
,
caption
:
'保存行'
,
'isShowCaption'
:
false
,
'isShowIcon'
:
true
,
tooltip
:
'保存行'
,
iconcls
:
'fa fa-save'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveRow'
,
target
:
''
,
class
:
''
}
},
tbitem26
:
{
name
:
'tbitem26'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem26
:
{
name
:
'tbitem26'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem8
:
{
name
:
'tbitem8'
,
caption
:
'删除'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
,
class
:
''
}
},
tbitem8
:
{
name
:
'tbitem8'
,
caption
:
'删除'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
,
class
:
''
}
},
...
@@ -187,6 +189,9 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
...
@@ -187,6 +189,9 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
}
...
@@ -401,6 +406,34 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
...
@@ -401,6 +406,34 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROMHierarchy"
);
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROMHierarchy"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROMHierarchy"
);
}
/**
/**
* 逻辑事件
* 逻辑事件
*
*
...
@@ -701,6 +734,26 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
...
@@ -701,6 +734,26 @@ export class HROMHierarchyGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROMHierarchyGridViewBase
*/
public
SaveRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
();
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
/**
* 删除
* 删除
*
*
...
...
app_PIM/src/pages/base/hrorg-address-grid-view/hrorg-address-grid-view-base.tsx
浏览文件 @
675102e6
...
@@ -182,6 +182,9 @@ export class HROrgAddressGridViewBase extends GridViewBase {
...
@@ -182,6 +182,9 @@ export class HROrgAddressGridViewBase extends GridViewBase {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
}
...
@@ -396,6 +399,34 @@ export class HROrgAddressGridViewBase extends GridViewBase {
...
@@ -396,6 +399,34 @@ export class HROrgAddressGridViewBase extends GridViewBase {
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrgAddress"
);
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrgAddress"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrgAddress"
);
}
/**
/**
* 逻辑事件
* 逻辑事件
*
*
...
@@ -696,6 +727,26 @@ export class HROrgAddressGridViewBase extends GridViewBase {
...
@@ -696,6 +727,26 @@ export class HROrgAddressGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROrgAddressGridViewBase
*/
public
SaveRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
();
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
/**
* 删除
* 删除
*
*
...
...
app_PIM/src/pages/base/hrorg-contact-grid-view/hrorg-contact-grid-view-base.tsx
浏览文件 @
675102e6
...
@@ -182,6 +182,9 @@ export class HROrgContactGridViewBase extends GridViewBase {
...
@@ -182,6 +182,9 @@ export class HROrgContactGridViewBase extends GridViewBase {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
}
...
@@ -396,6 +399,34 @@ export class HROrgContactGridViewBase extends GridViewBase {
...
@@ -396,6 +399,34 @@ export class HROrgContactGridViewBase extends GridViewBase {
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrgContact"
);
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrgContact"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrgContact"
);
}
/**
/**
* 逻辑事件
* 逻辑事件
*
*
...
@@ -696,6 +727,26 @@ export class HROrgContactGridViewBase extends GridViewBase {
...
@@ -696,6 +727,26 @@ export class HROrgContactGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROrgContactGridViewBase
*/
public
SaveRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
();
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
/**
* 删除
* 删除
*
*
...
...
app_PIM/src/pages/base/hrorganization-grid-view/hrorganization-grid-view-base.tsx
浏览文件 @
675102e6
...
@@ -182,6 +182,9 @@ export class HROrganizationGridViewBase extends GridViewBase {
...
@@ -182,6 +182,9 @@ export class HROrganizationGridViewBase extends GridViewBase {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
}
...
@@ -396,6 +399,34 @@ export class HROrganizationGridViewBase extends GridViewBase {
...
@@ -396,6 +399,34 @@ export class HROrganizationGridViewBase extends GridViewBase {
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrganization"
);
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrganization"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HROrganization"
);
}
/**
/**
* 逻辑事件
* 逻辑事件
*
*
...
@@ -662,6 +693,26 @@ export class HROrganizationGridViewBase extends GridViewBase {
...
@@ -662,6 +693,26 @@ export class HROrganizationGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROrganizationGridViewBase
*/
public
SaveRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
();
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
/**
* 删除
* 删除
*
*
...
...
app_PIM/src/pages/human-resource/hremployee-grid-view/hremployee-grid-view-base.tsx
浏览文件 @
675102e6
...
@@ -182,6 +182,9 @@ export class HREmployeeGridViewBase extends GridViewBase {
...
@@ -182,6 +182,9 @@ export class HREmployeeGridViewBase extends GridViewBase {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
}
...
@@ -396,6 +399,34 @@ export class HREmployeeGridViewBase extends GridViewBase {
...
@@ -396,6 +399,34 @@ export class HREmployeeGridViewBase extends GridViewBase {
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HREmployee"
);
}
/**
/**
* 逻辑事件
* 逻辑事件
*
*
...
@@ -660,6 +691,26 @@ export class HREmployeeGridViewBase extends GridViewBase {
...
@@ -660,6 +691,26 @@ export class HREmployeeGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeGridViewBase
*/
public
SaveRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
();
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
/**
* 删除
* 删除
*
*
...
...
app_PIM/src/pages/ungroup/pim/page-register.ts
浏览文件 @
675102e6
...
@@ -23,8 +23,8 @@ export const PageComponents = {
...
@@ -23,8 +23,8 @@ export const PageComponents = {
Vue
.
component
(
'hromhierarchy-edit-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-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
(
'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
(
'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
(
'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
浏览文件 @
675102e6
...
@@ -561,27 +561,27 @@ const router = new Router({
...
@@ -561,27 +561,27 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'
),
},
},
{
{
path
:
'hr
legals/:hrlegal?/gridview/:grid
view?'
,
path
:
'hr
omhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/treeexpview/:treeexp
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hr
legal.views.grid
view.title'
,
caption
:
'entities.hr
omhierarchy.views.treeexp
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrlegals'
,
parameterName
:
'hrlegal'
},
{
pathName
:
'hromhierarchycats'
,
parameterName
:
'hromhierarchycat'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
{
pathName
:
'hromhierarchies'
,
parameterName
:
'hromhierarchy'
},
{
pathName
:
'treeexpview'
,
parameterName
:
'treeexpview'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hr
legal-grid-view/hrlegal-grid
-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hr
omhierarchy-tree-exp-view/hromhierarchy-tree-exp
-view.vue'
),
},
},
{
{
path
:
'hromhierarch
ycats/:hromhierarchycat?/hromhierarch
ies/:hromhierarchy?/treeexpview/:treeexpview?'
,
path
:
'hromhierarchies/:hromhierarchy?/treeexpview/:treeexpview?'
,
meta
:
{
meta
:
{
caption
:
'entities.hromhierarchy.views.treeexpview.title'
,
caption
:
'entities.hromhierarchy.views.treeexpview.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
:
'treeexpview'
,
parameterName
:
'treeexpview'
},
{
pathName
:
'treeexpview'
,
parameterName
:
'treeexpview'
},
],
],
...
@@ -590,18 +590,18 @@ const router = new Router({
...
@@ -590,18 +590,18 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue'
),
component
:
()
=>
import
(
'@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue'
),
},
},
{
{
path
:
'hr
omhierarchies/:hromhierarchy?/treeexpview/:treeexp
view?'
,
path
:
'hr
legals/:hrlegal?/gridview/:grid
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.hr
omhierarchy.views.treeexp
view.title'
,
caption
:
'entities.hr
legal.views.grid
view.title'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hr
omhierarchies'
,
parameterName
:
'hromhierarchy
'
},
{
pathName
:
'hr
legals'
,
parameterName
:
'hrlegal
'
},
{
pathName
:
'
treeexpview'
,
parameterName
:
'treeexp
view'
},
{
pathName
:
'
gridview'
,
parameterName
:
'grid
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/base/hr
omhierarchy-tree-exp-view/hromhierarchy-tree-exp
-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
浏览文件 @
675102e6
...
@@ -81,6 +81,7 @@ export const viewstate: any = {
...
@@ -81,6 +81,7 @@ export const viewstate: any = {
viewdatachange
:
false
,
viewdatachange
:
false
,
refviews
:
[
refviews
:
[
'7933350eca0f8dbcb5402928a860c4ec'
,
'7933350eca0f8dbcb5402928a860c4ec'
,
'e7ba37699bd458dc8dd5c02abac8dadd'
,
'4a61d63445d504cab11cf5f45536b314'
,
'4a61d63445d504cab11cf5f45536b314'
,
],
],
},
},
...
...
app_PIM/src/widgets/hromhierarchy-cat/ef-001-form/ef-001-form-base.tsx
浏览文件 @
675102e6
...
@@ -113,7 +113,7 @@ export class EF_001EditFormBase extends EditFormControlBase {
...
@@ -113,7 +113,7 @@ export class EF_001EditFormBase extends EditFormControlBase {
* @memberof EF_001EditFormBase
* @memberof EF_001EditFormBase
*/
*/
public
detailsModel
:
any
=
{
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'结构层次类别'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
tru
e
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hromhierarchycat.ef_001_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.hromhierarchycat.ef_001_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart1
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
druipart1
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
...
@@ -127,7 +127,7 @@ export class EF_001EditFormBase extends EditFormControlBase {
...
@@ -127,7 +127,7 @@ export class EF_001EditFormBase extends EditFormControlBase {
srfkey
:
new
FormItemModel
({
caption
:
'结构层次类别标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfkey
:
new
FormItemModel
({
caption
:
'结构层次类别标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'
层次类别
名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
...
@@ -137,7 +137,7 @@ export class EF_001EditFormBase extends EditFormControlBase {
...
@@ -137,7 +137,7 @@ export class EF_001EditFormBase extends EditFormControlBase {
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
omhierarchycatname
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'omhierarchycatname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
omhierarchycatname
:
new
FormItemModel
({
caption
:
'
层次类别
名称'
,
detailType
:
'FORMITEM'
,
name
:
'omhierarchycatname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
...
...
app_PIM/src/widgets/hromhierarchy-cat/ef-001-form/ef-001-form.html
浏览文件 @
675102e6
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
<row
>
<row
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.group1')"
:isShowCaption=
"
tru
e"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.group1')"
:isShowCaption=
"
fals
e"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.omhierarchycatname.visible"
:style=
"{}"
:
lg=
"{ span: 24
, offset: 0 }"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.omhierarchycatname.visible"
:style=
"{}"
:
sm=
"{ span: 6, offset: 0 }"
:md=
"{ span: 6, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6
, offset: 0 }"
>
<app-form-item
name=
'omhierarchycatname'
:itemRules=
"this.rules.omhierarchycatname"
class=
''
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.omhierarchycatname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.omhierarchycatname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'omhierarchycatname'
:itemRules=
"this.rules.omhierarchycatname"
class=
''
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.omhierarchycatname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.omhierarchycatname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'omhierarchycatname'
:value=
"data.omhierarchycatname"
dataType=
"TEXT"
:precision=
"0"
<app-span
name=
'omhierarchycatname'
:value=
"data.omhierarchycatname"
dataType=
"TEXT"
:precision=
"0"
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</app-form-item>
</app-form-item>
</i-col>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.memo.visible"
:style=
"{}"
:
lg=
"{ span: 24
, offset: 0 }"
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.memo.visible"
:style=
"{}"
:
sm=
"{ span: 18, offset: 0 }"
:md=
"{ span: 18, offset: 0 }"
:lg=
"{ span: 18, offset: 0 }"
:xl=
"{ span: 18
, offset: 0 }"
>
<app-form-item
name=
'memo'
:itemRules=
"this.rules.memo"
class=
''
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.memo')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.memo.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'memo'
:itemRules=
"this.rules.memo"
class=
''
:caption=
"$t('entities.hromhierarchycat.ef_001_form.details.memo')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.memo.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'memo'
:value=
"data.memo"
dataType=
"LONGTEXT_1000"
:precision=
"0"
<app-span
name=
'memo'
:value=
"data.memo"
dataType=
"LONGTEXT_1000"
:precision=
"0"
...
...
app_PIM/src/widgets/hromhierarchy-cat/main-form/main-form-base.tsx
浏览文件 @
675102e6
...
@@ -114,7 +114,7 @@ export class MainEditFormBase extends EditFormControlBase {
...
@@ -114,7 +114,7 @@ export class MainEditFormBase extends EditFormControlBase {
srfkey
:
new
FormItemModel
({
caption
:
'结构层次类别标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfkey
:
new
FormItemModel
({
caption
:
'结构层次类别标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'
层次类别
名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
...
@@ -124,7 +124,7 @@ export class MainEditFormBase extends EditFormControlBase {
...
@@ -124,7 +124,7 @@ export class MainEditFormBase extends EditFormControlBase {
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
omhierarchycatname
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'omhierarchycatname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
omhierarchycatname
:
new
FormItemModel
({
caption
:
'
层次类别
名称'
,
detailType
:
'FORMITEM'
,
name
:
'omhierarchycatname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
...
...
app_PIM/src/widgets/hromhierarchy-cat/main-grid/main-grid-base.tsx
浏览文件 @
675102e6
...
@@ -85,7 +85,7 @@ export class MainGridBase extends GridControlBase {
...
@@ -85,7 +85,7 @@ export class MainGridBase extends GridControlBase {
public
allColumns
:
any
[]
=
[
public
allColumns
:
any
[]
=
[
{
{
name
:
'omhierarchycatname'
,
name
:
'omhierarchycatname'
,
label
:
'名称'
,
label
:
'
层次类别
名称'
,
langtag
:
'entities.hromhierarchycat.main_grid.columns.omhierarchycatname'
,
langtag
:
'entities.hromhierarchycat.main_grid.columns.omhierarchycatname'
,
show
:
true
,
show
:
true
,
util
:
'PX'
,
util
:
'PX'
,
...
...
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid-base.tsx
浏览文件 @
675102e6
...
@@ -89,7 +89,7 @@ export class GRID_001GridBase extends GridControlBase {
...
@@ -89,7 +89,7 @@ export class GRID_001GridBase extends GridControlBase {
langtag
:
'entities.hromhierarchy.grid_001_grid.columns.organizationname'
,
langtag
:
'entities.hromhierarchy.grid_001_grid.columns.organizationname'
,
show
:
true
,
show
:
true
,
util
:
'PX'
,
util
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
},
},
{
{
name
:
'pomhierarchyname'
,
name
:
'pomhierarchyname'
,
...
@@ -118,6 +118,8 @@ export class GRID_001GridBase extends GridControlBase {
...
@@ -118,6 +118,8 @@ export class GRID_001GridBase extends GridControlBase {
public
getGridRowModel
(){
public
getGridRowModel
(){
return
{
return
{
pomhierarchyid
:
new
FormItemModel
(),
pomhierarchyid
:
new
FormItemModel
(),
organizationname
:
new
FormItemModel
(),
organizationid
:
new
FormItemModel
(),
pomhierarchyname
:
new
FormItemModel
(),
pomhierarchyname
:
new
FormItemModel
(),
showorder
:
new
FormItemModel
(),
showorder
:
new
FormItemModel
(),
srfkey
:
new
FormItemModel
(),
srfkey
:
new
FormItemModel
(),
...
@@ -135,6 +137,14 @@ export class GRID_001GridBase extends GridControlBase {
...
@@ -135,6 +137,14 @@ export class GRID_001GridBase extends GridControlBase {
{
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
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'blur'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'blur'
},
],
],
organizationname
:
[
{
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'
},
],
organizationid
:
[
{
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
:
[
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
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'上级组织 值不能为空'
,
trigger
:
'blur'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'上级组织 值不能为空'
,
trigger
:
'blur'
},
...
@@ -156,7 +166,7 @@ export class GRID_001GridBase extends GridControlBase {
...
@@ -156,7 +166,7 @@ export class GRID_001GridBase extends GridControlBase {
* @memberof GRID_001Base
* @memberof GRID_001Base
*/
*/
public
hasRowEdit
:
any
=
{
public
hasRowEdit
:
any
=
{
'organizationname'
:
fals
e
,
'organizationname'
:
tru
e
,
'pomhierarchyname'
:
true
,
'pomhierarchyname'
:
true
,
'showorder'
:
true
,
'showorder'
:
true
,
};
};
...
...
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid-model.ts
浏览文件 @
675102e6
...
@@ -41,11 +41,13 @@ export default class GRID_001Model {
...
@@ -41,11 +41,13 @@ export default class GRID_001Model {
name
:
'organizationname'
,
name
:
'organizationname'
,
prop
:
'organizationname'
,
prop
:
'organizationname'
,
dataType
:
'PICKUPTEXT'
,
dataType
:
'PICKUPTEXT'
,
isEditable
:
true
},
},
{
{
name
:
'organizationid'
,
name
:
'organizationid'
,
prop
:
'organizationid'
,
prop
:
'organizationid'
,
dataType
:
'PICKUP'
,
dataType
:
'PICKUP'
,
isEditable
:
true
},
},
{
{
name
:
'pomhierarchyname'
,
name
:
'pomhierarchyname'
,
...
...
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid-service.ts
浏览文件 @
675102e6
...
@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
...
@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import
ControlService
from
'@/widgets/control-service'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HROMHierarchyService
from
'@/service/hromhierarchy/hromhierarchy-service'
;
import
HROMHierarchyService
from
'@/service/hromhierarchy/hromhierarchy-service'
;
import
GRID_001Model
from
'./grid-001-grid-model'
;
import
GRID_001Model
from
'./grid-001-grid-model'
;
import
HROrganizationService
from
'@/service/hrorganization/hrorganization-service'
;
/**
/**
...
@@ -42,6 +43,14 @@ export default class GRID_001Service extends ControlService {
...
@@ -42,6 +43,14 @@ export default class GRID_001Service extends ControlService {
}
}
/**
* 组织服务对象
*
* @type {HROrganizationService}
* @memberof GRID_001Service
*/
public
hrorganizationService
:
HROrganizationService
=
new
HROrganizationService
();
/**
/**
* 处理数据
* 处理数据
*
*
...
@@ -83,6 +92,9 @@ export default class GRID_001Service extends ControlService {
...
@@ -83,6 +92,9 @@ export default class GRID_001Service extends ControlService {
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
data
.
page
=
data
.
page
?
data
.
page
:
0
;
data
.
page
=
data
.
page
?
data
.
page
:
0
;
data
.
size
=
data
.
size
?
data
.
size
:
1000
;
data
.
size
=
data
.
size
?
data
.
size
:
1000
;
if
(
Object
.
is
(
serviceName
,
'HROrganizationService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
hrorganizationService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'organizationid'
,
'hrorganization'
);
}
if
(
Object
.
is
(
serviceName
,
'HROMHierarchyService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
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
this
.
doItems
(
this
.
appEntityService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'omhierarchyid'
,
'hromhierarchy'
);
}
}
...
...
app_PIM/src/widgets/hromhierarchy/grid-001-grid/grid-001-grid.html
浏览文件 @
675102e6
...
@@ -24,19 +24,47 @@
...
@@ -24,19 +24,47 @@
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('organizationname')"
>
<template
v-if=
"getColumnState('organizationname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'organizationname'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.organizationname')"
:width=
"
10
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'organizationname'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.organizationname')"
:width=
"
25
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{$t('entities.hromhierarchy.grid_001_grid.columns.organizationname')}}
{{$t('entities.hromhierarchy.grid_001_grid.columns.organizationname')}}
</span>
</span>
</template>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.organizationname}}
</span>
<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=
'organizationname'
deMajorField=
'organizationname'
deKeyField=
'hrorganization'
:service=
"service"
:acParams=
"{ serviceName: 'HROrganizationService', interfaceName: 'FetchDefault'}"
valueitem=
'organizationid'
:value=
"row[column.property]"
editortype=
""
:pickupView=
"{ viewname: 'hrorganization-pickup-view', title: $t('entities.hrorganization.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'hrorganizations', parameterName: 'hrorganization' }, { 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=
'organizationname'
editorType=
"PICKER"
:value=
"row.organizationname"
dataType=
"PICKUPTEXT"
precision=
"0"
></app-span>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('pomhierarchyname')"
>
<template
v-if=
"getColumnState('pomhierarchyname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'pomhierarchyname'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.pomhierarchyname')"
:width=
"
10
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'pomhierarchyname'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.pomhierarchyname')"
:width=
"
25
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{$t('entities.hromhierarchy.grid_001_grid.columns.pomhierarchyname')}}
{{$t('entities.hromhierarchy.grid_001_grid.columns.pomhierarchyname')}}
...
@@ -76,7 +104,7 @@
...
@@ -76,7 +104,7 @@
</el-table-column>
</el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('showorder')"
>
<template
v-if=
"getColumnState('showorder')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'showorder'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.showorder')"
:width=
"1
0
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'showorder'"
:label=
"$t('entities.hromhierarchy.grid_001_grid.columns.showorder')"
:width=
"1
5
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{$t('entities.hromhierarchy.grid_001_grid.columns.showorder')}}
{{$t('entities.hromhierarchy.grid_001_grid.columns.showorder')}}
...
...
app_PIM/src/widgets/hromhierarchy/tree-001-treeview/tree-001-treeview-service.ts
浏览文件 @
675102e6
...
@@ -107,8 +107,7 @@ export default class TREE_001Service extends ControlService {
...
@@ -107,8 +107,7 @@ export default class TREE_001Service extends ControlService {
if
(
!
srfnodeid
||
Object
.
is
(
srfnodeid
,
'#'
))
{
if
(
!
srfnodeid
||
Object
.
is
(
srfnodeid
,
'#'
))
{
await
this
.
fillRootNodes
(
context
,
filter
,
list
);
srfnodeid
=
this
.
TREENODE_ROOT
;
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
}
let
strTreeNodeId
:
string
=
srfnodeid
;
let
strTreeNodeId
:
string
=
srfnodeid
;
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/domain/HROMHierarchyCat.java
浏览文件 @
675102e6
...
@@ -49,7 +49,7 @@ public class HROMHierarchyCat extends EntityMP implements Serializable {
...
@@ -49,7 +49,7 @@ public class HROMHierarchyCat extends EntityMP implements Serializable {
@JsonProperty
(
"omhierarchycatid"
)
@JsonProperty
(
"omhierarchycatid"
)
private
String
omhierarchycatid
;
private
String
omhierarchycatid
;
/**
/**
* 名称
*
层次类别
名称
*/
*/
@TableField
(
value
=
"omhierarchycatname"
)
@TableField
(
value
=
"omhierarchycatname"
)
@JSONField
(
name
=
"omhierarchycatname"
)
@JSONField
(
name
=
"omhierarchycatname"
)
...
@@ -100,7 +100,7 @@ public class HROMHierarchyCat extends EntityMP implements Serializable {
...
@@ -100,7 +100,7 @@ public class HROMHierarchyCat extends EntityMP implements Serializable {
/**
/**
* 设置 [名称]
* 设置 [
层次类别
名称]
*/
*/
public
void
setOmhierarchycatname
(
String
omhierarchycatname
){
public
void
setOmhierarchycatname
(
String
omhierarchycatname
){
this
.
omhierarchycatname
=
omhierarchycatname
;
this
.
omhierarchycatname
=
omhierarchycatname
;
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/filter/HROMHierarchyCatSearchContext.java
浏览文件 @
675102e6
...
@@ -27,7 +27,7 @@ import cn.ibizlab.humanresource.core.base.domain.HROMHierarchyCat;
...
@@ -27,7 +27,7 @@ import cn.ibizlab.humanresource.core.base.domain.HROMHierarchyCat;
@Data
@Data
public
class
HROMHierarchyCatSearchContext
extends
QueryWrapperContext
<
HROMHierarchyCat
>
{
public
class
HROMHierarchyCatSearchContext
extends
QueryWrapperContext
<
HROMHierarchyCat
>
{
private
String
n_omhierarchycatname_like
;
//[名称]
private
String
n_omhierarchycatname_like
;
//[
层次类别
名称]
public
void
setN_omhierarchycatname_like
(
String
n_omhierarchycatname_like
)
{
public
void
setN_omhierarchycatname_like
(
String
n_omhierarchycatname_like
)
{
this
.
n_omhierarchycatname_like
=
n_omhierarchycatname_like
;
this
.
n_omhierarchycatname_like
=
n_omhierarchycatname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_omhierarchycatname_like
)){
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_omhierarchycatname_like
)){
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录