提交 2444d080 编写于 作者: ibizdev's avatar ibizdev

jackwang 部署微服务应用

上级 a121135c
......@@ -56,9 +56,17 @@ export default {
},
main_grid: {
columns: {
relationship: "与本人关系",
hrfamilyname: "姓名",
updateman: "更新人",
updatedate: "更新时间",
sex: "性别",
certtype: "证件类型",
certnum: "证件号码",
birthday: "出生日期",
age: "年龄",
workorganization: "工作单位",
duty: "职务",
political: "政治面貌",
emergencyflag: "是否紧急联系人",
},
uiactions: {
},
......
......@@ -55,9 +55,17 @@ export default {
},
main_grid: {
columns: {
relationship: "与本人关系",
hrfamilyname: "姓名",
updateman: "更新人",
updatedate: "更新时间",
sex: "性别",
certtype: "证件类型",
certnum: "证件号码",
birthday: "出生日期",
age: "年龄",
workorganization: "工作单位",
duty: "职务",
political: "政治面貌",
emergencyflag: "是否紧急联系人",
},
uiactions: {
},
......
......@@ -92,6 +92,14 @@ export class MainGridBase extends GridControlBase {
* @memberof MainGridBase
*/
public allColumns: any[] = [
{
name: 'relationship',
label: '与本人关系',
langtag: 'entities.hrfamily.main_grid.columns.relationship',
show: true,
util: 'PX',
isEnableRowEdit: false,
},
{
name: 'hrfamilyname',
label: '姓名',
......@@ -101,17 +109,73 @@ export class MainGridBase extends GridControlBase {
isEnableRowEdit: false,
},
{
name: 'updateman',
label: '更新人',
langtag: 'entities.hrfamily.main_grid.columns.updateman',
name: 'sex',
label: '性别',
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,
util: 'PX',
isEnableRowEdit: false,
},
{
name: 'updatedate',
label: '更新时间',
langtag: 'entities.hrfamily.main_grid.columns.updatedate',
name: 'workorganization',
label: '工作单位',
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,
util: 'PX',
isEnableRowEdit: false,
......@@ -150,9 +214,17 @@ export class MainGridBase extends GridControlBase {
* @memberof MainBase
*/
public hasRowEdit: any = {
'relationship':false,
'hrfamilyname':false,
'updateman':false,
'updatedate':false,
'sex':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 {
public async formatExcelData(filterVal: any, jsonData: any, codelistColumns?: any[]): Promise<any> {
return super.formatExcelData(filterVal, jsonData, [
{
name: 'updateman',
srfkey: 'SysOperator',
codelistType : 'DYNAMIC',
name: 'sex',
srfkey: 'CL_HR_0010',
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',
textSeparator: '、',
valueSeparator: ',',
......
......@@ -27,25 +27,35 @@ export default class MainModel {
}else{
return [
{
name: 'hremployeeid',
prop: 'hremployeeid',
dataType: 'PICKUP',
name: 'birthday',
prop: 'birthday',
dataType: 'DATE',
},
{
name: 'updateman',
prop: 'updateman',
name: 'workorganization',
prop: 'workorganization',
dataType: 'TEXT',
},
{
name: 'sex',
prop: 'sex',
dataType: 'SSCODELIST',
},
{
name: 'political',
prop: 'political',
dataType: 'SSCODELIST',
},
{
name: 'emergencyflag',
prop: 'emergencyflag',
dataType: 'YESNO',
},
{
name: 'hrfamilyname',
prop: 'hrfamilyname',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srfmajortext',
prop: 'hrfamilyname',
......@@ -62,6 +72,36 @@ export default class MainModel {
dataType: 'GUID',
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',
prop: 'hrfamilyid',
......
......@@ -23,6 +23,18 @@
<template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</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')">
<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}">
......@@ -35,29 +47,119 @@
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updateman')">
<el-table-column show-overflow-tooltip :prop="'updateman'" :label="$t('entities.hrfamily.main_grid.columns.updateman')" :width="150" :align="'left'" :sortable="'custom'">
<template v-if="getColumnState('sex')">
<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}">
<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>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.updateman" tag='SysOperator' codelistType='DYNAMIC' ></codelist>
<codelist :value="row.political" tag='CL_HR_0013' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updatedate')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.hrfamily.main_grid.columns.updatedate')" :width="150" :align="'left'" :sortable="'custom'">
<template v-if="getColumnState('emergencyflag')">
<el-table-column show-overflow-tooltip :prop="'emergencyflag'" :label="$t('entities.hrfamily.main_grid.columns.emergencyflag')" :width="120" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.hrfamily.main_grid.columns.updatedate')}}
{{$t('entities.hrfamily.main_grid.columns.emergencyflag')}}
</span>
</template>
<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>
</el-table-column>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册