You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
8.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>志愿管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="../../static/css/font.css">
<link rel="stylesheet" href="../../static/css/weadmin.css">
<link rel="stylesheet" href="../../lib/ztree/zTreeStyle.css">
<!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
select {
width: 180px;
height: 38px;
line-height: 38px;
border: 1px solid #ccc;
border-radius: 3px;
font-size: 15px;
padding-left: 6px;
color: #666;
}
.inline {
display: inline-block;
vertical-align: top;
}
.disabled {
pointer-events: none;
border: 1px solid #e6e6e6;
background: #FBFBFB;
color: #C9C9C9;
cursor: not-allowed;
opacity: 1;
}
#searchTxt {
width: 164px;
border: 1px solid #dedede;
border-radius: 3px;
height: 37px;
padding-left: 13px;
vertical-align: top;
}
#search {
border: none;
margin-left: 12px;
}
#iconDel {
position: absolute;
right: 92px;
top: 10px;
display: none;
}
.aaa {
background-color: #FBFBFB;
border: 1px solid #e6e6e6;
color: #C9C9C9;
cursor: not-allowed;
opacity: 1;
}
</style>
</head>
<body>
<div class="weadmin-nav">
<span class="layui-breadcrumb" id="super">
<a href="">首页</a>
<a href="">高职扩招</a>
<a><cite>报考志愿查询</cite></a>
</span>
<a class="layui-btn layui-btn-sm" style="line-height:1.6em;margin-top:3px;float:right"
href="javascript:location.reload();" title="刷新">
<i class="layui-icon layui-icon-refresh-3" style="line-height:30px"></i></a>
</div>
<div class="weadmin-body">
<table border=0 align=left width="100%">
<tr>
<td align=left valign=top style="padding-left:10px">
<div class="layui-form-item inline" style="float:right">
<span id="importAcc">
<div class="layui-btn" type="button" onclick="exportZhiYuanExcel();">
<span class="layui-icon layui-icon-shrink-right"></span>导出志愿excel
</div>
</span>
</div>
<div class="layui-form-item">
<table class="layui-table" lay-filter="idTest" id="idTest"></table>
</div>
</td>
</tr>
</table>
</div>
<script src="../../lib/layui/layui.js"></script>
<script src="../../lib/template.js"></script>
<script src="../../lib/base64.js"></script>
<script>
window.GetQueryString = function (name, istop) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
};
layui.extend({
admin: '{/}../../static/js/admin'
});
layui.use(['form', 'jquery', 'admin', 'table'], function () {
var form = layui.form,
$ = layui.jquery,
admin = layui.admin,
table = layui.table;
var batch_id = 0;
//绑定批次
window.getCurrentBatchByTypeId = function () {
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/zhaosheng/getCurrentBatchByTypeId?type_id=" + GetQueryString("type_id"),
success: function (data) {
if (data.success) {
batch_id = data.record.batch_id;
} else {
layer.msg("本类型招生还没有正确设置当前批次,请配置后继续!", {
icon: 1,
time: 1000,
shade: [0.5, '#000', true]
}, function () {
return;
});
}
}
})
};
getCurrentBatchByTypeId();
//导出excel
window.exportZhiYuanExcel = function () {
window.location.href = "/baseService/zhaosheng/exportZhiYuanExcel?batch_id=" + batch_id;
};
// 根据志愿学生名单
window.getZhiYuanTable = function () {
table.render({
elem: '#idTest'
,
url: '/baseService/zhaosheng/getZhiYuanTable?batch_id=' + batch_id,
cols: [[
{field: 'id', title: '序号', align: 'center', type: 'numbers', width: 40}
, {field: 'person_type_name', title: '考生类型', align: 'center', width: 150}
, {
field: 'student_name', title: '姓名', align: 'center',
templet: function (d) {
var str = '<div><a href="#" class="layui-table-link" onclick="showStudentPdf(\'' + d.identity_num + '\')">' + d.student_name + '</a></div>';
return str;
}
} //这里的templet值是模板元素的选择器
, {field: 'identity_num', title: '身份证号', align: 'center', width: 190}
, {field: 'kaohao', title: '考号', align: 'center'}
, {field: 'mihao', title: '密号', align: 'center'}
, {field: 'zhuanye_jihua_code_I_name', title: '第一志愿', align: 'center'}
, {field: 'zhuanye_jihua_code_II_name', title: '第二志愿', align: 'center'}
, {field: 'imgExist', title: '照片已上传', align: 'center'}
]]
,
page: true
,
height: 'full'
,
done: function () {
$("[data-field='imgExist']").children().each(function () {
if ($(this).text() == '1') {
$(this).css("background", "#5FB878")
$(this).text("是")
} else if ($(this).text() == '0') {
$(this).css("background", "#FF5722")
$(this).text("否")
}
});
}
});
};
//绑定志愿表
getZhiYuanTable();
//导入图片ZIP压缩包
window.importImageZip = function () {
var batch_id = $("#sel5").val();
WeAdminShow('导入学生照片压缩ZIP包', './importZhiYuanPhoto.html?batch_id=' + batch_id, 600, 300);
}
//显示考生的信息
window.showStudentPdf = function (identity_num) {
var url = "/baseService/zhaosheng/showStudentPdf";
var postdata = {"identity_num": identity_num, "batch_id": batch_id};
layer.load(); //上传loading
$.ajax({
type: "POST",
async: false,
dataType: "json",
data: postdata,
url: url,
success: function (data2) {
if (data2.success) {
WeAdminShow('考生信息', "../../lib/pdfjs/web/viewer.html?file=/baseService/html/pages/zhaosheng/PersonInfoPdf/" + data2.file, 720, window.innerHeight-50);
layer.closeAll('loading'); //关闭loading
} else {
alert(data2.message);
}
}
});
};
})
</script>
</body>
</html>