这么做的导出可以按照事先准备的excel格式与央视进行导出,看着会舒心一点。并无其他用处。
jsp页面(jeecg框架)
<t:dgToolBar title="政审导出" icon="icon-download" url="" funname="exportFile('${fid}','excel')" ></t:dgToolBar>
js方法
function exportFile(dqjcid,type){
var plansize = $('#exhibitorList').datagrid('getRows').length;
if(plansize == 0){
tip('无数据!');
return;
}
var jcid = $("select[name='forthetimeid'] option:selected").val();
var jcids = "";
if(jcid){
jcids = "&jcid="+jcid;
}else{
jcids = "&jcid="+dqjcid;
}
var params = "";
var url = "";
if(type == 'excel'){
url = "activityplanController.do?exportXlsZS";
}
var ids = [];
var rows = $("#exhibitorList").datagrid('getSelections');
if (rows.length > 0) {