|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<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">
|
|
|
<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:40px;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)">
|
|
|
<% 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="width:70px;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)">
|
|
|
<% 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="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:100px;"></div>
|
|
|
<script type="text/html" id="test4">
|
|
|
<select name="service_type" id="sel4" style="width:100px;" onchange="changeSelect(4)">
|
|
|
<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="div5">
|
|
|
<label for="" class="layui-form-label" style="width:40px;padding:9px 0;text-align: left;">省份</label>
|
|
|
<div class="layui-input-inline" id="select_5" style="width:100px;"></div>
|
|
|
<script type="text/html" id="test5">
|
|
|
<select name="service_type" id="sel5" style="width:100px;" onchange="changeSelect(5)">
|
|
|
<option value="">----所有----</option>
|
|
|
<% for (var i = 0; i < data.length; i ++) { %>
|
|
|
<option value="<%=data[i].area_code%>"><%=data[i].area_name%></option>
|
|
|
<% } %>
|
|
|
</select>
|
|
|
</script>
|
|
|
</div>
|
|
|
<span id="importAcc" style="float:right">
|
|
|
<div class="layui-btn layui-btn-normal" type="button" id="autoButton" onclick="importGZDBF();">
|
|
|
<span class="layui-icon layui-icon-add-circle"></span>录取数据导入
|
|
|
</div>
|
|
|
<div class="layui-btn layui-btn-warm" type="button" id="autoButton" onclick="importImageZip();">
|
|
|
<span class="layui-icon layui-icon-friends"></span>录取照片导入
|
|
|
</div>
|
|
|
</span>
|
|
|
<div class="layui-form-item">
|
|
|
<table class="layui-table" lay-filter="tableGZHuiZong" id="tableGZHuiZong"></table>
|
|
|
<script type="text/html" id="barClassList">
|
|
|
{{#if(d.unZsdxExist!=0){ }}
|
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="setZsdxMatching">匹配招生对象</a>
|
|
|
{{#}else{ }}
|
|
|
<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="setZsdxMatching">匹配招生对象</a>
|
|
|
{{#} }}
|
|
|
</script>
|
|
|
</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_batch = null;
|
|
|
var current_person_type_id = null;
|
|
|
var current_zydm = null;
|
|
|
var current_area_code = null;
|
|
|
// 获取年份
|
|
|
window.getYearList = function () {
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/zhaosheng_getYearListHavingBatch?type_id=1",
|
|
|
success: function (data) {
|
|
|
var html = template.render('test1', data);
|
|
|
document.getElementById('select_1').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
getYearList();
|
|
|
//绑定批次
|
|
|
window.bindBatch = function () {
|
|
|
var batch_year = $("#sel1").val();
|
|
|
var batch_id = "";
|
|
|
if (current_batch_year != null) {
|
|
|
batch_year = current_batch_year;
|
|
|
$("#sel1").val(batch_year);
|
|
|
}
|
|
|
if (current_batch != null) {
|
|
|
batch_id = current_batch;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/common_getBatchTable?year=" + batch_year+"&batch_id="+batch_id+"&zhaosheng_type="+GetQueryString("zhaosheng_type"),
|
|
|
success: function (data) {
|
|
|
var html = template.render('test2', data);
|
|
|
document.getElementById('select_2').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
bindBatch();
|
|
|
//绑定学生类别
|
|
|
window.bindPersonType = function () {
|
|
|
var batch_year = $("#sel1").val();
|
|
|
var batch_id=$("#sel2").val();
|
|
|
var person_type_id="";
|
|
|
if (current_batch_year != null) {
|
|
|
batch_year = current_batch_year;
|
|
|
}
|
|
|
if (current_batch != null) {
|
|
|
batch_id = current_batch;
|
|
|
}
|
|
|
if (current_person_type_id != null) {
|
|
|
person_type_id = current_person_type_id;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/common_getPersonType?batch_id="+batch_id+"&person_type_id="+person_type_id,
|
|
|
success: function (data) {
|
|
|
var html = template.render('test3', data);
|
|
|
document.getElementById('select_3').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
bindPersonType();
|
|
|
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/new_getZhuanYeByYear?batch_year="+batch_year+"&zydm="+zydm,
|
|
|
success: function (data) {
|
|
|
var html = template.render('test4', data);
|
|
|
document.getElementById('select_4').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
bindZhuanYe();
|
|
|
window.bindShengFen = function () {
|
|
|
var area_code="";
|
|
|
if (current_area_code != null) {
|
|
|
area_code = current_area_code;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
url: "/baseService/xueji/common_getShengFen?area_code="+area_code,
|
|
|
success: function (data) {
|
|
|
var html = template.render('test5', data);
|
|
|
document.getElementById('select_5').innerHTML = html;
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
bindShengFen();
|
|
|
|
|
|
//当三个下拉按钮发生改变时
|
|
|
window.changeSelect = function (i) {
|
|
|
if (i == 1) {
|
|
|
current_batch_year=$("#sel1").val();
|
|
|
bindBatch();
|
|
|
bindPersonType();
|
|
|
bindShengFen();
|
|
|
bindZhuanYe();
|
|
|
bindGZHuiZong();
|
|
|
}
|
|
|
if (i == 2) {
|
|
|
bindPersonType();
|
|
|
bindShengFen();
|
|
|
bindZhuanYe();
|
|
|
bindGZHuiZong();
|
|
|
}
|
|
|
if (i == 3) {
|
|
|
bindShengFen();
|
|
|
bindZhuanYe();
|
|
|
bindGZHuiZong();
|
|
|
}
|
|
|
if (i == 4) {
|
|
|
bindGZHuiZong();
|
|
|
}
|
|
|
if (i == 5) {
|
|
|
bindGZHuiZong();
|
|
|
}
|
|
|
}
|
|
|
// 绑定下部汇总表格
|
|
|
window.bindGZHuiZong = function () {
|
|
|
//年份
|
|
|
var batch_year = $("#sel1").val();
|
|
|
var batch_id = $("#sel2").val();
|
|
|
if (batch_id == null) {
|
|
|
batch_id = -1;
|
|
|
}
|
|
|
//考生类型
|
|
|
var person_type_id = $("#sel3").val();
|
|
|
var zydm = $("#sel4").val();
|
|
|
var area_code = $("#sel5").val();
|
|
|
var url = '/baseService/xueji/gz_getLuquHuiZong?batch_year=' + batch_year +'&batch_id=' + batch_id + '&person_type_id=' + person_type_id + '&zydm='+zydm+'&area_code=' + area_code;
|
|
|
var cols = [[
|
|
|
//{type: 'radio'},
|
|
|
{field: 'id', title: '序号', align: 'center', type: 'numbers', width: 50}
|
|
|
, {field: 'batch_year', title: '入学年度', align: 'center', width: 100}
|
|
|
, {field: 'xqmc', title: '入学学期', align: 'center'}
|
|
|
, {field: 'type_name', title: '招生类别', align: 'center', width: 120}
|
|
|
, {field: 'batch_name', title: '批次', align: 'center'}
|
|
|
, {field: 'person_type_name', title: '人员类别', align: 'center'}
|
|
|
, {field: 'zymc', title: '专业', align: 'center'}
|
|
|
, {field: 'xz', title: '学制', align: 'center', width: 70}
|
|
|
, {field: 'stu_count', title: '人数', align: 'center', width: 70}
|
|
|
, {field: 'area_name', title: '省份', align: 'center', width: 150}
|
|
|
]];
|
|
|
cols[0].push({fixed: 'right', title: '操作', toolbar: '#barClassList', align: 'center', width: 120});
|
|
|
table.render({
|
|
|
elem: '#tableGZHuiZong',
|
|
|
url: url,
|
|
|
cols: cols,
|
|
|
page: false,
|
|
|
height: 'full',
|
|
|
done: function (res, a, b) {
|
|
|
}
|
|
|
});
|
|
|
//行点击事件
|
|
|
table.on('tool(tableGZHuiZong)', function (obj) {
|
|
|
var data = obj.data;
|
|
|
if (obj.event === "setZsdxMatching") {
|
|
|
var batch_id = data.batch_id;
|
|
|
var area_code = data.area_code;
|
|
|
var area_name = data.area_name;
|
|
|
var zydm = data.zydm;
|
|
|
var zymc = data.zymc;
|
|
|
var zsdx_id = data.zsdx_id;
|
|
|
WeAdminShow('【'+area_name+' '+zymc+'专业】招生对象匹配', './gz_luqu_zsdxMatching_List.html?batch_id=' + batch_id+'&area_code='+area_code+"&zydm="+zydm+"&zsdx_id="+zsdx_id, 600, 600);
|
|
|
}
|
|
|
});
|
|
|
form.render();
|
|
|
};
|
|
|
bindGZHuiZong();
|
|
|
// 导入高招DBF
|
|
|
window.importGZDBF = function () {
|
|
|
//批次
|
|
|
var batch_id = $("#sel2").val();
|
|
|
//考生类型
|
|
|
var person_type_id = $("#sel3").val();
|
|
|
WeAdminShow('高招录取信息导入', './gz_luqu_importDBF.html?batch_id=' + batch_id + "&person_type_id=" + person_type_id, 600, 400);
|
|
|
}
|
|
|
//导入高招照片ZIP压缩包
|
|
|
window.importImageZip = function () {
|
|
|
//批次
|
|
|
var batch_id = $("#sel2").val();
|
|
|
WeAdminShow('导入学生照片压缩ZIP包', './gz_luqu_importPhotoZip.html?batch_id=' + batch_id, 600, 300);
|
|
|
};
|
|
|
//显示考生照片
|
|
|
window.showZsdxMatching = function (batch_id,area_code,area_name,zydm,zymc,zsdx_id) {
|
|
|
WeAdminShow('【'+area_name+' '+zymc+'专业】招生对象匹配', './gz_luqu_zsdxMatching_List.html?batch_id=' + batch_id+'&area_code='+area_code+"&zydm="+zydm+"&zsdx_id="+zsdx_id, 600, 600);
|
|
|
};
|
|
|
})
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |