提交 28e6e48b 编写于 作者: doc_wei's avatar doc_wei

fixed: 解决员工中心点击详情闪退的问题

上级 1213f1a3
......@@ -14,7 +14,6 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
table = layui.table;
staffId = GetUrlParam("objectId");
showGrid({
......@@ -36,318 +35,6 @@ layui.config({
}
});
initStaffFamilyTable();
// 初始化家庭成员
function initStaffFamilyTable(){
table.render({
id: 'sysStaffFamilyTable',
elem: '#sysStaffFamilyTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstafffamily006',
where: {staffId: staffId},
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '名称', align: 'left', width: 100 },
{ field: 'relationshipName', title: '与本人关系', width: 100},
{ field: 'sex', title: '性别', width: 80, templet: function (d) {
if(d.sex == '0'){
return "保密";
} else if (d.sex == '1'){
return "";
} else if (d.sex == '2'){
return "";
}
}},
{ field: 'cardTypeName', title: '证件类型', width: 100},
{ field: 'cardNumber', title: '证件编号', width: 150 },
{ field: 'politicName', title: '政治面貌', width: 100},
{ field: 'workUnit', title: '工作单位', width: 140},
{ field: 'job', title: '职务', width: 120},
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}
]]
});
}
initStaffEducationTable();
// 初始化教育信息
function initStaffEducationTable(){
table.render({
id: 'sysStaffEducationTable',
elem: '#sysStaffEducationTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstaffeducation006',
where: {staffId: staffId},
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'graductionSchool', title: '毕业院校', align: 'left', width: 160 },
{ field: 'admissionTime', title: '入学时间', align: 'center', width: 100},
{ field: 'graduationTime', title: '毕业时间', align: 'center', width: 100},
{ field: 'major', title: '专业', width: 160},
{ field: 'educationName', title: '学历', align: 'left', width: 120 },
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'learningModalityName', title: '学习形式', align: 'left', width: 150 },
{ field: 'schoolNatureName', title: '学校性质', align: 'left', width: 100 },
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}
]]
});
}
initStaffJobTable();
// 初始化工作履历
function initStaffJobTable(){
table.render({
id: 'sysStaffJobTable',
elem: '#sysStaffJobTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstaffjobresume006',
where: {staffId: staffId},
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'workUnit', title: '任职单位', align: 'left', width: 160 },
{ field: 'department', title: '任职部门', width: 120},
{ field: 'job', title: '职务', width: 120},
{ field: 'station', title: '岗位', width: 120},
{ field: 'startTime', title: '任职开始时间', align: 'center', width: 100 },
{ field: 'endTime', title: '任职结束时间', align: 'center', width: 100 },
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}
]]
});
}
initStaffLanguageTable();
// 初始化语种能力
function initStaffLanguageTable(){
table.render({
id: 'sysStaffLanguageTable',
elem: '#sysStaffLanguageTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstafflanguage006',
where: {staffId: staffId},
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'languageTypeName', title: '语种类型', align: 'left', width: 160 },
{ field: 'levelName', title: '语种等级', width: 120},
{ field: 'getTime', title: '获取时间', align: 'center', width: 100},
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}
]]
});
}
initStaffCertificateTable();
// 初始化证书信息
function initStaffCertificateTable(){
table.render({
id: 'sysStaffCertificateTable',
elem: '#sysStaffCertificateTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstaffcertificate006',
where: {staffId: staffId},
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'certificateNumber', title: '证书编号', align: 'left', width: 160 },
{ field: 'certificateName', title: '证书名称', width: 120},
{ field: 'certificateTypeName', title: '证书类型', width: 120},
{ field: 'issueOrgan', title: '签发机构', width: 120},
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'validityType', title: '有效期类型', align: 'left', width: 100, templet: function (d) {
if(d.validityType == '1'){
return "永久有效";
} else if (d.validityType == '2'){
return "时间段有效";
}
}},
{ field: 'issueTime', title: '签发时间', align: 'center', width: 100 },
{ field: 'validityTime', title: '截至时间', align: 'center', width: 100 },
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}
]]
});
}
initStaffRewardTable();
// 初始化奖惩信息
function initStaffRewardTable(){
table.render({
id: 'sysStaffRewardTable',
elem: '#sysStaffRewardTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstaffrewardpunish006',
where: {staffId: staffId},
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '名称', align: 'left', width: 160 },
{ field: 'price', title: '奖惩金额', align: 'left', width: 100},
{ field: 'content', title: '奖惩内容', align: 'left', width: 160},
{ field: 'rewardPunishTypeName', title: '奖惩分类', align: 'left', width: 100 },
{ field: 'rewardPunishTime', title: '奖惩时间', align: 'center', width: 100},
{ field: 'awardUnit', title: '授予单位', align: 'left', width: 120},
{ field: 'desc', title: '备注', align: 'left', width: 160 },
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}
]]
});
}
initStaffContractTable();
// 初始化合同信息
function initStaffContractTable(){
table.render({
id: 'sysStaffContractTable',
elem: '#sysStaffContractTable',
method: 'post',
url: sysMainMation.ehrBasePath + 'sysstaffcontract006',
where: {staffId: staffId},
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'contractNumber', title: '合同编号', align: 'left', width: 160 },
{ field: 'companyName', title: '签属企业', width: 180},
{ field: 'startTime', title: '开始日期', align: 'center', width: 100},
{ field: 'endTime', title: '结束日期', align: 'center', width: 100},
{ field: 'typeName', title: '合同类别', width: 120},
{ field: 'moldName', title: '合同类型', width: 120},
{ field: 'contractState', title: '状态', align: 'left', width: 80, templet: function (d) {
if(d.contractState == '1'){
return "待签约";
} else if (d.contractState == '2'){
return "执行中";
} else if (d.contractState == '3'){
return "过期";
}
}},
{ field: 'jobNumber', title: '员工工号', align: 'left', width: 80 },
{ field: 'userName', title: '员工姓名', align: 'left', width: 100 },
{ field: 'state', title: '员工状态', align: 'center', width: 80, templet: function (d) {
if(d.state == '1'){
return "在职";
} else if (d.state == '2'){
return "离职";
} else if (d.state == '3'){
return "见习";
} else if (d.state == '4'){
return "试用";
} else if (d.state == '5'){
return "退休";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 100}
]]
});
}
$("body").on("click", "#userPhoto", function() {
systemCommonUtil.showPicImg($(this).attr("src"));
});
......
......@@ -169,48 +169,6 @@
{{userSign}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">家庭情况</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<table id="sysStaffFamilyTable" class="layui-table"></table>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">教育信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<table id="sysStaffEducationTable" class="layui-table"></table>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">工作履历</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<table id="sysStaffJobTable" class="layui-table"></table>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">语种能力</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<table id="sysStaffLanguageTable" class="layui-table"></table>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">证书信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<table id="sysStaffCertificateTable" class="layui-table"></table>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">奖惩信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<table id="sysStaffRewardTable" class="layui-table"></table>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">合同信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs12">
<table id="sysStaffContractTable" class="layui-table"></table>
</div>
{{/bean}}
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册