|
@@ -349,15 +349,13 @@ TalentInfo.batchCheck = function () {
|
|
|
title: '审核',
|
|
|
area: ['800px', '450px'], //宽高
|
|
|
fix: false, //不固定
|
|
|
- shade: 0,
|
|
|
maxmin: true,
|
|
|
content: TalentInfo.createFirstCheckModal(),
|
|
|
- zIndex: layer.zIndex,
|
|
|
btn: ['<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
btnAlign: 'c',
|
|
|
success: function (layero, index) {
|
|
|
- //$("#batchCheckModal").modal("hide");
|
|
|
- layer.setTop(layero);
|
|
|
+ $("#batchCheckModal").modal("hide");
|
|
|
+ //layer.setTop(layero);
|
|
|
var html1 = '';
|
|
|
if (typeof data.fieldList != "undefined" && data.fieldList.length > 0) {
|
|
|
for (var key in data.fieldList) {
|
|
@@ -369,6 +367,7 @@ TalentInfo.batchCheck = function () {
|
|
|
for (var key in data.fileList) {
|
|
|
html2 = html2 + '<ul><li style="width: 100%"><input type="checkbox" value="' + data.fileList[key].id + '"><span>' + data.fileList[key].name + '</span></li></ul>';
|
|
|
}
|
|
|
+ $("#batchcount").html(count + "人");
|
|
|
$("#checkMsg").text(data.checkMsg);
|
|
|
$("#firstBatchCheckForm #field_info ul").css("overflow", "hidden").html(html1);
|
|
|
$("#field_file").css("overflow", "hidden").empty().append(html2);
|
|
@@ -618,6 +617,11 @@ TalentInfo.setNotPass = function () {
|
|
|
|
|
|
TalentInfo.createFirstCheckModal = function () {
|
|
|
return '<form id="firstBatchCheckForm">\n' +
|
|
|
+ ' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
+ ' <label for="checkState" class="control-label">审核人数</label>\n' +
|
|
|
+ ' <div class="form-control" id="batchcount">\n' +
|
|
|
+ ' </div>\n' +
|
|
|
+ ' </div>\n' +
|
|
|
' <div class="form-group" style="margin: 10px;">\n' +
|
|
|
' <label for="checkState" class="control-label">审核状态</label>\n' +
|
|
|
' <select class="form-control" id="checkStateFirstModal" onchange="TalentInfo.toggleField()">\n' +
|
|
@@ -636,7 +640,7 @@ TalentInfo.createFirstCheckModal = function () {
|
|
|
' <ul style="overflow:hidden;list-style:none;"></ul>' +
|
|
|
' </div>' +
|
|
|
' </div>\n' +
|
|
|
- ' <div id="field" style="padding-top: 5px;display: none">\n' +
|
|
|
+ ' <div id="modify" style="padding-top: 5px;display: none">\n' +
|
|
|
' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
|
|
|
' <div id="field_info">\n' +
|
|
|
' <ul style="overflow:hidden;list-style:none;">\n' +
|
|
@@ -646,14 +650,23 @@ TalentInfo.createFirstCheckModal = function () {
|
|
|
' <div id="field_file">\n' +
|
|
|
' </div>\n' +
|
|
|
' <div class="form-group" style="text-align: center">\n' +
|
|
|
- ' <button type="button" class="btn btn-primary" onclick="TalentInfoInfoDlg.checkAll()">全选</button>\n' +
|
|
|
- ' <button type="button" class="btn btn-success" onclick="TalentInfoInfoDlg.unCheckAll()">反选</button>\n' +
|
|
|
+ ' <button type="button" class="btn btn-primary" onclick="TalentInfo.bcCheckAll(this)">全选</button>\n' +
|
|
|
+ ' <button type="button" class="btn btn-success" onclick="TalentInfo.bcUnCheckAll(this)">反选</button>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>\n' +
|
|
|
' </form>';
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+TalentInfo.bcCheckAll = function (context) {
|
|
|
+ $("#modify input[type=checkbox]").prop("checked", "checked");
|
|
|
+}
|
|
|
+TalentInfo.bcUnCheckAll = function (context) {
|
|
|
+ $("#modify input[type=checkbox]").removeAttr("checked");
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 显示字段或者隐藏字段选择
|
|
|
*/
|
|
@@ -662,11 +675,11 @@ TalentInfo.toggleField = function () {
|
|
|
var checkMsgFirst = $("#checkMsgFirst").val();
|
|
|
$("#company_list").hide();
|
|
|
if (checkState == 2 || checkState == 6) {
|
|
|
- $("#field").show();
|
|
|
+ $("#modify").show();
|
|
|
$("#checkMsgFirst").val("");
|
|
|
} else if (checkState == 3 || checkState == 4 || checkState == 5) {
|
|
|
- $("#field").hide();
|
|
|
- $("#field").find("input[type=checkbox]").removeAttr("checked");
|
|
|
+ $("#modify").hide();
|
|
|
+ $("#modify").find("input[type=checkbox]").removeAttr("checked");
|
|
|
if (checkMsgFirst == null || checkMsgFirst == '' || checkMsgFirst == "等待部门审核") {
|
|
|
$("#checkMsgFirst").val("审核通过");
|
|
|
}
|
|
@@ -674,7 +687,7 @@ TalentInfo.toggleField = function () {
|
|
|
$("#company_list").show();
|
|
|
}
|
|
|
} else if (checkState == -1) {
|
|
|
- $("#field").hide();
|
|
|
+ $("#modify").hide();
|
|
|
$("#checkMsgFirst").val("审核不通过");
|
|
|
}
|
|
|
}
|