查询的时候sql里有重复语句
除了refrshoption和destory的方法还有啥办法,最好有代码
Data.search = function () {
/*if($("#dataName").val()==""&&$("#PROVINCE").val()==0&$("#CITY").val()==0&$("#DISTRICT").val()==0&$("#STREET").val()==0&$("#COMMUNITY").val()==0){
Feng.error("请输入查询内容!");
return;
}*/
$('#'+Data.id).bootstrapTable('refreshOptions',{pageNumber:1});
Data.table.refresh({query: Data.formParams()});
Data.ext();
};
Data.ext = function(){
setTimeout(function() {
var totalstr = $('.pagination-info').text();
var matchResult = /总共 ([\d.]+?) 条记录/.exec(totalstr);
$('#id_end').val(parseInt(matchResult[1]));
var num = parseInt(matchResult[1]/60000);
var html = "";
if(num>0){
for(var i =0;i
html+="导出"+(i*60000+1)+"-"+(i+1)*60000+"";
}
html+="导出"+(num*60000+1)+"-"+parseInt(matchResult[1])+"";
}else{
html+="导出1-"+parseInt(matchResult[1])+"";
}
$("#modal-export .form-group").html(html);
},1500);
};
$(function () {
var defaultColunms = Data.initColumn();
var table = new BSTable(Data.id, Feng.ctxPath + "/data/list", defaultColunms);
table.setPaginationType("server");
Data.table = table.init();
Data.ext();
});