|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<title>学信网与招生信息比对</title>
|
|
|
<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">
|
|
|
<script src="../../lib/jquery-1.12.4.min.js"></script>
|
|
|
<script src="../../lib/ztree/jquery.ztree.core-3.5.min.js"></script>
|
|
|
<!-- 让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;
|
|
|
}
|
|
|
|
|
|
ul.log li {
|
|
|
color: #666666;
|
|
|
list-style: none;
|
|
|
padding-left: 10px;
|
|
|
}
|
|
|
ul.log li.dark {
|
|
|
background-color: #E3E3E3;
|
|
|
}
|
|
|
.layui-table, .layui-table-view {
|
|
|
margin-top: -10px;
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="weadmin-nav">
|
|
|
<!--<span class="layui-breadcrumb">
|
|
|
<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">
|
|
|
<div class="layui-form-item inline " id="div1">
|
|
|
<label for="" class="layui-form-label" style="width:70px;padding:9px 0;text-align: left;">入学年份</label>
|
|
|
<div class="layui-input-inline" id="select_1" style="width:100px;"></div>
|
|
|
<script type="text/html" id="test1">
|
|
|
<select name="service_type" id="sel1" style="width:100px;" lay-filter="top1" onchange="changeSelect(1)">
|
|
|
<% 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="div2">
|
|
|
<label for="" class="layui-form-label" style="width:70px;padding:9px 0;text-align: left;">学生类别</label>
|
|
|
<div class="layui-input-inline" id="select_2" style="width:130px;"></div>
|
|
|
<script type="text/html" id="test2">
|
|
|
<select name="service_type" id="sel2" style="width:130px;" onchange="changeSelect(2)">
|
|
|
<option value="">----所有----</option>
|
|
|
<% for (var i = 0; i < data.length; i ++) { %>
|
|
|
<option value="<%=data[i].person_type_id%>"><%=data[i].person_type_name%></option>
|
|
|
<% } %>
|
|
|
</select>
|
|
|
</script>
|
|
|
</div>
|
|
|
<div class="layui-form-item inline " id="div3">
|
|
|
<label for="" class="layui-form-label" style="width:40px;padding:9px 0;text-align: left;">专业</label>
|
|
|
<div class="layui-input-inline" id="select_3" style="width:100px;"></div>
|
|
|
<script type="text/html" id="test3">
|
|
|
<select name="service_type" id="sel3" style="width:100px;" onchange="changeSelect(3)">
|
|
|
<option value="">----所有----</option>
|
|
|
<% for (var i = 0; i < data.length; i ++) { %>
|
|
|
<option value="<%=data[i].zhuanye_code%>"><%=data[i].zhuanye_name%></option>
|
|
|
<% } %>
|
|
|
</select>
|
|
|
</script>
|
|
|
</div>
|
|
|
<div class="layui-form-item inline " id="div4">
|
|
|
<label for="" class="layui-form-label" style="width:40px;padding:9px 0;text-align: left;">班级</label>
|
|
|
<div class="layui-input-inline" id="select_4" style="width:250px;"></div>
|
|
|
<script type="text/html" id="test4">
|
|
|
<select name="service_type" id="sel4" style="width:250px;" onchange="changeSelect(4)">
|
|
|
<option value="">----所有----</option>
|
|
|
<% for (var i = 0; i < data.length; i ++) { %>
|
|
|
<option value="<%=data[i].class_id%>"><%=data[i].class_name%></option>
|
|
|
<% } %>
|
|
|
</select>
|
|
|
</script>
|
|
|
</div>
|
|
|
|
|
|
<span id="importAcc" style="float:right">
|
|
|
<div class="layui-btn layui-btn-primary" type="button" id="setViewColumns"
|
|
|
onclick="setViewColumns();">
|
|
|
<span class="layui-icon layui-icon-shrink-right"></span>设置显示
|
|
|
</div>
|
|
|
<div class="layui-btn layui-btn-normal" type="button" id="autoButton" onclick="exportShowExcel();">
|
|
|
<span class="layui-icon layui-icon-shrink-right"></span>查询记录导出
|
|
|
</div>
|
|
|
</span>
|
|
|
<div class="layui-form-item">
|
|
|
<table class="layui-table" lay-filter="tableNewStudentList" id="tableNewStudentList"></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) {
|
|
|
const 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;
|
|
|
};
|
|
|
//获取cookie
|
|
|
function getCookie(name) {
|
|
|
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
|
|
|
if (arr = document.cookie.match(reg))
|
|
|
return unescape(arr[2]);
|
|
|
else
|
|
|
return null;
|
|
|
}
|
|
|
layui.extend({
|
|
|
admin: '{/}../../static/js/admin'
|
|
|
});
|
|
|
layui.use(['form', 'jquery', 'laytpl', 'admin', 'layer', 'table'], function () {
|
|
|
var form = layui.form,
|
|
|
$ = layui.jquery,
|
|
|
admin = layui.admin,
|
|
|
layer = layui.layer,
|
|
|
table = layui.table,
|
|
|
laytpl = layui.laytpl;
|
|
|
var current_batch_year = null;
|
|
|
var current_person_type_id = null;
|
|
|
var current_zydm = null;
|
|
|
var current_class = null;
|
|
|
// 获取年份
|
|
|
window.getYearList = function () {
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/common_getYearList?type=4",
|
|
|
success: function (data) {
|
|
|
var html = template.render('test1', data);
|
|
|
document.getElementById('select_1').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
getYearList();
|
|
|
//绑定学生类别
|
|
|
window.getZhaoShengType = function () {
|
|
|
var batch_year=$("#sel1").val();
|
|
|
var person_type_id="";
|
|
|
if (current_batch_year != null) {
|
|
|
batch_year = current_batch_year;
|
|
|
}
|
|
|
if (current_person_type_id != null) {
|
|
|
person_type_id = current_person_type_id;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/common_getPersonTypeByYear?batch_year="+batch_year+"&person_type_id="+person_type_id,
|
|
|
success: function (data) {
|
|
|
var html = template.render('test2', data);
|
|
|
document.getElementById('select_2').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
getZhaoShengType();
|
|
|
window.bindZhuanYe = function () {
|
|
|
var batch_year=$("#sel1").val();
|
|
|
var zydm="";
|
|
|
if (current_batch_year != null) {
|
|
|
batch_year = current_batch_year;
|
|
|
}
|
|
|
if (current_zydm != null) {
|
|
|
zydm = current_zydm;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/school_getZhuanYeByYear?batch_year="+batch_year+"&zydm="+zydm,
|
|
|
success: function (data) {
|
|
|
var html = template.render('test3', data);
|
|
|
document.getElementById('select_3').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
bindZhuanYe();
|
|
|
window.bindClass = function () {
|
|
|
var batch_year=$("#sel1").val();
|
|
|
var person_type_id=$("#sel2").val();
|
|
|
var zydm=$("#sel3").val();
|
|
|
if (current_batch_year != null) {
|
|
|
batch_year = current_batch_year;
|
|
|
}
|
|
|
if (current_person_type_id != null) {
|
|
|
person_type_id = current_person_type_id;
|
|
|
}
|
|
|
if (current_zydm != null) {
|
|
|
zydm = current_zydm;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/new_student_getClassByYearPersonTypeZhuanye?batch_year="+batch_year+"&person_type_id="+person_type_id+"&zydm="+zydm,
|
|
|
success: function (data) {
|
|
|
var html = template.render('test4', data);
|
|
|
document.getElementById('select_4').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
bindClass();
|
|
|
|
|
|
//当三个下拉按钮发生改变时
|
|
|
window.changeSelect = function (i) {
|
|
|
if (i == 1) {
|
|
|
getZhaoShengType();
|
|
|
bindZhuanYe();
|
|
|
bindClass();
|
|
|
bindNewStudentTable();
|
|
|
}
|
|
|
if (i == 2) {
|
|
|
bindZhuanYe();
|
|
|
bindClass();
|
|
|
bindNewStudentTable();
|
|
|
}
|
|
|
if (i == 3) {
|
|
|
bindClass();
|
|
|
bindNewStudentTable();
|
|
|
}
|
|
|
if (i == 4) {
|
|
|
bindNewStudentTable();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
//设置显示列
|
|
|
window.setViewColumns = function () {
|
|
|
WeAdminShow('正在设置显示列', 'school_2_student_xueZhaoCheck_setViewColumns.html', 600, 400);
|
|
|
};
|
|
|
|
|
|
// 绑定上部表格
|
|
|
window.bindNewStudentTable = function () {
|
|
|
//年份
|
|
|
var batch_year = $("#sel1").val();
|
|
|
var person_type_id = $("#sel2").val();
|
|
|
var zydm = $("#sel3").val();
|
|
|
var class_id = $("#sel4").val();
|
|
|
var url = '/baseService/xueji/school_2_xueZhaoShowList?batch_year=' + batch_year + "&person_type_id=" + person_type_id + "&zydm=" + zydm +"&class_id="+class_id;
|
|
|
var cols_base = [[
|
|
|
{type: 'checkbox'},
|
|
|
{field: 'id', title: '序号', align: 'center', type: 'numbers', width: 50}
|
|
|
, {field: 'zymc', title: '专业', align: 'center', width: 80}
|
|
|
, {field: 'rule_code', title: '教学计划代码', align: 'center', width: 80}
|
|
|
, {field: 'bh', title: '班号', align: 'center', width: 80}
|
|
|
, {field: 'class_name', title: '班级', align: 'center', width: 80}
|
|
|
, {field: 'xh', title: '学号', align: 'center', width: 80}
|
|
|
, {field: 'xm', title: '姓名', align: 'center', width: 80,sort: true}
|
|
|
, {field: 'xb', title: '性别', align: 'center', width: 60}
|
|
|
, {field: 'sfzh', title: '身份证号', align: 'center', width: 100}
|
|
|
, {field: 'input_zhaosheng_flag', title: '招生标识', align: 'center', width: 100}
|
|
|
, {field: 'input_xuexin_flag', title: '学信标识', align: 'center', width: 100}
|
|
|
, {field: 'is_check_in', title: '报到状态', align: 'center', width: 100}
|
|
|
, {field: 'check_in_time', title: '报到时间', align: 'center', width: 150}
|
|
|
, {field: 'imgExist', title: '照片上传', align: 'center', width: 100}
|
|
|
, {field: 'csrq', title: '出生日期', align: 'center', width: 130}
|
|
|
, {field: 'zzmm', title: '政治面貌', align: 'center', width: 100}
|
|
|
, {field: 'mz', title: '民族', align: 'center', width: 100}
|
|
|
//, {field: 'batch_id', title: '录取批次', align: 'center', width: 100}
|
|
|
, {field: 'person_type_name', title: '学生类别', align: 'center', width: 100}
|
|
|
, {field: 'ksh', title: '考生号', align: 'center', width: 150}
|
|
|
, {field: 'zkzh', title: '准考证号', align: 'center', width: 120}
|
|
|
, {field: 'score', title: '入学总分', align: 'center', width: 80}
|
|
|
, {field: 'cc', title: '层次', align: 'center', width: 60}
|
|
|
, {field: 'xxxs', title: '学习形式', align: 'center', width: 100}
|
|
|
, {field: 'xz', title: '学制', align: 'center', width: 60}
|
|
|
, {field: 'fy', title: '分院', align: 'center', width: 100}
|
|
|
, {field: 'xsh', title: '系所函', align: 'center', width: 100}
|
|
|
, {field: 'byxx', title: '毕业学校', align: 'center', width: 180}
|
|
|
, {field: 'txdz', title: '通讯地址', align: 'center', width: 180}
|
|
|
, {field: 'hkxz', title: '户口性质', align: 'center', width: 100}
|
|
|
, {field: 'jzdlx', title: '居住地类型', align: 'center', width: 100}
|
|
|
, {field: 'dqdm', title: '地区代码', align: 'center', width: 100}
|
|
|
, {field: 'yzbm', title: '邮政编码', align: 'center', width: 100}
|
|
|
, {field: 'lxdh', title: '联系电话', align: 'center', width: 100}
|
|
|
// , {field: 'rxny', title: '入学年月', align: 'center', width: 100}
|
|
|
// , {field: 'xsly', title: '学生来源', align: 'center', width: 100}
|
|
|
]];
|
|
|
//顺序
|
|
|
var cols = [[]];
|
|
|
var cookieData = getCookie("school_2_student_xueZhaoCheck_showColumns");
|
|
|
if (cookieData != null) {
|
|
|
var show_columns = cookieData.split(",");
|
|
|
for (var i = 0; i < show_columns.length; i++) {
|
|
|
for (var j = 0; j < cols_base.length; j++) {
|
|
|
for (var k = 0; k < cols_base[j].length; k++) {
|
|
|
if (cols_base[j][k].field != null) {
|
|
|
if (show_columns[i] === cols_base[j][k].field) {
|
|
|
cols[0].push(cols_base[j][k]);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
for (var j = 0; j < cols_base.length; j++) {
|
|
|
for (var k = 0; k < cols_base[j].length; k++) {
|
|
|
if (cols_base[j][k].field != null) {
|
|
|
cols[0].push(cols_base[j][k]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
table.render({
|
|
|
elem: '#tableNewStudentList',
|
|
|
url: url,
|
|
|
cols: cols,
|
|
|
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("否")
|
|
|
}
|
|
|
});
|
|
|
$("[data-field='is_check_in']").children().each(function () {
|
|
|
if ($(this).text() == '已报到') {
|
|
|
$(this).html("<a href='#'><i class='layui-icon layui-icon-rate-solid' style='font-size: 20px;color:#5FB878 '></i></a>")
|
|
|
} else if ($(this).text() == '') {
|
|
|
$(this).text("")
|
|
|
}
|
|
|
});
|
|
|
$("[data-field='input_zhaosheng_flag']").children().each(function () {
|
|
|
if ($(this).text() == '1') {
|
|
|
$(this).html("<a href='#'><i class='layui-icon layui-icon-rate-solid' style='font-size: 20px;color:#5FB878 '></i></a>")
|
|
|
} else if ($(this).text() == '0') {
|
|
|
$(this).text("")
|
|
|
}
|
|
|
});
|
|
|
$("[data-field='input_xuexin_flag']").children().each(function () {
|
|
|
if ($(this).text() == '1') {
|
|
|
$(this).html("<a href='#'><i class='layui-icon layui-icon-rate-solid' style='font-size: 20px;color:#5FB878 '></i></a>")
|
|
|
} else if ($(this).text() == '0') {
|
|
|
$(this).text("")
|
|
|
}
|
|
|
});
|
|
|
$("[data-field='xuexin_zhaosheng_ok_flag']").children().each(function () {
|
|
|
if ($(this).text() == '1') {
|
|
|
$(this).html("<a href='#'><i class='layui-icon layui-icon-rate-solid' style='font-size: 20px;color:#5FB878 '></i></a>")
|
|
|
} else if ($(this).text() == '0') {
|
|
|
$(this).text("")
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
table.on('tool(tableNewStudentList)', function (obj) {
|
|
|
var data = obj.data;
|
|
|
})
|
|
|
};
|
|
|
|
|
|
bindNewStudentTable();
|
|
|
//新生-导出查询记录excel
|
|
|
window.exportShowExcel = function () {
|
|
|
//年份
|
|
|
var batch_year = $("#sel1").val();
|
|
|
var person_type_id = $("#sel2").val();
|
|
|
var zydm = $("#sel3").val();
|
|
|
window.location.href = "/baseService/xueji/school_2_exportXueZhaoShowExcel?batch_year=" + batch_year + "&person_type_id=" + person_type_id + "&zydm=" + zydm;
|
|
|
};
|
|
|
|
|
|
})
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |