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.

145 lines
4.0 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="../../../../component/layui/css/layui.css" />
<style>
th {
color: #303133;
background-color: #f5f7fa;
}
.layui-card {
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
margin-bottom: 0 !important;
}
.layui-form-item {
margin-bottom: 0;
}
.layui-table td,
.layui-table th {
font-size: 12px;
}
.bp {
background-color: rgba(23, 179, 163, .1);
padding: 5px 10px;
height: 32px;
line-height: 30px;
font-size: 12px;
color: #17b3a3;
border-radius: 4px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid rgba(23, 179, 163, .2);
white-space: nowrap;
}
.xp {
background-color: rgba(144, 147, 153, .1);
padding: 5px 10px;
height: 32px;
line-height: 30px;
font-size: 12px;
color: #909399;
border-radius: 4px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid rgba(144, 147, 153, .2);
white-space: nowrap;
}
.woo-tool-text-delimiter {
width: 1px;
height: 12px;
background: #EEEEEE;
display: inline-block;
margin: 0 6px 0 4px;
}
.woo-theme-color {
color: #16baaa !important;
}
.woo-tool-span {
margin: 0 3px;
position: relative;
top: -1px;
cursor: pointer;
}
</style>
</head>
<body class="layui-form">
<div class="layui-card">
<div class="layui-card-body">
<table class="layui-table" id="myTable"></table>
<script type="text/html" id="table-bar">
<span class="woo-tool-span woo-tool-text-span" lay-event="view"><a
class="woo-theme-color">审核详情</a></span>
</script>
</div>
</div>
<script src="../../../../component/layui/layui.js"></script>
<script>
layui.use(function () {
var $ = layui.jquery;
var table = layui.table;
var form = layui.form;
var laytpl = layui.laytpl;
table.render({
elem: '#myTable',
url: '/QingLong/zbdc/CheckViewListBySchool',
height: 'full-30',
page: {
limit: 15
, layout: ['count', 'prev', 'page', 'next', 'skip']
, prev: "上一页"
, next: "下一页"
},
cols: [[
{ title: '序号', align: 'center', width: "10%", type: 'numbers' },
{ title: '上报内容', field: 'data_name', align: 'center', width: "25%" },
{ title: '最后提交时间', field: 'create_time', align: 'center', width: "20%" },
{ title: '状态', field: 'check_type_name', align: 'center', width: "20%" },
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "25%" }
]],
// skin: 'line',
defaultToolbar: []
});
table.on('tool(myTable)', function (obj) {
console.log(obj.data);
layer.open({
type: 2,
title: obj.data.data_name,
shade: 0.1,
area: ['800px', '512px'],
content: './examine_search_details.html?year=' + obj.data.year
});
});
});
</script>
</body>
</html>