12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- ;
- layui.define(['form','table','code'], function (e) {
- var s = layui.$,
- l = (layui.layer, layui.laytpl, layui.setter, layui.view, layui.admin),
- table = layui.table,
- upload = layui.upload,
- code = layui.code,
- form = layui.form;
- table.render({
- elem:'#log-table'
- ,url:'load.html'
- ,where:{position:s('input[name=position]').val()}
- ,toolbar:'#topToolbar'
- ,cols: [[
- {field:'id', title: 'ID'}
- ,{field:'user', title: '用户'}
- ,{field:'action',title:'操作模块'}
- ,{field:'action_text',title:'操作说明'}
- ,{field:'create_time', title: '时间'}
- ,{title:'操作', fixed: 'right', width:150, align:'center', toolbar: '#rowToolbar'}
- ]]
- ,id: 'log-table'
- ,page: true
- });
- table.on('tool(log)', function(obj){
- var data = obj.data;
- var layEvent = obj.event;
- var tr = obj.tr;
-
- if(layEvent === 'params'){
- layer.open({
- type: 2,
- title: '查看参数',
- shadeClose: true,
- shade: true,
- area: ['50%', '80%'],
- content: 'params.html?id='+data['id']
- });
- }
- });
- var log = function(){}
- e('log',new log());
- })
|