You've already forked qlg.tsgz.moe
列表页
This commit is contained in:
39
hyhproject/admin/view/log_sys_data/log_sys_data.js
Normal file
39
hyhproject/admin/view/log_sys_data/log_sys_data.js
Normal file
@ -0,0 +1,39 @@
|
||||
var mmg;
|
||||
function initGrid(){
|
||||
var h = WST.pageHeight();
|
||||
var cols = [
|
||||
{title:'类型', name:'type' ,width:200,renderer: function(val,item,rowIndex){
|
||||
if(val == 1) return '代快付';
|
||||
else return '代慢付'
|
||||
}},
|
||||
{title:'金额', name:'title' ,width:200,renderer: function(val,item,rowIndex){
|
||||
if(item.changeType!=1){
|
||||
val = '-'+val;
|
||||
}
|
||||
return "¥"+val;
|
||||
}},
|
||||
{title:'创建时间', name:'create_time' ,width:120,sortable:true},
|
||||
];
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: h-85,indexCol: true, cols: cols,method:'POST',checkCol:true,multiSelect:true,
|
||||
url: WST.U('admin/logSysData/pageQuery?type=1'), fullWidthRows: true, autoLoad: true,remoteSort: true,
|
||||
plugins: [
|
||||
$('#pg').mmPaginator({})
|
||||
]
|
||||
});
|
||||
mmg.on('loadSuccess',function(){
|
||||
layui.form.render('','gridForm');
|
||||
layui.form.on('switch(isShow)', function(data){
|
||||
var id = $(this).attr("data");
|
||||
if(this.checked){
|
||||
toggleIsShow(1,id);
|
||||
}else{
|
||||
toggleIsShow(0,id);
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
function loadGrid(){
|
||||
mmg.load({page:1});
|
||||
}
|
Reference in New Issue
Block a user