|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title></title>
|
|
|
|
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="pear-container">
|
|
|
|
|
|
|
|
<div class="layui-card">
|
|
|
|
<div class="layui-card-body">
|
|
|
|
<table id="task-table" lay-filter="task-table"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/html" id="task-toolbar">
|
|
|
|
<button class="layui-btn" lay-event="add">
|
|
|
|
<i class="layui-icon layui-icon-download-circle"></i>
|
|
|
|
导出EXCEL
|
|
|
|
</button>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script src="../../component/layui/layui.js"></script>
|
|
|
|
<script src="../../component/pear/pear.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
layui.use(['table', 'form', 'jquery', 'common'], function () {
|
|
|
|
let table = layui.table;
|
|
|
|
let form = layui.form;
|
|
|
|
let $ = layui.jquery;
|
|
|
|
let common = layui.common;
|
|
|
|
|
|
|
|
let cols = [
|
|
|
|
[
|
|
|
|
{ field: 'num', title: '名次', align: 'center', width: "10%" }
|
|
|
|
, { field: 'person_name', title: '姓名', align: 'center' }
|
|
|
|
, { field: 'score', title: '得分', align: 'center', width: "10%" }
|
|
|
|
, { field: 'start_time', title: '开始时间', align: 'center', width: "20%" }
|
|
|
|
, { field: 'end_time', title: '交卷时间', align: 'center', width: "20%" }
|
|
|
|
, { field: 'ys', title: '用时', align: 'center', width: "20%" }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
tableRender()
|
|
|
|
|
|
|
|
function tableRender() {
|
|
|
|
table.render({
|
|
|
|
elem: '#task-table',
|
|
|
|
url: '/FengHuang/exam/getPageSummary',
|
|
|
|
page: {
|
|
|
|
limit: 10
|
|
|
|
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
|
|
|
, prev: "上一页"
|
|
|
|
, next: "下一页"
|
|
|
|
},
|
|
|
|
cols: cols,
|
|
|
|
skin: 'line',
|
|
|
|
toolbar: '#task-toolbar',
|
|
|
|
defaultToolbar: []
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
table.on('toolbar(task-table)', function (data) {
|
|
|
|
if (data.event === 'add') {
|
|
|
|
window.location = "/FengHuang/exam/exportExcel";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|