/**
|
* 角色管理的单例
|
*/
|
var Statistics = {
|
id: "StatisticsTable", //表格id
|
seItem: null, //选中的条目
|
table: null,
|
layerIndex: -1
|
};
|
|
/**
|
* 初始化表格的列
|
*/
|
Statistics.initColumn = function () {
|
var columns = [
|
{field: 'select_item', radio: true},
|
// {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
|
{title: '日期', field: 'changeDate', align: 'center', valign: 'middle'},
|
{title: '会员ID', field: 'code', align: 'center', valign: 'middle'},
|
{title: '用户手机号', field: 'phone', align: 'center', valign: 'middle'},
|
{title: '原等级', field: 'oldVipLevel', align: 'center', valign: 'middle'},
|
{title: '新等级', field: 'newVipLevel', align: 'center', valign: 'middle'},
|
]
|
return columns;
|
};
|
|
|
Statistics.exportStatistics = function(){
|
let time = $("#time").val();
|
window.location.href = Feng.ctxPath + "/statistics/upgrade" + ('' != time && null != time ? "?time=" + time : '');
|
}
|
|
Statistics.search = function () {
|
var queryData = {};
|
queryData['time'] = $("#time").val();
|
Statistics.table.setQueryParams({});
|
Statistics.table.refresh({query: queryData});
|
}
|
|
Statistics.resetSearch = function(){
|
$("#time").val($(".time").val());
|
Statistics.search();
|
}
|
|
|
$(function () {
|
var defaultColunms = Statistics.initColumn();
|
var table = new BSTable(Statistics.id, "/statistics/queryUpgrade", defaultColunms);
|
table.setPaginationType("server");
|
table.setQueryParams({
|
time: $("#time").val()
|
})
|
Statistics.table = table.init();
|
|
});
|