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.
128 lines
4.1 KiB
128 lines
4.1 KiB
<!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="table-toolbar">
|
|
<button class="pear-btn pear-btn-primary pear-btn-md" id="export">
|
|
<i class="layui-icon layui-icon-download-circle"></i>
|
|
导出
|
|
</button>
|
|
</script>
|
|
|
|
<script type="text/html" id="tableOperate">
|
|
|
|
<button class="pear-btn pear-btn-primary pear-btn-sm" lay-event="view" title="查看报名情况"><i class="icon pear-icon pear-icon-browse"></i>
|
|
</button>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="taskFill">
|
|
{{# if(d.fill_count === 0){ }}
|
|
<span>{{ d.fill_count }}</span>
|
|
{{# } else { }}
|
|
<span style="cursor:pointer;" lay-event="taskFillInfo">{{ d.fill_count }}</span>
|
|
{{# } }}
|
|
</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: '', title: '序号', align: 'center', type: 'numbers', width: "5%" }
|
|
, { field: 'xm', title: '姓名', align: 'center', width: "10%" }
|
|
, { field: 'xb', title: '性别', align: 'center', width: "10%" }
|
|
, { field: 'zkz', title: '准考证号', align: 'center', width: "15%" }
|
|
, { field: 'zzfs', title: '中招分数', align: 'center', width: "10%" }
|
|
, { field: '', title: '操作', toolbar: '#tableOperate', align: 'center', width: "10%" }
|
|
]
|
|
]
|
|
|
|
tableRender()
|
|
|
|
function tableRender() {
|
|
table.render({
|
|
elem: '#task-table',
|
|
url: '/FengHuang/yp/listView',
|
|
height: 'full-70',
|
|
page: {
|
|
limit: 20
|
|
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
|
, prev: "上一页"
|
|
, next: "下一页"
|
|
},
|
|
toolbar: '#table-toolbar',
|
|
cols: cols,
|
|
skin: 'line',
|
|
defaultToolbar: []
|
|
});
|
|
}
|
|
|
|
$("#export").click(function(){
|
|
window.location = "/FengHuang/yp/exportExcel";
|
|
});
|
|
|
|
table.on('tool(task-table)', function (data) {
|
|
if (data.event === 'view') {
|
|
infoView(data.data.zkz);
|
|
}
|
|
});
|
|
|
|
// 查看信息
|
|
window.infoView = function (zkz) {
|
|
console.log(zkz);
|
|
layer.open({
|
|
type: 2,
|
|
title: '查看信息',
|
|
shade: 0.1,
|
|
shade: false,
|
|
maxmin: false,
|
|
move: false,
|
|
area: ['900px', '600px'],
|
|
content: './infoView.html?zkz=' + zkz
|
|
});
|
|
}
|
|
|
|
// 弹出窗口用
|
|
window.parentTableRender = function () {
|
|
refresh();
|
|
}
|
|
|
|
window.refresh = function (param) {
|
|
table.reload('task-table');
|
|
}
|
|
|
|
function getPublishText(data) {
|
|
if (data.is_run === 0) {
|
|
return "<span style='color:red;'>已停止</span>";
|
|
} else {
|
|
return "<span style='color:green;'>已启动</span>";
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
|
|
</html> |