提交 9c32f898 编写于 作者: doc_wei's avatar doc_wei

面试官安排管理重构完成

上级 efcce96a
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form', 'tagEditor'], function(exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
var interviewer = [];
showGrid({
id: "showForm",
url: flowableBasePath + "queryBossInterviewArrangementById",
params: {id: parent.rowId},
pagination: false,
method: "GET",
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb, json){
json.bean.basicResume = stringManipulation.textAreaShow(json.bean.basicResume);
json.bean.stateName = bossUtil.showStateName(json.bean.state);
},
ajaxSendAfter: function (json) {
skyeyeEnclosure.showDetails({'enclosureUpload': json.bean.enclosureInfo});
var userNames = [];
interviewer = [].concat(json.bean.interviewer);
$.each(interviewer, function(i, item) {
userNames.push(item.name);
});
$('#interviewer').tagEditor({
initialTags: userNames,
placeholder: '请选择面试官',
editorTag: false,
beforeTagDelete: function(field, editor, tags, val) {
interviewer = [].concat(arrayUtil.removeArrayPointName(interviewer, val));
}
});
matchingLanguage();
form.render();
// 提交
form.on('submit(formSubBean)', function(data) {
if(winui.verifyForm(data.elem)) {
var params = {
id: parent.rowId,
interviewer: interviewer[0].id
};
AjaxPostUtil.request({url: flowableBasePath + "setBossInterviewer", params: params, type: 'json', method: "PUT", callback: function(json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
}
});
// 面试官选择
$("body").on("click", ".interviewerBtn", function() {
systemCommonUtil.userReturnList = [].concat(interviewer);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 重置数据
interviewer = [].concat(systemCommonUtil.tagEditorResetData('interviewer', userReturnList));
});
});
});
\ No newline at end of file
var rowId = "";
// 获取我录入的人员需求关联的面试者信息列表
layui.config({
......@@ -16,7 +15,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'queryMyEntryBossPersonRequireAboutArrangementList',
url: sysMainMation.bossBasePath + 'queryMyEntryBossPersonRequireAboutArrangementList',
where: getTableParams(),
even: true,
page: true,
......@@ -24,20 +23,34 @@ layui.config({
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'interviewName', title: '面试者', width: 100},
{ field: 'departmentName', title: '面试部门', width: 140},
{ field: 'jobName', title: '面试岗位', width: 150 },
{ field: 'oddNumber', title: '单据编号', align: 'left', width: 200, templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.oddNumber + '</a>';
}},
{ field: 'interviewMation', title: '面试者', width: 100, templet: function (d) {
return d.interviewMation.name;
}},
{ field: 'recruitDepartmentMation', title: '面试部门', width: 140, templet: function (d) {
return isNull(d.personRequireMation) ? '' : d.personRequireMation.recruitDepartmentMation.name;
}},
{ field: 'recruitJobMation', title: '面试岗位', width: 150, templet: function (d) {
return isNull(d.personRequireMation) ? '' : d.personRequireMation.recruitJobMation.name;
}},
{ field: 'interviewTime', title: '面试时间', width: 140, align: 'center' },
{ field: 'interviewer', title: '面试官', width: 140 },
{ field: 'interviewer', title: '面试官', width: 120, templet: function (d) {
return isNull(d.interviewerMation) ? '' : d.interviewerMation.name;
}},
{ field: 'state', title: '面试状态', width: 160, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("bossInterviewArrangementState", 'id', d.state, 'name');
}},
{ field: 'state', title: '面试状态', width: 160, templet: function (d) {
return bossUtil.showStateName(d.state);
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.entryTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#messageTableBar'}
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 120, toolbar: '#messageTableBar'}
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入面试者", function () {
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入单据编号", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
......@@ -55,9 +68,8 @@ layui.config({
// 安排面试官
function arrangeInterviewer(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewArrangement/arrangeInterviewer.html",
url: systemCommonUtil.getUrl('FP2023061300001&id=' + data.id, null),
title: '安排面试官',
pageId: "arrangeInterviewer",
area: ['90vw', '90vh'],
......@@ -70,9 +82,8 @@ layui.config({
// 详情
function details(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewArrangement/bossInterviewArrangementDetails.html",
url: systemCommonUtil.getUrl('FP2023060400004&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "bossInterviewArrangementDetails",
area: ['90vw', '90vh'],
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">面试者信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">面试者</label>
<div class="layui-input-block ver-center">
{{interviewName}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">面试时间</label>
<div class="layui-input-block ver-center">
{{interviewTime}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">联系方式</label>
<div class="layui-input-block ver-center">
{{phone}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">工作年限</label>
<div class="layui-input-block ver-center">
{{workYears}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">心仪岗位</label>
<div class="layui-input-block ver-center">
{{favoriteJob}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">基本简历</label>
<div class="layui-input-block ver-center">
{{{basicResume}}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">附件资料</label>
<div class="layui-input-block ver-center" id="enclosureUpload">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">人员需求信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">需求部门</label>
<div class="layui-input-block ver-center">
{{departmentName}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">需求岗位</label>
<div class="layui-input-block ver-center">
{{jobName}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">面试信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">面试官<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="interviewer" name="interviewer" win-verify="required" placeholder="请选择面试官" class="layui-input" readonly="readonly"/>
<i class="fa fa-plus-circle input-icon interviewerBtn" style="top: 8px;"></i>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formSubBean">提交</button>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/bossInterviewArrangement/'}).use('arrangeInterviewer');
</script>
</body>
</html>
\ No newline at end of file
......@@ -18,7 +18,6 @@
{{# if((d.state == '2' || d.state == '3') && auth('1649993901134')){ }}
<a class="layui-btn layui-btn-xs" lay-event="arrangeInterviewer">安排面试官</a>
{{# } }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="details">详情</a>
</script>
</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册