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.

268 lines
9.4 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/layui/css/layui.css" media="all">
<!-- 让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;
}
</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 " id="div3">
<label for="" class="layui-form-label" style="padding:9px 0;text-align: left;">
年份
</label>
<div class="layui-input-inline" id="select_3" style="width: 188px"></div>
<script type="text/html" id="test3">
<select name="service_type" id="sel3" onchange="changeYear()">
<% for (var i = 0; i < data.length; i ++) { %>
<option value="<%=data[i].batch_year%>"><%=data[i].batch_year%></option>
<% } %>
</select>
</script>
</div>
<div class="layui-form-item inline " id="div5">
<label for="" class="layui-form-label" style="padding:9px 0;text-align: left;">
招生批次
</label>
<div class="layui-input-inline" id="select_5" style="width: 188px"></div>
<script type="text/html" id="test5">
<select name="service_type" id="sel5" onchange="changeBatch()">
<% for (var i = 0; i < data.length; i ++) { %>
<option value="<%=data[i].batch_id%>"><%=data[i].batch_name%></option>
<% } %>
</select>
</script>
</div>
</td>
</tr>
</table>
<div class="layui-form">
<table class="layui-table">
<colgroup>
<col width="10%">
<col width="70%">
<col width="10%">
<col>
</colgroup>
<thead>
<tr>
<th>序号</th>
<th>项目描述</th>
<th>异常个数</th>
<th>结果</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>志愿与成绩表中姓名不一样。</td>
<td id="t_4">0</td>
<td><a href="#"><i class="layui-icon layui-icon-rate-solid" style="font-size: 30px;" id="i_4"></i></a></td>
</tr>
<tr>
<td>2</td>
<td>有志愿,没有成绩。</td>
<td id="t_5">0</td>
<td><a href="#"><i class="layui-icon layui-icon-rate-solid" style="font-size: 30px; " id="i_5"></i></a></td>
</tr>
</tbody>
</table>
</div>
</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;
// 获取年份
window.getYearList = function () {
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/zhaosheng/getYearListHavingBatch?type_id=4",
success: function (data) {
var html = template.render('test3', data);
document.getElementById('select_3').innerHTML = html;
}
})
}
getYearList();
//绑定批次
window.bindBatch = function () {
var batch_year = $("#sel3").val();
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/zhaosheng/getBatchTable?year=" + batch_year+"&zhaosheng_type="+GetQueryString("zhaosheng_type"),
success: function (data) {
var html = template.render('test5', data);
document.getElementById('select_5').innerHTML = html;
}
})
};
bindBatch();
//改变年份
window.changeYear=function()
{
bindBatch();
bindTable();
};
//改变批次
window.changeBatch=function()
{
bindTable();
};
//************************************************************
//定义绑定事件
$("#i_1").bind("click",function(){
var count = parseInt($("#t_1").text());
if(count>0)
{
var batch_id=$("#sel5").val();
window.location.href = "/baseService/zhaosheng/notBaoZhiYuanExcel?batch_id="+batch_id;
}
});
//************************************************************
//4、志愿表姓名与成绩姓名不一致
window.getType_4=function()
{
var batch_id=$("#sel5").val();
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/zhaosheng/PersonNameNotEqual?batch_id="+batch_id,
success: function (data) {
if(data.data.length>0){
$("#i_4").css('color','#FF5722');
$("#t_4").text(data.data.length);
}
else {
$("#i_4").css('color','#5FB878');
$("#t_4").text(0);
}
}
})
};
//定义绑定事件
$("#i_4").bind("click",function(){
var count = parseInt($("#t_4").text());
if(count>0)
{
var batch_id=$("#sel5").val();
window.location.href = "/baseService/zhaosheng/PersonNameNotEqualExcel?batch_id="+batch_id;
}
});
//************************************************************
//5、有志愿没有成绩
window.getType_5=function()
{
var batch_id=$("#sel5").val();
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/zhaosheng/notChengJi?batch_id="+batch_id,
success: function (data) {
if(data.data.length>0){
$("#i_5").css('color','#FF5722');
$("#t_5").text(data.data.length);
}
else {
$("#i_5").css('color','#5FB878');
$("#t_5").text(0);
}
}
})
};
//定义绑定事件
$("#i_5").bind("click",function(){
var count = parseInt($("#t_5").text());
if(count>0)
{
var batch_id=$("#sel5").val();
window.location.href = "/baseService/zhaosheng/notChengJiExcel?batch_id="+batch_id;
}
});
//************************************************************
bindTable();
})
/**
* 功能:绑定表格
*/
function bindTable()
{
//加载
getType_4();
//加载
getType_5();
}
</script>
</body>
</html>