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.
64 lines
1.5 KiB
64 lines
1.5 KiB
<!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 type="text/html" id="tpIdentity">
|
|
{{#if (d.toupiaoren_type_id == 1) { }}
|
|
<span>评委会</span>
|
|
{{# }else{ }}
|
|
<span>群众</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: "10%" },
|
|
{ title: '姓名', field: 'toupiaoren_name', align: 'center', width: "30%" },
|
|
{ title: '投票人身份', align: 'center', width: "30%", templet: '#tpIdentity' },
|
|
{ title: '是否投票', align: 'center', width: "30%", templet: '#tpStatus' }]
|
|
]
|
|
|
|
table.render({
|
|
elem: '#user-table',
|
|
url: '/FengHuang/TouPiao/getTouPiaoInfo',
|
|
cols: cols,
|
|
skin: 'line'
|
|
});
|
|
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
|
|
</html> |