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.
176 lines
6.2 KiB
176 lines
6.2 KiB
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
<link rel="stylesheet" href="../../../component/pear/css/pear.css" />
|
|
<style>
|
|
.woo-tool-text-delimiter {
|
|
width: 1px;
|
|
height: 12px;
|
|
background: #EEEEEE;
|
|
display: inline-block;
|
|
margin: 0 6px 0 4px;
|
|
}
|
|
|
|
.woo-theme-color {
|
|
color: #1e9fff !important;
|
|
}
|
|
|
|
.woo-tool-span {
|
|
margin: 0 3px;
|
|
position: relative;
|
|
top: -1px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.layui-card-body .layui-form {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.woo-theme-color-none {
|
|
color: #cccccc !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="pear-container layui-form">
|
|
|
|
<div class="layui-card" style="margin-bottom: 10px !important;">
|
|
<div class="layui-card-body">
|
|
<div class="layui-form-item" style="margin: 10px 0 5px 0 !important;">
|
|
<div class="layui-form-item layui-inline">
|
|
<label class="layui-form-label" style="width: auto;">学期:</label>
|
|
<div class="layui-input-inline" id="xqView"></div>
|
|
<script id="xqScript" type="text/html">
|
|
<select id="xq" lay-filter="xq">
|
|
{{# layui.each(d, function(index, item){ }}
|
|
<option value="{{item.xq_id}}">{{item.xqmc}}</option>
|
|
{{# }); }}
|
|
</select>
|
|
</script>
|
|
</div>
|
|
<div class="layui-form-item layui-inline">
|
|
<label class="layui-form-label" style="width: auto;">状态:</label>
|
|
<div class="layui-input-inline">
|
|
<select id="status" lay-filter="status">
|
|
<option value="0">未确认</option>
|
|
<option value="1">已确认</option>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<table id="data-table"></table>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/html" id="table-bar">
|
|
{{# if(d.flag == 1){ }}
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="viewSign"><a
|
|
class="woo-theme-color">查看签名</a></span>
|
|
{{# } else { }}
|
|
<span class="woo-tool-span woo-tool-text-span" style="cursor:default"><a
|
|
class="woo-theme-color-none">查看签名</a></span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script src="../../../component/layui/layui.js"></script>
|
|
<script src="../../../component/pear/pear.js"></script>
|
|
|
|
<script>
|
|
layui.use(['table', 'form', 'jquery', 'laytpl'], function () {
|
|
var table = layui.table;
|
|
var form = layui.form;
|
|
var $ = layui.jquery;
|
|
var laytpl = layui.laytpl;
|
|
|
|
//学期
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/dsBase/base/getTermList?limit=6",
|
|
success: function (res) {
|
|
var xqTpl = xqScript.innerHTML;
|
|
var xqView = document.getElementById('xqView');
|
|
laytpl(xqTpl).render(res.data, function (html) {
|
|
xqView.innerHTML = html;
|
|
});
|
|
form.render();
|
|
}
|
|
});
|
|
|
|
|
|
tableRender();
|
|
|
|
function tableRender() {
|
|
table.render({
|
|
elem: '#data-table',
|
|
url: '/dsBase/base/listDaKa',
|
|
where: {
|
|
term_id: $("#xq").val(),
|
|
flag: $("#status").val()
|
|
},
|
|
height: 'full-135',
|
|
page: {
|
|
limit: 15
|
|
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
|
, prev: "上一页"
|
|
, next: "下一页"
|
|
},
|
|
cols: [[
|
|
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
|
|
{ title: '学校名称', field: 'bureau_name', align: 'center', width: "25%" },
|
|
{ title: '教师数', field: 'teacher_count', align: 'center', width: "10%" },
|
|
{ title: '学生数', field: 'student_count', align: 'center', width: "10%" },
|
|
{ title: '班级数', field: 'class_count', align: 'center', width: "10%" },
|
|
{ title: '教师调转待审数', field: 'wait_teacher_count', align: 'center', width: "10%" },
|
|
{ title: '学生调转待审数', field: 'wait_student_count', align: 'center', width: "10%" },
|
|
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "20%" }
|
|
]],
|
|
skin: 'line',
|
|
defaultToolbar: [{
|
|
title: '刷新',
|
|
layEvent: 'refresh',
|
|
icon: 'layui-icon-refresh',
|
|
}, 'filter', 'print', 'exports']
|
|
});
|
|
}
|
|
|
|
|
|
form.on('select(xq)', function (data) {
|
|
tableRender();
|
|
});
|
|
|
|
form.on('select(status)', function (data) {
|
|
tableRender();
|
|
});
|
|
|
|
table.on('tool(data-table)', function (obj) {
|
|
if (obj.event === 'viewSign') {
|
|
window.viewSign(obj);
|
|
}
|
|
});
|
|
|
|
window.viewSign = function (obj) {
|
|
layer.open({
|
|
type: 2,
|
|
title: '查看签名',
|
|
shade: 0.1,
|
|
area: ['430px', '230px'],
|
|
content: './sign_view.html?id=' + obj.data.id
|
|
});
|
|
}
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |