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.

255 lines
10 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>
<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;
}
</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">
<table border=0 align=left width="100%">
<tr>
<td align=left valign=top style="padding-left:10px">
<div class="layui-form-item inline " id="div1">
<label for="" class="layui-form-label" style="padding:9px 0;text-align: left;">
年份
</label>
<div class="layui-input-inline" id="select_1" style="width: 188px"></div>
<script type="text/html" id="test1">
<select name="service_type" id="sel1" lay-filter="top1" onchange="changeSelect(1)">
<% for (var i = 0; i < data.length; i ++) { %>
<option value="<%=data[i].year%>"><%=data[i].year%></option>
<% } %>
</select>
</script>
</div>
<div class="layui-form-item inline " id="div2">
<label for="" class="layui-form-label" style="padding:9px 0;text-align: left;">
招生批次
</label>
<div class="layui-input-inline" id="select_2" style="width: 188px"></div>
<script type="text/html" id="test2">
<select name="service_type" id="sel2" onchange="changeSelect(2)">
<% for (var i = 0; i < data.length; i ++) { %>
<option value="<%=data[i].batch_id%>"><%=data[i].batch_name%></option>
<% } %>
</select>
</script>
</div>
<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:288px"></div>
<script type="text/html" id="test3">
<select name="service_type" id="sel3" style="width:288px" onchange="changeSelect(3)">
<% for (var i = 0; i < data.length; i ++) { %>
<option value="<%=data[i].person_type_id%>"><%=data[i].person_type_name%></option>
<% } %>
</select>
</script>
</div>
<span id="importAcc" style="float:right">
<div class="layui-btn layui-btn-normal" type="button" id="autoButton" onclick="importDBF();">
<span class="layui-icon layui-icon-shrink-right"></span>录取信息导入
</div>
</span>
</td>
</tr>
<tr>
<td>
<div class="layui-form-item">
<table class="layui-table" lay-filter="gaozhaoList" id="gaozhaoList"></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) {
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;
};
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;
// 获取年份
window.getYearList = function () {
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/xueji/common_getYearList",
success: function (data) {
var html = template.render('test1', data);
document.getElementById('select_1').innerHTML = html;
}
})
}
getYearList();
//绑定批次
window.bindBatch = function () {
var batch_year = $("#sel1").val();
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/xueji/common_getBatchTable?year=" + batch_year+"&zhaosheng_type="+GetQueryString("zhaosheng_type"),
success: function (data) {
var html = template.render('test2', data);
document.getElementById('select_2').innerHTML = html;
}
})
};
bindBatch();
//绑定人员类型
window.getPersonType = function () {
var batch_id=$("#sel2").val();
$.ajax({
type: "GET",
async: false,
dataType: "json",
url: "/baseService/xueji/common_getPersonType?batch_id="+batch_id,
success: function (data) {
var html = template.render('test3', data);
document.getElementById('select_3').innerHTML = html;
}
})
};
getPersonType();
//当三个下拉按钮发生改变时
window.changeSelect = function (i) {
if (i == 1) {
bindBatch();
getPersonType();
bindTable();
}
if (i == 2) {
getPersonType();
bindTable();
}
if (i == 3) {
bindTable();
}
}
// 绑定表格
window.bindTable = function () {
//批次
var batch_id = $("#sel2").val();
if (batch_id == null) {
batch_id = -1;
}
//考生类型
var person_type_id = $("#sel3").val();
var url = '/baseService/xueji/gz_getLuquList?batch_id=' + batch_id + "&person_type_id=" + person_type_id;
table.render({
elem: '#gaozhaoList',
url: url,
cols: [[
//{type: 'checkbox'},
{field: 'id', title: '序号', align: 'center', type: 'numbers', width: 50}
, {field: 'ksh', title: '考生号', align: 'center'}
, {field: 'xm', title: '姓名', align: 'center', width: 80}
, {field: 'xb', title: '性别', align: 'center', width: 100}
, {field: 'csrq', title: '出生日期', align: 'center', width: 100}
, {field: 'sfzh', title: '身份证号', align: 'center', width: 100}
, {field: 'zymc', title: '专业', align: 'center', width: 100}
, {field: 'batch_id', title: '录取批次', align: 'center', width: 100}
, {field: 'person_type_id', title: '人员类型', align: 'center', width: 100}
, {field: 'zzmm', title: '政治面貌', align: 'center', width: 100}
, {field: 'mz', title: '民族', align: 'center', width: 100}
, {field: 'cc', title: '层次', align: 'center', width: 100}
, {field: 'xxxs', title: '学习形式', align: 'center', width: 100}
, {field: 'xz', title: '学习形式', align: 'center', width: 100}
]]
,
page: true
,
height: 'full'
,
done: function () {
}
});
};
bindTable();
// 导入excel
window.importDBF = function () {
//批次
var batch_id = $("#sel2").val();
if (batch_id == null) {
batch_id = -1;
}
//考生类型
var person_type_id = $("#sel3").val();
WeAdminShow('高招录取信息导入', './gz_luqu_importDBF.html?batch_id=' + batch_id + "&person_type_id=" + person_type_id, 600, 300);
}
})
</script>
</body>
</html>