1234567891011121314151617181920212223242526272829303132333435 |
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-body">
- <table id="{$lay_table}" lay-filter="{$lay_table}"></table>
- <script type="text/html" id="userTpl">
- {{d.user.nickname}}
- </script>
- </div>
- </div>
- </div>
- <script>
- layui.use(['index', 'admin', 'form', 'table'], function () {
- const form = layui.form;
- const table = layui.table;
- form.render();
- table.render({
- elem: '#{$lay_table}',
- url: "{:url('vote/listApply')}?vote_id={$id}",
- cols: [
- [
- {field: 'option_name', title: '选项名'},
- {field: 'user', title: '投票人', width: 160,templet: '#userTpl'},
- {field: 'update_time', title: '投票时间', width: 160, align: 'center'},
- ]
- ],
- page: true,
- limit: 50,
- cellMinWidth: 150,
- text: '对不起,加载出现异常!'
- });
- });
- </script>
|