You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
35
hyhproject/admin/view/logsms/logsms.js
Executable file
35
hyhproject/admin/view/logsms/logsms.js
Executable file
@ -0,0 +1,35 @@
|
||||
var mmg;
|
||||
$(function(){
|
||||
var laydate = layui.laydate;
|
||||
laydate.render({
|
||||
elem: '#startDate'
|
||||
});
|
||||
laydate.render({
|
||||
elem: '#endDate'
|
||||
});
|
||||
var h = WST.pageHeight();
|
||||
var cols = [
|
||||
{title:'使用者ID', name:'smsUserId', width: 30},
|
||||
{title:'消息内容', name:'smsContent' ,width:120},
|
||||
{title:'消息代码', name:'smsCode' ,width:120},
|
||||
{title:'发送方式', name:'smsFunc' ,width:80},
|
||||
{title:'发送号码', name:'smsPhoneNumber' ,width:100},
|
||||
{title:'消息IP', name:'smsIP' ,width:70},
|
||||
{title:'发送时间', name:'createTime' ,width:70},
|
||||
{title:'返回状态', name:'smsReturnCode' ,width:30}
|
||||
];
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: h-155,indexCol: true,indexColWidth:50,cols: cols,method:'POST',
|
||||
url: WST.U('admin/logsms/pageQuery'), fullWidthRows: true, autoLoad: true,
|
||||
plugins: [
|
||||
$('#pg').mmPaginator({})
|
||||
]
|
||||
});
|
||||
$('#headTip').WSTTips({width:90,height:35,callback:function(v){
|
||||
var diff = v?155:128;
|
||||
mmg.resize({height:h-diff})
|
||||
}});
|
||||
})
|
||||
function loadGrid(){
|
||||
mmg.load({page:1,startDate:$('#startDate').val(),endDate:$('#endDate').val()});
|
||||
}
|
Reference in New Issue
Block a user