/**
|
* 邀请信息初始化
|
*/
|
var TDriverInviteInfo = {
|
id: "TDriverInviteInfoTable", //表格id
|
seItem: null, //选中的条目
|
table: null,
|
layerIndex: -1
|
};
|
|
/**
|
* 初始化表格的列
|
*/
|
TDriverInviteInfo.initColumn = function () {
|
return [
|
{field: 'selectItem', radio: true},
|
{title: '注册时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle',width:'20%'},
|
{title: '昵称/姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:'20%'},
|
{title: '手机号', field: 'phone', visible: true, align: 'center', valign: 'middle',width:'20%'},
|
{title: '类型', field: 'uType', visible: true, align: 'center', valign: 'middle',width:'20%',
|
formatter: function (value, row) {
|
if(row.uType=='1'){
|
return '乘客';
|
}else if(row.uType=='2'){
|
return '司机';
|
}else{
|
return '';
|
}
|
}
|
}
|
];
|
};
|
|
/**
|
* 查询邀请列表
|
*/
|
TDriverInviteInfo.search = function () {
|
var queryData = {};
|
queryData['time'] = $("#time").val();
|
TDriverInviteInfo.table.refresh({query: queryData});
|
};
|
TDriverInviteInfo.resetSearch = function () {
|
$("#time").val("");
|
TDriverInviteInfo.search();
|
};
|
|
$(function () {
|
var defaultColunms = TDriverInviteInfo.initColumn();
|
var table = new BSTable(TDriverInviteInfo.id, "/tDriver/InviteInfoList", defaultColunms);
|
// 设置物理分页server(逻辑分页client)
|
table.setPaginationType("server");
|
table.setQueryParams({
|
tDriverId: $("#tDriverId").val(),
|
});
|
TDriverInviteInfo.table = table.init();
|
});
|