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.
55 lines
1.3 KiB
55 lines
1.3 KiB
3 years ago
|
<!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="user-table" lay-filter="user-table"></table>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script type="text/html" id="tpStatus">
|
||
|
{{#if (d.c > 0) { }}
|
||
|
<span style="color: green;">已投</span>
|
||
|
{{# }else{ }}
|
||
|
<span style="color:orange;">未投</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: "20%" },
|
||
|
{ title: '姓名', field: 'toupiaoren_name', align: 'center', width: "40%" },
|
||
|
{ title: '是否投票', field: 'c', align: 'center', width: "40%", templet: '#tpStatus' }]
|
||
|
]
|
||
|
|
||
|
table.render({
|
||
|
elem: '#user-table',
|
||
|
url: '/FengHuang/TouPiao/getTouPiaoInfo',
|
||
|
cols: cols,
|
||
|
skin: 'line'
|
||
|
});
|
||
|
|
||
|
|
||
|
})
|
||
|
</script>
|
||
|
</body>
|
||
|
|
||
|
</html>
|