123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- {extend name="public/layout" /} {block name="title"}素材库{/block}
- {block name="body"}
- <style>
- html,
- body {
- display: block;
- /*min-width: 1100px;*/
- background-color: white;
- }
- </style>
- <body>
- <div class="layui-fluid">
- <table id="log" lay-filter="log"></table>
- </div>
- {/block}
- {block name="js"}
- <script>
- layui.config({
- base: '__LAYUI__/',
- urlbase: '/sys'
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'table'], function () {
- var $ = layui.$,
- table = layui.table;
- table.render({
- elem: '#log',
- url: '{:url("operate/log", ["id"=>$id])}',
- page: true,
- cols: [
- [{
- type: 'numbers',
- field: 'id',
- fixed: 'left',
- title: '序号',
- }, {
- field: 'addtime',
- title: '操作时间',
- }, {
- field: 'ip',
- title: 'IP',
- }, {
- field: 'content',
- title: '操作内容',
- }]
- ],
- text: '对不起,加载出现异常!'
- });
- });
- </script>
- {/block}
|