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

面试者管理托管到表单布局

上级 54def1f0
......@@ -105,7 +105,11 @@ layui.config({
initTableChooseUtil.resetData('pageParams', params);
});
}
dsFormColumnUtil.init({
id: 'attrSymbolsDesignBox',
title: '按钮显示条件',
className: parent.objectId
}, isNull(json.bean.showConditionList) ? [] : json.bean.showConditionList);
}, async: false});
} else {
dsFormColumnUtil.init({
......@@ -182,6 +186,7 @@ layui.config({
authPointNum: $("#authPointNum").val(),
eventType: $("#eventType").val(),
orderBy: $("#orderBy").val(),
showConditionList: JSON.stringify(dsFormColumnUtil.tableDataList),
id: isNull(parent.rowId) ? '' : parent.rowId
};
......
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'textool', 'tagEditor', 'form'], function (exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
textool = layui.textool,
form = layui.form;
textool.init({eleId: 'basicResume', maxlength: 1000});
skyeyeEnclosure.init('enclosureUpload');
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
name: $("#name").val(),
sex: $("input[name='userSex']:checked").val(),
idcard: $("#idcard").val(),
phone: $("#phone").val(),
fromId: bossUtil.bossIntervieweeFromChooseMation.id,
favoriteJob: $("#favoriteJob").val(),
basicResume: $("#basicResume").val(),
workYears: $("#workYears").val(),
chargePersonId: chargePerson[0].id,
enclosureResume: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload')
};
AjaxPostUtil.request({url: flowableBasePath + "bossInterviewee002", params: params, type: 'json', method: "POST", callback: function(json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
var chargePerson = [];
$('#chargePersonId').tagEditor({
initialTags: [],
placeholder: '请选择负责人',
editorTag: false,
beforeTagDelete: function(field, editor, tags, val) {
chargePerson = [].concat(arrayUtil.removeArrayPointName(chargePerson, val));
}
});
// 人员选择
$("body").on("click", "#toHandsPersonSelPeople", function (e) {
systemCommonUtil.userReturnList = [].concat(chargePerson);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 重置数据
chargePerson = [].concat(systemCommonUtil.tagEditorResetData('chargePersonId', userReturnList));
});
});
// 选择来源
$("body").on("click", "#toChooseFromId", function (e) {
var _this = $(this);
bossUtil.openBossIntervieweeFromChoosePage(function (bossIntervieweeFromMation){
_this.parent().find("input").val(bossIntervieweeFromMation.title);
});
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
showGrid({
id: "showForm",
url: flowableBasePath + "bossInterviewee004",
params: {id: parent.rowId},
pagination: false,
method: "GET",
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb, json){
json.bean.basicResume = stringManipulation.textAreaShow(json.bean.basicResume);
},
ajaxSendAfter: function (json) {
$("#chargePerson").html(json.bean.chargePerson[0].name);
skyeyeEnclosure.showDetails({"enclosureUpload": json.bean.enclosureInfo});
matchingLanguage();
form.render();
}
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'textool', 'tagEditor', 'form'], function (exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
textool = layui.textool,
form = layui.form;
var chargePerson = [];
showGrid({
id: "showForm",
url: flowableBasePath + "bossInterviewee004",
params: {id: parent.rowId},
pagination: false,
method: "GET",
template: $("#beanTemplate").html(),
ajaxSendAfter: function (json) {
$("input:radio[name=userSex][value=" + json.bean.sex + "]").attr("checked", true);
bossUtil.bossIntervieweeFromChooseMation = {
id: json.bean.fromId,
title: json.bean.fromName
};
var userNames = [];
chargePerson = [].concat(json.bean.chargePerson);
$.each(chargePerson, function(i, item) {
userNames.push(item.name);
});
$('#chargePersonId').tagEditor({
initialTags: userNames,
placeholder: '请选择负责人',
editorTag: false,
beforeTagDelete: function(field, editor, tags, val) {
chargePerson = [].concat(arrayUtil.removeArrayPointName(chargePerson, val));
}
});
textool.init({eleId: 'basicResume', maxlength: 1000});
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
matchingLanguage();
form.render();
form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
name: $("#name").val(),
sex: $("input[name='userSex']:checked").val(),
idcard: $("#idcard").val(),
phone: $("#phone").val(),
fromId: bossUtil.bossIntervieweeFromChooseMation.id,
favoriteJob: $("#favoriteJob").val(),
basicResume: $("#basicResume").val(),
workYears: $("#workYears").val(),
chargePersonId: chargePerson[0].id,
enclosureResume: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload'),
id: parent.rowId
};
AjaxPostUtil.request({url: flowableBasePath + "bossInterviewee005", params: params, type: 'json', method: "PUT", callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
}
});
// 人员选择
$("body").on("click", "#toHandsPersonSelPeople", function (e) {
systemCommonUtil.userReturnList = [].concat(chargePerson);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 重置数据
chargePerson = [].concat(systemCommonUtil.tagEditorResetData('chargePersonId', userReturnList));
});
});
// 选择来源
$("body").on("click", "#toChooseFromId", function (e) {
var _this = $(this);
bossUtil.openBossIntervieweeFromChoosePage(function (bossIntervieweeFromMation){
_this.parent().find("input").val(bossIntervieweeFromMation.title);
});
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
\ No newline at end of file
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'bossInterviewee001',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '姓名', align: 'left', width: 100, templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.name + '</a>';
}},
{ field: 'phone', title: '联系方式', align: 'left', width: 120 },
{ field: 'fromName', title: '来源', align: 'left', width: 120 },
{ field: 'workYears', title: '工作年限', align: 'left', width: 100 },
{ field: 'favoriteJob', title: '心仪岗位', align: 'left', width: 130 },
{ field: 'stateName', title: '状态', align: 'left', width: 80 },
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'edit') { //编辑
edit(data);
} else if (layEvent === 'delet') { //删除
delet(data);
} else if (layEvent === 'details') { //详情
details(data);
}
});
// 删除
function delet(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "bossInterviewee003", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
}
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewee/bossIntervieweeEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "bossIntervieweeEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}
});
}
// 详情
function details(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewee/bossIntervieweeDetails.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "bossIntervieweeDetails",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
}
});
}
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
}
return false;
});
// 刷新数据
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function getTableParams() {
return {
name: $("#name").val(),
phone: $("#phone").val(),
type: 2
};
}
exports('myChargeBossIntervieweeList', {});
});
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
authBtn('1637677810338');
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'bossInterviewee001',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '姓名', align: 'left', width: 100, templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.name + '</a>';
}},
{ field: 'phone', title: '联系方式', align: 'left', width: 120 },
{ field: 'fromName', title: '来源', align: 'left', width: 120 },
{ field: 'workYears', title: '工作年限', align: 'left', width: 100 },
{ field: 'favoriteJob', title: '心仪岗位', align: 'left', width: 130 },
{ field: 'stateName', title: '状态', align: 'left', width: 80 },
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'edit') { //编辑
edit(data);
} else if (layEvent === 'delet') { //删除
delet(data);
} else if (layEvent === 'details') { //详情
details(data);
}
});
// 添加
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/bossInterviewee/bossIntervieweeAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "bossIntervieweeAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
// 删除
function delet(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "bossInterviewee003", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
}
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewee/bossIntervieweeEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "bossIntervieweeEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}
});
}
// 详情
function details(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/bossInterviewee/bossIntervieweeDetails.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "bossIntervieweeDetails",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
}
});
}
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
}
return false;
});
// 刷新数据
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function getTableParams() {
return {
name: $("#name").val(),
phone: $("#phone").val(),
type: 1
};
}
exports('myEnterBossIntervieweeList', {});
});
<!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">
<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="name" name="name" win-verify="required" placeholder="请输入姓名" class="layui-input" maxlength="60"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">性别<i class="red">*</i></label>
<div class="layui-input-block winui-radio">
<input type="radio" name="userSex" value="0" title="保密" checked="checked"/>
<input type="radio" name="userSex" value="1" title="男" />
<input type="radio" name="userSex" value="2" title="女" />
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">身份证</label>
<div class="layui-input-block">
<input type="text" id="idcard" name="idcard" win-verify="identity" placeholder="请输入身份证" class="layui-input" maxlength="18"/>
</div>
</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="phone" name="phone" win-verify="required|phone" placeholder="请输入联系方式" class="layui-input"/>
</div>
</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="fromId" name="fromId" win-verify="required" placeholder="请选择来源" class="layui-input" style="padding-right: 30px;" disabled/>
<i class="fa fa-user-plus input-icon" id="toChooseFromId"></i>
</div>
</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="workYears" name="workYears" win-verify="required" placeholder="请输入工作年限" class="layui-input"/>
</div>
</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="chargePersonId" name="chargePersonId" win-verify="required" placeholder="请选择负责人" class="layui-input" style="padding-right: 30px;"/>
<i class="fa fa-user-plus input-icon" id="toHandsPersonSelPeople"></i>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">心仪岗位<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="favoriteJob" name="favoriteJob" win-verify="required" placeholder="请输入心仪岗位" class="layui-input"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">基本简历<i class="red">*</i></label>
<div class="layui-input-block">
<textarea id="basicResume" name="basicResume" class="layui-textarea" win-verify="required" style="height: 100px;"></textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">附件资料</label>
<div class="layui-input-block" id="enclosureUpload">
</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="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/bossInterviewee/'}).use('bossIntervieweeAdd');
</script>
</body>
</html>
\ No newline at end of file
<!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-xs6">
<label class="layui-form-label">姓名</label>
<div class="layui-input-block ver-center">
{{name}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">性别</label>
<div class="layui-input-block ver-center">
{{sexName}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">身份证</label>
<div class="layui-input-block ver-center">
{{idcard}}
</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">
{{fromName}}
</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-xs6">
<label class="layui-form-label">负责人</label>
<div class="layui-input-block ver-center" id="chargePerson">
</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>
{{/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/bossInterviewee/'}).use('bossIntervieweeDetails');
</script>
</body>
</html>
\ No newline at end of file
<!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-xs6">
<label class="layui-form-label">姓名<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="name" name="name" win-verify="required" placeholder="请输入姓名" class="layui-input" maxlength="60" value="{{name}}"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">性别<i class="red">*</i></label>
<div class="layui-input-block winui-radio">
<input type="radio" name="userSex" value="0" title="保密" />
<input type="radio" name="userSex" value="1" title="" />
<input type="radio" name="userSex" value="2" title="" />
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">身份证</label>
<div class="layui-input-block">
<input type="text" id="idcard" name="idcard" win-verify="identity" placeholder="请输入身份证" class="layui-input" maxlength="18" value="{{idcard}}"/>
</div>
</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="phone" name="phone" win-verify="required|phone" placeholder="请输入联系方式" class="layui-input" value="{{phone}}"/>
</div>
</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="fromId" name="fromId" win-verify="required" placeholder="请选择来源" class="layui-input" style="padding-right: 30px;" disabled value="{{fromName}}"/>
<i class="fa fa-user-plus input-icon" id="toChooseFromId"></i>
</div>
</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="workYears" name="workYears" win-verify="required" placeholder="请输入工作年限" class="layui-input" value="{{workYears}}"/>
</div>
</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="chargePersonId" name="chargePersonId" win-verify="required" placeholder="请选择负责人" class="layui-input" style="padding-right: 30px;"/>
<i class="fa fa-user-plus input-icon" id="toHandsPersonSelPeople"></i>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">心仪岗位<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="favoriteJob" name="favoriteJob" win-verify="required" placeholder="请输入心仪岗位" class="layui-input" value="{{favoriteJob}}"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">基本简历<i class="red">*</i></label>
<div class="layui-input-block">
<textarea id="basicResume" name="basicResume" class="layui-textarea" win-verify="required" style="height: 100px;">{{basicResume}}</textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">附件资料</label>
<div class="layui-input-block" id="enclosureUpload">
</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="formEditBean"><language showName="com.skyeye.save"></language></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/bossInterviewee/'}).use('bossIntervieweeEdit');
</script>
</body>
</html>
\ No newline at end of file
<!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 class="txtcenter" style="margin:0 auto;padding-top:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">姓名</label>
<div class="layui-input-inline">
<input type="text" id="name" name="name" placeholder="请输入姓名" class="layui-input" />
</div>
<label class="layui-form-label">联系方式</label>
<div class="layui-input-inline">
<input type="text" id="phone" name="phone" placeholder="请输入联系方式" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1642838177779') && d.state != 2){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1642838160216') && d.state != 2){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delet"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/bossInterviewee/'}).use('myChargeBossIntervieweeList');
</script>
</body>
</html>
\ No newline at end of file
<!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 class="txtcenter" style="margin:0 auto;padding-top:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">姓名</label>
<div class="layui-input-inline">
<input type="text" id="name" name="name" placeholder="请输入姓名" class="layui-input" />
</div>
<label class="layui-form-label">联系方式</label>
<div class="layui-input-inline">
<input type="text" id="phone" name="phone" placeholder="请输入联系方式" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1637677810338"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1637677825950') && d.state != 2){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1637677817862') && d.state != 2){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delet"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/bossInterviewee/'}).use('myEnterBossIntervieweeList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -2,25 +2,6 @@
// 招聘模块工具函数
var bossUtil = {
/**
* 打开面试者来源选择页面
*
* @param callback 回调函数
*/
bossIntervieweeFromChooseMation: {}, // 已经选择的面试者来源信息
openBossIntervieweeFromChoosePage: function (callback) {
_openNewWindows({
url: "../../tpl/bossIntervieweeFrom/bossIntervieweeFromListChoose.html",
title: "面试者来源",
pageId: "bossIntervieweeFromListChoosePage",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
if(typeof(callback) == "function") {
callback(bossUtil.bossIntervieweeFromChooseMation);
}
}});
},
/**
* 面试安排的状态
*
......
......@@ -798,7 +798,7 @@ var dsFormTableUtil = {
$(`#${item.position}`).append(`<button id="${item.id}" class="winui-toolbtn search-table-btn-right item-click"><i class="fa fa-plus" aria-hidden="true"></i>${item.name}</button>`);
} else if (item.position == 'actionBar') {
// 操作栏
$(`#${item.position}`).append(`<a class="layui-btn layui-btn-xs ${item.color}" lay-event="${item.id}">${item.name}</a>`);
$(`#${item.position}`).append(dsFormTableUtil.initActionBarOperate(item));
} else if (item.position == 'rightMenuBar') {
// 右键菜单栏
......@@ -807,6 +807,20 @@ var dsFormTableUtil = {
});
},
initActionBarOperate: function (item) {
if (isNull(item.showConditionList) || item.showConditionList.length == 0) {
// 没有设置按钮显示的条件
return `<a class="layui-btn layui-btn-xs ${item.color}" lay-event="${item.id}">${item.name}</a>`;
}
var condition = [];
$.each(item.showConditionList, function (i, bean) {
condition.push(`d.${bean.attrKey} ${bean.symbolsMark} ${bean.value}`);
});
var conditionStr = condition.join('&&');
// 没有设置按钮显示的条件
return `{{# if (${conditionStr}) { }}<a class="layui-btn layui-btn-xs ${item.color}" lay-event="${item.id}">${item.name}</a>{{# } }}`;
},
getTableHead: function (column, tableColumnList) {
var header = [];
if (!isNull(column.serialNumColumn) && column.serialNumColumn) {
......@@ -962,12 +976,16 @@ var dsFormColumnUtil = {
// layui的表格对象
table: null,
init: function (config) {
init: function (config, tableDataList) {
// 设置配置信息
dsFormColumnUtil.config = config;
dsFormColumnUtil.tableDataList = isNull(tableDataList) ? [] : tableDataList;
$.each(dsFormColumnUtil.tableDataList, function (i, item) {
item.id = dsFormColumnUtil.rowNum;
dsFormColumnUtil.rowNum++;
});
// 获取属性列表/属性与值的对比符号信息
dsFormColumnUtil.getDataList();
console.log(dsFormColumnUtil.config.attrList)
// 加载盒子
dsFormColumnUtil.initHtml();
// 加载表格
......@@ -1060,7 +1078,7 @@ var dsFormColumnUtil = {
_html += `</select>`;
return _html;
}},
{ field: 'symbols', title: '比较符号<i class="red">*</i>', align: 'left', width: 120, templet: function (d) {
{ field: 'symbols', title: '比较符号<i class="red">*</i>', align: 'left', width: 140, templet: function (d) {
var _html = `<select lay-filter="tableSelect" lay-search="" id="symbols${d.id}" cus-id="${d.id}" win-verify="required"><option value="">请选择</option>`;
$.each(dsFormColumnUtil.config.attrSymbols, function (i, item) {
if (item.id == d.symbols) {
......@@ -1072,7 +1090,7 @@ var dsFormColumnUtil = {
_html += `</select>`;
return _html;
}},
{ field: 'value', title: '值<i class="red">*</i>', align: 'left', width: 150, templet: function (d) {
{ field: 'value', title: '值<i class="red">*</i>', align: 'left', width: 160, templet: function (d) {
return `<div id="valueBox${d.id}">` + dsFormColumnUtil.getDomHtml(d) + `</div>`;
}},
]],
......@@ -1104,9 +1122,10 @@ var dsFormColumnUtil = {
}
// 获取属性信息
var attrKey = $(`#attrKey${d.id}`).val();
if (isNull(attrKey)) {
if (isNull(attrKey) && isNull(d.attrKey)) {
return '';
}
attrKey = isNull(attrKey) ? d.attrKey : attrKey;
var displayValue = d.displayValue;
var value = d.value;
// 获取属性对应的组件编码---todo 后续根据编号加载对应的dom
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册