Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
2444d080
提交
2444d080
编写于
8月 10, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
a121135c
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
287 行增加
和
33 行删除
+287
-33
hrfamily_en_US.ts
...PIM/src/locale/lanres/entities/hrfamily/hrfamily_en_US.ts
+10
-2
hrfamily_zh_CN.ts
...PIM/src/locale/lanres/entities/hrfamily/hrfamily_zh_CN.ts
+10
-2
main-grid-base.tsx
app_PIM/src/widgets/hrfamily/main-grid/main-grid-base.tsx
+107
-11
main-grid-model.ts
app_PIM/src/widgets/hrfamily/main-grid/main-grid-model.ts
+50
-10
main-grid.html
app_PIM/src/widgets/hrfamily/main-grid/main-grid.html
+110
-8
未找到文件。
app_PIM/src/locale/lanres/entities/hrfamily/hrfamily_en_US.ts
浏览文件 @
2444d080
...
@@ -56,9 +56,17 @@ export default {
...
@@ -56,9 +56,17 @@ export default {
},
},
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
relationship
:
"与本人关系"
,
hrfamilyname
:
"姓名"
,
hrfamilyname
:
"姓名"
,
updateman
:
"更新人"
,
sex
:
"性别"
,
updatedate
:
"更新时间"
,
certtype
:
"证件类型"
,
certnum
:
"证件号码"
,
birthday
:
"出生日期"
,
age
:
"年龄"
,
workorganization
:
"工作单位"
,
duty
:
"职务"
,
political
:
"政治面貌"
,
emergencyflag
:
"是否紧急联系人"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
...
...
app_PIM/src/locale/lanres/entities/hrfamily/hrfamily_zh_CN.ts
浏览文件 @
2444d080
...
@@ -55,9 +55,17 @@ export default {
...
@@ -55,9 +55,17 @@ export default {
},
},
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
relationship
:
"与本人关系"
,
hrfamilyname
:
"姓名"
,
hrfamilyname
:
"姓名"
,
updateman
:
"更新人"
,
sex
:
"性别"
,
updatedate
:
"更新时间"
,
certtype
:
"证件类型"
,
certnum
:
"证件号码"
,
birthday
:
"出生日期"
,
age
:
"年龄"
,
workorganization
:
"工作单位"
,
duty
:
"职务"
,
political
:
"政治面貌"
,
emergencyflag
:
"是否紧急联系人"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
...
...
app_PIM/src/widgets/hrfamily/main-grid/main-grid-base.tsx
浏览文件 @
2444d080
...
@@ -92,6 +92,14 @@ export class MainGridBase extends GridControlBase {
...
@@ -92,6 +92,14 @@ export class MainGridBase extends GridControlBase {
* @memberof MainGridBase
* @memberof MainGridBase
*/
*/
public
allColumns
:
any
[]
=
[
public
allColumns
:
any
[]
=
[
{
name
:
'relationship'
,
label
:
'与本人关系'
,
langtag
:
'entities.hrfamily.main_grid.columns.relationship'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
{
name
:
'hrfamilyname'
,
name
:
'hrfamilyname'
,
label
:
'姓名'
,
label
:
'姓名'
,
...
@@ -101,17 +109,73 @@ export class MainGridBase extends GridControlBase {
...
@@ -101,17 +109,73 @@ export class MainGridBase extends GridControlBase {
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
},
},
{
{
name
:
'updateman'
,
name
:
'sex'
,
label
:
'更新人'
,
label
:
'性别'
,
langtag
:
'entities.hrfamily.main_grid.columns.updateman'
,
langtag
:
'entities.hrfamily.main_grid.columns.sex'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'certtype'
,
label
:
'证件类型'
,
langtag
:
'entities.hrfamily.main_grid.columns.certtype'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'certnum'
,
label
:
'证件号码'
,
langtag
:
'entities.hrfamily.main_grid.columns.certnum'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'birthday'
,
label
:
'出生日期'
,
langtag
:
'entities.hrfamily.main_grid.columns.birthday'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'age'
,
label
:
'年龄'
,
langtag
:
'entities.hrfamily.main_grid.columns.age'
,
show
:
true
,
show
:
true
,
util
:
'PX'
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
},
},
{
{
name
:
'updatedate'
,
name
:
'workorganization'
,
label
:
'更新时间'
,
label
:
'工作单位'
,
langtag
:
'entities.hrfamily.main_grid.columns.updatedate'
,
langtag
:
'entities.hrfamily.main_grid.columns.workorganization'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'duty'
,
label
:
'职务'
,
langtag
:
'entities.hrfamily.main_grid.columns.duty'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'political'
,
label
:
'政治面貌'
,
langtag
:
'entities.hrfamily.main_grid.columns.political'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'emergencyflag'
,
label
:
'是否紧急联系人'
,
langtag
:
'entities.hrfamily.main_grid.columns.emergencyflag'
,
show
:
true
,
show
:
true
,
util
:
'PX'
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
...
@@ -150,9 +214,17 @@ export class MainGridBase extends GridControlBase {
...
@@ -150,9 +214,17 @@ export class MainGridBase extends GridControlBase {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
hasRowEdit
:
any
=
{
public
hasRowEdit
:
any
=
{
'relationship'
:
false
,
'hrfamilyname'
:
false
,
'hrfamilyname'
:
false
,
'updateman'
:
false
,
'sex'
:
false
,
'updatedate'
:
false
,
'certtype'
:
false
,
'certnum'
:
false
,
'birthday'
:
false
,
'age'
:
false
,
'workorganization'
:
false
,
'duty'
:
false
,
'political'
:
false
,
'emergencyflag'
:
false
,
};
};
/**
/**
...
@@ -179,9 +251,33 @@ export class MainGridBase extends GridControlBase {
...
@@ -179,9 +251,33 @@ export class MainGridBase extends GridControlBase {
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
{
{
name
:
'updateman'
,
name
:
'sex'
,
srfkey
:
'SysOperator'
,
srfkey
:
'CL_HR_0010'
,
codelistType
:
'DYNAMIC'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
{
name
:
'certtype'
,
srfkey
:
'CL_HR_0009'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
{
name
:
'political'
,
srfkey
:
'CL_HR_0013'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
{
name
:
'emergencyflag'
,
srfkey
:
'YesNo'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
valueSeparator
:
','
,
...
...
app_PIM/src/widgets/hrfamily/main-grid/main-grid-model.ts
浏览文件 @
2444d080
...
@@ -27,25 +27,35 @@ export default class MainModel {
...
@@ -27,25 +27,35 @@ export default class MainModel {
}
else
{
}
else
{
return
[
return
[
{
{
name
:
'
hremployeeid
'
,
name
:
'
birthday
'
,
prop
:
'
hremployeeid
'
,
prop
:
'
birthday
'
,
dataType
:
'
PICKUP
'
,
dataType
:
'
DATE
'
,
},
},
{
{
name
:
'
updatema
n'
,
name
:
'
workorganizatio
n'
,
prop
:
'
updatema
n'
,
prop
:
'
workorganizatio
n'
,
dataType
:
'TEXT'
,
dataType
:
'TEXT'
,
},
},
{
name
:
'sex'
,
prop
:
'sex'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'political'
,
prop
:
'political'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'emergencyflag'
,
prop
:
'emergencyflag'
,
dataType
:
'YESNO'
,
},
{
{
name
:
'hrfamilyname'
,
name
:
'hrfamilyname'
,
prop
:
'hrfamilyname'
,
prop
:
'hrfamilyname'
,
dataType
:
'TEXT'
,
dataType
:
'TEXT'
,
},
},
{
name
:
'updatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
{
name
:
'srfmajortext'
,
name
:
'srfmajortext'
,
prop
:
'hrfamilyname'
,
prop
:
'hrfamilyname'
,
...
@@ -62,6 +72,36 @@ export default class MainModel {
...
@@ -62,6 +72,36 @@ export default class MainModel {
dataType
:
'GUID'
,
dataType
:
'GUID'
,
isEditable
:
true
isEditable
:
true
},
},
{
name
:
'relationship'
,
prop
:
'relationship'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'hremployeeid'
,
prop
:
'hremployeeid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'duty'
,
prop
:
'duty'
,
dataType
:
'TEXT'
,
},
{
name
:
'certtype'
,
prop
:
'certtype'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'age'
,
prop
:
'age'
,
dataType
:
'TEXT'
,
},
{
name
:
'certnum'
,
prop
:
'certnum'
,
dataType
:
'TEXT'
,
},
{
{
name
:
'hrfamily'
,
name
:
'hrfamily'
,
prop
:
'hrfamilyid'
,
prop
:
'hrfamilyid'
,
...
...
app_PIM/src/widgets/hrfamily/main-grid/main-grid.html
浏览文件 @
2444d080
...
@@ -23,6 +23,18 @@
...
@@ -23,6 +23,18 @@
<template
v-if=
"!isSingleSelect"
>
<template
v-if=
"!isSingleSelect"
>
<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('relationship')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'relationship'"
:label=
"$t('entities.hrfamily.main_grid.columns.relationship')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.relationship')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.relationship}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('hrfamilyname')"
>
<template
v-if=
"getColumnState('hrfamilyname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'hrfamilyname'"
:label=
"$t('entities.hrfamily.main_grid.columns.hrfamilyname')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'hrfamilyname'"
:label=
"$t('entities.hrfamily.main_grid.columns.hrfamilyname')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<template
v-slot:header=
"{column}"
>
...
@@ -35,29 +47,119 @@
...
@@ -35,29 +47,119 @@
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('updateman')"
>
<template
v-if=
"getColumnState('sex')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updateman'"
:label=
"$t('entities.hrfamily.main_grid.columns.updateman')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'sex'"
:label=
"$t('entities.hrfamily.main_grid.columns.sex')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.sex')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.sex"
tag=
'CL_HR_0010'
codelistType=
'STATIC'
></codelist>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('certtype')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'certtype'"
:label=
"$t('entities.hrfamily.main_grid.columns.certtype')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.certtype')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.certtype"
tag=
'CL_HR_0009'
codelistType=
'STATIC'
></codelist>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('certnum')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'certnum'"
:label=
"$t('entities.hrfamily.main_grid.columns.certnum')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.certnum')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.certnum}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('birthday')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'birthday'"
:label=
"$t('entities.hrfamily.main_grid.columns.birthday')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.birthday')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.birthday"
></app-format-data>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('age')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'age'"
:label=
"$t('entities.hrfamily.main_grid.columns.age')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.updateman')}}
{{$t('entities.hrfamily.main_grid.columns.age')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.age}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('workorganization')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'workorganization'"
:label=
"$t('entities.hrfamily.main_grid.columns.workorganization')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.workorganization')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.workorganization}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('duty')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'duty'"
:label=
"$t('entities.hrfamily.main_grid.columns.duty')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.duty')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.duty}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('political')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'political'"
:label=
"$t('entities.hrfamily.main_grid.columns.political')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrfamily.main_grid.columns.political')}}
</span>
</span>
</template>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<template
>
<codelist
:value=
"row.
updateman"
tag=
'SysOperator'
codelistType=
'DYNAM
IC'
></codelist>
<codelist
:value=
"row.
political"
tag=
'CL_HR_0013'
codelistType=
'STAT
IC'
></codelist>
</template>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('
updatedate
')"
>
<template
v-if=
"getColumnState('
emergencyflag
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
updatedate'"
:label=
"$t('entities.hrfamily.main_grid.columns.updatedate')"
:width=
"15
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
emergencyflag'"
:label=
"$t('entities.hrfamily.main_grid.columns.emergencyflag')"
:width=
"12
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.hrfamily.main_grid.columns.
updatedate
')}}
{{$t('entities.hrfamily.main_grid.columns.
emergencyflag
')}}
</span>
</span>
</template>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD HH:mm:ss"
:data=
"row.updatedate"
></app-format-data>
<template
>
<codelist
:value=
"row.emergencyflag"
tag=
'YesNo'
codelistType=
'STATIC'
></codelist>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录