42 lines
1.4 KiB
JavaScript
Executable File
42 lines
1.4 KiB
JavaScript
Executable File
var mmg;
|
|
$(function(){
|
|
var laydate = layui.laydate;
|
|
laydate.render({
|
|
elem: '#startDate'
|
|
});
|
|
laydate.render({
|
|
elem: '#endDate'
|
|
});
|
|
})
|
|
function initGrid(){
|
|
var h = WST.pageHeight();
|
|
var cols = [
|
|
{title:'app注册数量', name:'appNum' ,width:30,sortable:true},
|
|
{title:'pc注册数量', name:'pcNum' ,width:30,sortable:true},
|
|
{title:'webapp注册数量', name:'webNum' ,width:30,sortable:true},
|
|
// {title:'商品名称', name:'goodsName', width: 120,sortable:true,renderer: function(val,item,rowIndex){
|
|
// return "<span><p>"+item['goodsName']+"</p></span>";
|
|
// }},
|
|
];
|
|
|
|
mmg = $('.mmg').mmGrid({height: (h-85),indexCol: true, indexColWidth:50, cols: cols,method:'POST',
|
|
url: WST.U('admin/platform/platformByPage'), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'goodsSn',sortStatus:'desc',
|
|
plugins: [
|
|
$('#pg').mmPaginator({})
|
|
]
|
|
});
|
|
}
|
|
function toExport(){
|
|
var params = {};
|
|
params = WST.getParams('.j-ipt');
|
|
var box = WST.confirm({content:"您确定要导出订单吗?",yes:function(){
|
|
layer.close(box);
|
|
location.href=WST.U('admin/platform/toExport',params);
|
|
}});
|
|
}
|
|
function loadGrid(){
|
|
var params = WST.getParams('.j-ipt');
|
|
params.page = 1;
|
|
mmg.load(params);
|
|
}
|