12345678910111213141516171819202122232425262728293031 |
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-body">
- <table id="{$lay_table}" lay-filter="{$lay_table}"></table>
- </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('evaluate/listCourse')}?id={$id}",
- cols: [
- [
- {field: 'text_name', title: '课程名称'},
- {field: 'evaluate_count', title: '报名人数', width: 160},
- {field: 'create_time', title: '创建时间', width: 160},
- ]
- ],
- page: true,
- limit: 50,
- cellMinWidth: 150,
- text: '对不起,加载出现异常!'
- });
- });
- </script>
|