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.
198 lines
8.0 KiB
198 lines
8.0 KiB
<!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">
|
|
<link href="./component/layui/css/layui.css" rel="stylesheet">
|
|
<style>
|
|
.layui-laypage .layui-laypage-curr .layui-laypage-em {
|
|
position: absolute;
|
|
left: -1px;
|
|
top: -1px;
|
|
padding: 1px;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #1E9FFF;
|
|
}
|
|
|
|
.layui-laypage a:hover {
|
|
color: #1E9FFF;
|
|
}
|
|
|
|
.layui-laypage input:focus,
|
|
.layui-laypage select:focus {
|
|
border-color: #1E9FFF !important;
|
|
}
|
|
|
|
.layui-input:focus {
|
|
border-color: #1E9FFF !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="layui-form">
|
|
<div class="layui-layout layui-layout-admin">
|
|
<div class="layui-header" style="background-color: #05B5F8;">
|
|
<div class="layui-logo"
|
|
style="color: #FFFFFF;box-shadow:none;font-size: 21px;width: 400px;font-weight: 550;">吉林省普通高中学业水平合格性考试
|
|
</div>
|
|
<ul class="layui-nav layui-layout-right" style="right: 25px;">
|
|
<li class="layui-nav-item layui-hide layui-show-sm-inline-block">
|
|
<a href="javascript:;">
|
|
<i class="layui-icon layui-icon-username" style="color: #FFFFFF;font-size: 16px;"></i>
|
|
<span style="color: #FFFFFF;font-size: 16px;" id="personName"></span>
|
|
</a>
|
|
<dl class="layui-nav-child">
|
|
<dd><a href="javascript:void(0);" id="logout">注销登录</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="layui-body" style="left: 0;">
|
|
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<div class="layui-form-item" style="margin: 10px 0 0 0 !important;">
|
|
<div class="layui-form-item layui-inline">
|
|
<label class="layui-form-label" style="width: 65px;">关键字:</label>
|
|
<div class="layui-input-inline" style="width: 260px;">
|
|
<input type="text" id="keyword" lay-affix="clear" lay-filter="clear"
|
|
placeholder="输入学生姓名、身份证号、考籍号" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item layui-inline">
|
|
<button class="layui-btn layui-btn-sm layui-btn-normal layui-btn-radius" lay-submit
|
|
lay-filter="user-query">
|
|
<i class="layui-icon layui-icon-search"></i>
|
|
查询
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-card-body">
|
|
<table id="data-table"></table>
|
|
<script type="text/html" id="table-bar">
|
|
<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="restPwd">
|
|
<i class="layui-icon layui-icon-refresh-1"></i>
|
|
重置密码
|
|
</button>
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-footer" style="left: 0;text-align: center;">
|
|
<!-- 底部固定区域 -->
|
|
©版权所有:吉林省教育考试院  技术支持:东北师范大学理想软件股份有限公司
|
|
</div>
|
|
</div>
|
|
|
|
<script src="./component/layui/layui.js"></script>
|
|
<script>
|
|
//JS
|
|
layui.use(function () {
|
|
var $ = layui.$;
|
|
var form = layui.form;
|
|
var table = layui.table;
|
|
|
|
tableRender();
|
|
|
|
|
|
function tableRender() {
|
|
table.render({
|
|
elem: '#data-table',
|
|
url: '/dsBase/hk/schoolListStudent',
|
|
where: {
|
|
keyword: $("#keyword").val()
|
|
},
|
|
height: 'full-200',
|
|
page: {
|
|
limit: 20
|
|
, layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
|
|
, prev: "上一页"
|
|
, next: "下一页"
|
|
},
|
|
cols: [[
|
|
{ title: '序号', align: 'center', type: 'numbers', width: "5%" },
|
|
{ title: '学生姓名', field: 'student_name', align: 'center', width: "15%" },
|
|
{ title: '性别', field: 'xb', align: 'center', width: "10%" },
|
|
{ title: '身份证号', field: 'sfzh', align: 'center', width: "20%" },
|
|
{ title: '国家学籍号', field: 'xjh', align: 'center', width: "20%" },
|
|
{ title: '考籍号', field: 'kjh', align: 'center', width: "20%" },
|
|
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "10%" }
|
|
]],
|
|
skin: 'line',
|
|
defaultToolbar: []
|
|
});
|
|
}
|
|
|
|
form.on('input-affix(clear)', function (data) {
|
|
tableRender();
|
|
// 阻止表单的默认提交行为
|
|
return false;
|
|
});
|
|
|
|
form.on('submit(user-query)', function () {
|
|
tableRender();
|
|
// 阻止表单的默认提交行为
|
|
return false;
|
|
});
|
|
|
|
table.on('tool(data-table)', function (obj) {
|
|
if (obj.event === 'restPwd') {
|
|
layer.confirm('确定要重置密码吗?', {
|
|
icon: 3,
|
|
title: '提示'
|
|
}, function (index) {
|
|
layer.close(index);
|
|
$.ajax({
|
|
type: "POST",
|
|
dataType: "json",
|
|
url: "/dsBase/hk/schoolResetPwd",
|
|
data: {
|
|
sfzh: obj.data['sfzh']
|
|
},
|
|
success: function (data) {
|
|
if (data.success) {
|
|
layer.msg('重置密码成功!', {
|
|
icon: 1,
|
|
time: 1000
|
|
}, function () {
|
|
table.reload('data-table');
|
|
});
|
|
} else {
|
|
layer.msg(result.message, {
|
|
icon: 2,
|
|
time: 1000
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
});
|
|
|
|
$("#logout").click(function () {
|
|
layer.msg("注销成功", {
|
|
icon: 1,
|
|
time: 1500
|
|
}, function () {
|
|
localStorage.removeItem("studentInfo");
|
|
location.href = "/dsBase/hk/logout";
|
|
})
|
|
// 注销逻辑 返回 true / false
|
|
return true;
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |