You've already forked qlg.tsgz.moe
3
This commit is contained in:
43
hyhproject/admin/view/log_sys_data/log_sys_data3.js
Normal file
43
hyhproject/admin/view/log_sys_data/log_sys_data3.js
Normal file
@ -0,0 +1,43 @@
|
||||
var mmg;
|
||||
function initGrid(){
|
||||
var h = WST.pageHeight();
|
||||
var cols = [
|
||||
{title:'用户', name:'loginName' ,width:120},
|
||||
{title:'预获产品券', name:'expectedProductNum' ,width:200,renderer: function(val,item,rowIndex){
|
||||
if(item.moneyType!=1){
|
||||
val = '-'+val;
|
||||
}
|
||||
return "¥"+val;
|
||||
}},
|
||||
{title:'预获优惠券', name:'expectedCouponsNum' ,width:200,renderer: function(val,item,rowIndex){
|
||||
if(item.moneyType!=1){
|
||||
val = '-'+val;
|
||||
}
|
||||
return "¥"+val;
|
||||
}},
|
||||
{title:'描述', name:'remark' ,width:240,sortable:true},
|
||||
{title:'时间', name:'createTime' ,width:120,sortable:true},
|
||||
];
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: h-85,indexCol: true, cols: cols,method:'POST',checkCol:false,multiSelect:true,
|
||||
url: WST.U('admin/log_sys_data/uvData'), 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