Commit f6423ede by wangxing

导出数据修改

parent 1a548471
...@@ -1864,11 +1864,12 @@ ...@@ -1864,11 +1864,12 @@
} }
}); });
}); });
//解析已选待选表头
function getTableSetDom() { function getTableSetDom() {
var searchType = navCategory.searchType; var searchType = navCategory.searchType;
if (searchType) { if (searchType) {
var table_header_info; var table_header_info;//默认表头数组 目前,因保存查询表头记录,默认表头弃用
var list_config; var list_config;//待选表头数组
if (searchType == "xyr") { if (searchType == "xyr") {
table_header_info = xyrcheckConfig['checkList'][0]; table_header_info = xyrcheckConfig['checkList'][0];
list_config = xyrwaitingConfig['checkList'][0]; list_config = xyrwaitingConfig['checkList'][0];
...@@ -2082,7 +2083,7 @@ ...@@ -2082,7 +2083,7 @@
id=groupid; id=groupid;
} }
str+="<div class=\"newNav\" id=\""+id+"\">"; str+="<div class=\"newNav\" id=\""+id+"\">";
str+="<div class=\"newNavTop\">"+text+"分类</div>"; str+="<div class=\"newNavTop\">"+text+"分类</div>";//分类显示
str+="<div class=\"newNavbody\">"; str+="<div class=\"newNavbody\">";
str+="<div class=\"newLayoutDiv pull-clear\">"; str+="<div class=\"newLayoutDiv pull-clear\">";
var daohan = ""; var daohan = "";
...@@ -2090,45 +2091,35 @@ ...@@ -2090,45 +2091,35 @@
daohan = item.daohan;; daohan = item.daohan;;
str+=item.daohan+"</div>"; str+=item.daohan+"</div>";
}else{ }else{
str+="<a onclick=\"navCategory.searchForm('"+searchType+"');\" class=\"newNavA pull-left\">"+text+"导航</a>"; str+="<a onclick=\"navCategory.searchForm('"+searchType+"');\" class=\"newNavA pull-left\">"+text+"导航</a>"; //导航显示
str+="<a onclick=\"navCategory.goSlide(this)\" class=\"newNavA newNavBtn newMore newNavTools pull-right\">更多</a>"; str+="<a onclick=\"navCategory.goSlide(this)\" class=\"newNavA newNavBtn newMore newNavTools pull-right\">更多</a>";
str+="<div class=\"fillColorCheckBox pull-right\"></div></div>"; str+="<div class=\"fillColorCheckBox pull-right\"></div></div>";
} }
str+="<div class=\"newNavInfo\" isshowed=\"false\"><div class=\"newClear\"></div>"; str+="<div class=\"newNavInfo\" isshowed=\"false\"><div class=\"newClear\"></div>";
var num=item.groupList.length-1; var num=item.groupList.length-1;
$.each(item.groupList,function(i,item){ $.each(item.groupList,function(i,item){
//导航栏选择解析
var groupvalue = item.groupValue; var groupvalue = item.groupValue;
//十指指纹编号和人员DNA编号分类(已采集,未采集)
if (groupid == "SZZWBH" || groupid == 'RYDNABH') { if (groupid == "SZZWBH" || groupid == 'RYDNABH') {
if (groupvalue == null || groupvalue == 'null') { if (groupvalue == null || groupvalue == 'null') {
groupvalue = "未采集"; groupvalue = "未采集";
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{ }else{
groupvalue = "已采集"; groupvalue = "已采集";
if(i==num){ if(i==num){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + num + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + num + ")</a>";
} }
} }
}else{ }else{
if (groupvalue == null || groupvalue == 'null') { if (groupvalue == null || groupvalue == 'null') {
groupvalue = "未知"; groupvalue = "未知";
} }
//公安机关机构代码解析,共四级,
if(groupid.indexOf("GAJGJGDM")!=-1) { if(groupid.indexOf("GAJGJGDM")!=-1) {
if(groupid.indexOf("GAJGJGDM_FIRST")>0){ if(groupid.indexOf("GAJGJGDM_FIRST")>0){
if (groupvalue == "未知") { if (groupvalue == "未知") {
if(groupid.indexOf("XXDJDW")!=-1){ str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFirstLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FIRST", "GAJGMC") + "','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFirstLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FIRST", "GAJGMC") + "','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFirstLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FIRST", "GAJGMC") + "','" + groupvalue + "','','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}
} else { } else {
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFirstLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FIRST","GAJGJGDM_SECOND") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFirstLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FIRST","GAJGJGDM_SECOND") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
} }
...@@ -2149,7 +2140,6 @@ ...@@ -2149,7 +2140,6 @@
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FOURTH","GAJGMC") + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FOURTH","GAJGMC") + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{ }else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFourthLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FOURTH","GAJGMC") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgjgdmFourthLevel('" + searchType + "','" + groupid.replace("GAJGJGDM_FOURTH","GAJGMC") + "','" + item.groupValue + "','" + item.groupid + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
} }
}else if(groupid.indexOf("GAJGMC")>0){ }else if(groupid.indexOf("GAJGMC")>0){
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getGajgmcLevel('" + searchType + "','" + groupid + "','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
...@@ -2234,19 +2224,21 @@ ...@@ -2234,19 +2224,21 @@
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.searchFormByDate('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.searchFormByDate('" + searchType + "','"+groupid+"','" + item.groupValue + "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
}else{ }else{
str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>"; str += "<a class=\"newNavA\" style=\"text-decoration:none;\" onclick=\"navCategory.getSingleCodeLevel('" + searchType + "','"+groupid+"','" + item.groupValue + "','" +groupvalue+ "','" + id + "')\">" + groupvalue + "(" + item.groupNum + ")</a>";
} } }
}
}); });
str+=" </div> </div> </div>"; str+=" </div> </div> </div>";
}); });
$("#groupList").html(str); $("#groupList").html(str);
} }
//导出功能
function daochu(){ function daochu(){
if(!total){ if(!total){
layer.alert("请先查询!"); layer.alert("请先查询!");
}else{ }else{
if(total <= 5000){
var selectedCols=""; var selectedCols="";
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
if(selected_ul.length>0){ if(selected_ul.length>0){
selected_ul.each(function(index){ selected_ul.each(function(index){
if(index==selected_ul.length-1){ if(index==selected_ul.length-1){
...@@ -2255,9 +2247,7 @@ ...@@ -2255,9 +2247,7 @@
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+","; selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+",";
} }
}); });
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
var searchType = navCategory.searchType; var searchType = navCategory.searchType;
var url = ""; var url = "";
var sorlInstance = ""; var sorlInstance = "";
...@@ -2275,13 +2265,17 @@ ...@@ -2275,13 +2265,17 @@
$.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组 $.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组
checkIds.push(item.id); checkIds.push(item.id);
}); });
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
} }
}else{ if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!"); layer.alert("最大导出数量不能大于5000条!");
} }
} }
...@@ -2335,6 +2329,7 @@ ...@@ -2335,6 +2329,7 @@
</div> </div>
{{/for}} {{/for}}
</script> </script>
<script id="pagerXyrPageData" type="text/x-jsrender"> <script id="pagerXyrPageData" type="text/x-jsrender">
{{for #data}} {{for #data}}
<div class="currResult"> <div class="currResult">
...@@ -2433,6 +2428,7 @@ ...@@ -2433,6 +2428,7 @@
</p> </p>
</div> </div>
{{/for}} {{/for}}
</script> </script>
<div class="backToTop" title="返回顶部" style="display: none;"><img src="static/rasc/images/gotop.png"></div> <div class="backToTop" title="返回顶部" style="display: none;"><img src="static/rasc/images/gotop.png"></div>
</body> </body>
......
...@@ -3044,7 +3044,6 @@ ...@@ -3044,7 +3044,6 @@
if (!total) { if (!total) {
layer.alert("请先查询!"); layer.alert("请先查询!");
} else { } else {
if (total <= 5000) {
var selectedCols = ""; var selectedCols = "";
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
if (selected_ul.length > 0) { if (selected_ul.length > 0) {
...@@ -3055,9 +3054,6 @@ ...@@ -3055,9 +3054,6 @@
selectedCols += $(this).attr('name') + ":" + $(this).attr('rel') + ","; selectedCols += $(this).attr('name') + ":" + $(this).attr('rel') + ",";
} }
}); });
var index = layer.load(1, {
shade: [0.1, '#fff'] //0.1透明度的白色背景
});
var searchType = navCategory.searchType; var searchType = navCategory.searchType;
var url = ""; var url = "";
var sorlInstance = ""; var sorlInstance = "";
...@@ -3075,19 +3071,23 @@ ...@@ -3075,19 +3071,23 @@
$.each($('#Table').datagrid('getChecked'), function (index, item) { //把所有被选中的复选框的值存入数组 $.each($('#Table').datagrid('getChecked'), function (index, item) { //把所有被选中的复选框的值存入数组
checkIds.push(item.id); checkIds.push(item.id);
}); });
$.post(url, {
"listMapStr": listMapStr,
"selectedCols": selectedCols,
"maxValue": 5000,
"sorlInstance": sorlInstance,
"checkIds[]": checkIds
}, function (data) {
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
} }
} else { if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1, '#fff'] //0.1透明度的白色背景
});
$.post(url, {
"listMapStr": listMapStr,
"selectedCols": selectedCols,
"maxValue": 5000,
"sorlInstance": sorlInstance,
"checkIds[]": checkIds
}, function (data) {
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!"); layer.alert("最大导出数量不能大于5000条!");
} }
} }
......
...@@ -930,7 +930,6 @@ ...@@ -930,7 +930,6 @@
if(!total){ if(!total){
layer.alert("请先查询!"); layer.alert("请先查询!");
}else{ }else{
if(total <= 5000){
var selectedCols=""; var selectedCols="";
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
if(selected_ul.length>0){ if(selected_ul.length>0){
...@@ -941,22 +940,23 @@ ...@@ -941,22 +940,23 @@
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+","; selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+",";
} }
}); });
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
var searchType = navCategory.searchType;
var url = "createFileRy"; var url = "createFileRy";
var checkIds = []; var checkIds = [];
$.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组 $.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组
checkIds.push(item.id); checkIds.push(item.id);
}); });
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
} }
}else{ if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!"); layer.alert("最大导出数量不能大于5000条!");
} }
} }
......
...@@ -15,6 +15,7 @@ var navCategory = { ...@@ -15,6 +15,7 @@ var navCategory = {
navCheckedAllFlag:false, navCheckedAllFlag:false,
searchForm: function(searchType,groupid,groupvalue,zdyl,daohan) { searchForm: function(searchType,groupid,groupvalue,zdyl,daohan) {
//searchType 为查询类型(案件、受害人、嫌疑人等)
var navFieldMap = navCategory.navFieldMap, var navFieldMap = navCategory.navFieldMap,
type = "case_div", type = "case_div",
forms = $("#"+type+" .div_form[flag='true']"), forms = $("#"+type+" .div_form[flag='true']"),
...@@ -165,7 +166,7 @@ var navCategory = { ...@@ -165,7 +166,7 @@ var navCategory = {
searchTerm.daohan = daohan; searchTerm.daohan = daohan;
var presentType = ""; var presentType = "";
var url = ""; var url = "";
var sorlInstance = ""; var sorlInstance = "";//需要查询的实例的名字
if(searchType=='aj'){ if(searchType=='aj'){
presentType = $('input[type=radio][name="asjPresentType"]:checked ').val(); presentType = $('input[type=radio][name="asjPresentType"]:checked ').val();
url = "listTbStAsj"; url = "listTbStAsj";
...@@ -229,6 +230,7 @@ var navCategory = { ...@@ -229,6 +230,7 @@ var navCategory = {
getTableSetDom(); getTableSetDom();
} }
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
//解析表头数据,将selectedCols 传入后台保存
var selectedCols=""; var selectedCols="";
selected_ul.each(function(index){ selected_ul.each(function(index){
if(index==selected_ul.length-1){ if(index==selected_ul.length-1){
...@@ -238,6 +240,7 @@ var navCategory = { ...@@ -238,6 +240,7 @@ var navCategory = {
} }
}); });
searchTerm.selectedCols = selectedCols; searchTerm.selectedCols = selectedCols;
//查询结果操作栏 添加庸才合一连接
if(selected_ul.length>0) { if(selected_ul.length>0) {
var s = "[[{title:'操作',field:'cz',align:'center',width:50,checkbox: true}," var s = "[[{title:'操作',field:'cz',align:'center',width:50,checkbox: true},"
selected_ul.each(function (index){ selected_ul.each(function (index){
...@@ -270,7 +273,7 @@ var navCategory = { ...@@ -270,7 +273,7 @@ var navCategory = {
fit: false, fit: false,
pagination: true, pagination: true,
pageSize: 10, pageSize: 10,
pageList: [10, 20], //rows pageList: [10, 20 ,30 ,40 ,50 ,100], //rows
pageNumber: 1, pageNumber: 1,
loadFilter: function (data) { loadFilter: function (data) {
zxajUrl = data.configMap.zxajurl; zxajUrl = data.configMap.zxajurl;
...@@ -291,16 +294,7 @@ var navCategory = { ...@@ -291,16 +294,7 @@ var navCategory = {
} }
} }
} }
/* zxajUrl = data.configMap.zxajurl; total = data.total; //查询结果总数
for(var i=0;i<data.rows.length;i++){
var bh = data.rows[i].id;
var stbh = data.rows[i].wzmst_stbh;
console.log("尸体编号"+data.rows[i].wzmst_stbh);
if(stbh.indexOf("S")==0){
data.rows[i].id="<a onclick=\"navCategory.stbhDetail('"+stbh+"','"+zxajUrl+"')\" title='查看尸体详情'>"+stbh+"</a>";
}
}*/
total = data.total;
listMapStr = data.flag; listMapStr = data.flag;
zhyyPath = data.configMap.zhyyPath; zhyyPath = data.configMap.zhyyPath;
mainUrl = data.configMap.mainurl; mainUrl = data.configMap.mainurl;
...@@ -328,7 +322,7 @@ var navCategory = { ...@@ -328,7 +322,7 @@ var navCategory = {
frozenColumns: [[]], frozenColumns: [[]],
pagination: true, pagination: true,
pageSize: 10, pageSize: 10,
pageList: [10, 20], //rows pageList: [10, 20 ,30 ,40 ,50 ,100], //rows
pageNumber: 1, pageNumber: 1,
loadFilter: function (data) { loadFilter: function (data) {
zxajUrl = data.configMap.zxajurl; zxajUrl = data.configMap.zxajurl;
......
...@@ -568,7 +568,6 @@ ...@@ -568,7 +568,6 @@
if(!total){ if(!total){
layer.alert("请先查询!"); layer.alert("请先查询!");
}else{ }else{
if(total <= 5000){
var selectedCols=""; var selectedCols="";
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
if(selected_ul.length>0){ if(selected_ul.length>0){
...@@ -579,9 +578,6 @@ ...@@ -579,9 +578,6 @@
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+","; selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+",";
} }
}); });
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
var searchType = navCategory.searchType; var searchType = navCategory.searchType;
var url = ""; var url = "";
var sorlInstance = ""; var sorlInstance = "";
...@@ -593,13 +589,18 @@ ...@@ -593,13 +589,18 @@
$.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组 $.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组
checkIds.push(item.id); checkIds.push(item.id);
}); });
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
} }
}else{ if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!"); layer.alert("最大导出数量不能大于5000条!");
} }
} }
......
...@@ -512,7 +512,6 @@ ...@@ -512,7 +512,6 @@
if(!total){ if(!total){
layer.alert("请先查询!"); layer.alert("请先查询!");
}else{ }else{
if(total <= 5000){
var selectedCols=""; var selectedCols="";
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
if(selected_ul.length>0){ if(selected_ul.length>0){
...@@ -523,9 +522,6 @@ ...@@ -523,9 +522,6 @@
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+","; selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+",";
} }
}); });
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
var searchType = navCategory.searchType; var searchType = navCategory.searchType;
var url = ""; var url = "";
var sorlInstance = ""; var sorlInstance = "";
...@@ -537,13 +533,18 @@ ...@@ -537,13 +533,18 @@
$.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组 $.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组
checkIds.push(item.id); checkIds.push(item.id);
}); });
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
} }
}else{ if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!"); layer.alert("最大导出数量不能大于5000条!");
} }
} }
......
...@@ -712,7 +712,6 @@ ...@@ -712,7 +712,6 @@
if(!total){ if(!total){
layer.alert("请先查询!"); layer.alert("请先查询!");
}else{ }else{
if(total <= 5000){
var selectedCols=""; var selectedCols="";
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
if(selected_ul.length>0){ if(selected_ul.length>0){
...@@ -723,9 +722,6 @@ ...@@ -723,9 +722,6 @@
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+","; selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+",";
} }
}); });
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
var searchType = navCategory.searchType; var searchType = navCategory.searchType;
var url = ""; var url = "";
var sorlInstance = ""; var sorlInstance = "";
...@@ -740,13 +736,18 @@ ...@@ -740,13 +736,18 @@
$.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组 $.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组
checkIds.push(item.id); checkIds.push(item.id);
}); });
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
} }
}else{ if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!"); layer.alert("最大导出数量不能大于5000条!");
} }
} }
......
...@@ -521,7 +521,6 @@ ...@@ -521,7 +521,6 @@
if(!total){ if(!total){
layer.alert("请先查询!"); layer.alert("请先查询!");
}else{ }else{
if(total <= 5000){
var selectedCols=""; var selectedCols="";
var selected_ul = $('#selected_ul li').find('div'); var selected_ul = $('#selected_ul li').find('div');
if(selected_ul.length>0){ if(selected_ul.length>0){
...@@ -532,9 +531,6 @@ ...@@ -532,9 +531,6 @@
selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+","; selectedCols +=$(this).attr('name')+":"+$(this).attr('rel')+",";
} }
}); });
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
var searchType = navCategory.searchType; var searchType = navCategory.searchType;
var url = ""; var url = "";
var sorlInstance = ""; var sorlInstance = "";
...@@ -546,13 +542,18 @@ ...@@ -546,13 +542,18 @@
$.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组 $.each($('#Table').datagrid('getChecked'), function(index, item){ //把所有被选中的复选框的值存入数组
checkIds.push(item.id); checkIds.push(item.id);
}); });
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
} }
}else{ if(checkIds.length != 0 || total < 5000){
var index = layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
$.post(url, {"listMapStr":listMapStr,"selectedCols":selectedCols,"maxValue":5000,"sorlInstance":sorlInstance,"checkIds[]":checkIds},function(data){
$("#fileName").val(data);
$("#downform").submit();
layer.close(index);
});
}else {
layer.alert("最大导出数量不能大于5000条!"); layer.alert("最大导出数量不能大于5000条!");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment