parent
78fae24075
commit
c4975d1cd0
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<img alt="" id="signature">
|
||||||
|
|
||||||
|
<script src="../../../admin/js/jquery-3.6.0.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
|
||||||
|
var id = GetQueryString("id");
|
||||||
|
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
async: false,
|
||||||
|
url: '/QingLong/base/getDakaById?id='+id,
|
||||||
|
success: function (res) {
|
||||||
|
$('#signature').attr('src', res.signature);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function GetQueryString(name, istop) {
|
||||||
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||||
|
var r = window.location.search.substr(1).match(reg);
|
||||||
|
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||||
|
|
||||||
|
if (r != null) return unescape(r[2]);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -0,0 +1,170 @@
|
|||||||
|
<!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" 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">
|
||||||
|
|
||||||
|
<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;
|
||||||
|
|
||||||
|
//学期
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
async: false,
|
||||||
|
url: "/QingLong/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: '/QingLong/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: 'org_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>
|
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<img alt="" id="signature">
|
||||||
|
|
||||||
|
<script src="../../../admin/js/jquery-3.6.0.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
|
||||||
|
var id = GetQueryString("id");
|
||||||
|
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
async: false,
|
||||||
|
url: '/QingLong/base/getDakaById?id='+id,
|
||||||
|
success: function (res) {
|
||||||
|
$('#signature').attr('src', res.signature);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function GetQueryString(name, istop) {
|
||||||
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||||
|
var r = window.location.search.substr(1).match(reg);
|
||||||
|
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||||
|
|
||||||
|
if (r != null) return unescape(r[2]);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Reference in new issue