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.
144 lines
4.6 KiB
144 lines
4.6 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;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="pear-container layui-form">
|
|
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<table id="data-table"></table>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/html" id="table-toolbar">
|
|
|
|
<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">
|
|
<i class="layui-icon layui-icon-ok"></i>
|
|
确认当前学期数据
|
|
</button>
|
|
</script>
|
|
|
|
<script type="text/html" id="table-bar">
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="viewSign"><a
|
|
class="woo-theme-color">查看签名</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;
|
|
|
|
tableRender();
|
|
|
|
function tableRender() {
|
|
table.render({
|
|
elem: '#data-table',
|
|
url: '/dsBase/base/listDakaBySchool',
|
|
height: 'full-50',
|
|
page: false,
|
|
cols: [[
|
|
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
|
|
{ title: '学期', field: 'term_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',
|
|
toolbar: '#table-toolbar',
|
|
defaultToolbar: [{
|
|
title: '刷新',
|
|
layEvent: 'refresh',
|
|
icon: 'layui-icon-refresh',
|
|
}, 'filter', 'print', 'exports']
|
|
});
|
|
}
|
|
|
|
|
|
table.on('tool(data-table)', function (obj) {
|
|
if (obj.event === 'viewSign') {
|
|
window.viewSign(obj);
|
|
}
|
|
});
|
|
|
|
table.on('toolbar(data-table)', function (obj) {
|
|
if (obj.event === 'add') {
|
|
window.add();
|
|
}
|
|
});
|
|
|
|
window.add = function () {
|
|
layer.open({
|
|
type: 2,
|
|
title: '确认当前学期数据',
|
|
shade: 0.1,
|
|
area: ['400px', '385px'],
|
|
content: './view.html'
|
|
});
|
|
}
|
|
|
|
window.viewSign = function (obj) {
|
|
layer.open({
|
|
type: 2,
|
|
title: '查看签名',
|
|
shade: 0.1,
|
|
area: ['430px', '230px'],
|
|
content: './sign_view.html?id=' + obj.data.id
|
|
});
|
|
}
|
|
|
|
window.sign = function (obj) {
|
|
layer.open({
|
|
type: 2,
|
|
title: '签名',
|
|
shade: 0.1,
|
|
area: ['450px', '340px'],
|
|
content: './signature.html'
|
|
});
|
|
}
|
|
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |