|
|
@ -188,11 +188,11 @@ |
|
|
var prefix = ctx + "code/statisticsEnterprise"; |
|
|
var prefix = ctx + "code/statisticsEnterprise"; |
|
|
/*var myChart = echarts.init(document.getElementById('container'));*/ |
|
|
/*var myChart = echarts.init(document.getElementById('container'));*/ |
|
|
var myChart = echarts.init(document.getElementById('echartEnterprise')); |
|
|
var myChart = echarts.init(document.getElementById('echartEnterprise')); |
|
|
var detailsStatus=false |
|
|
var detailsStatus=false; |
|
|
var detailsId="" |
|
|
var detailsId=""; |
|
|
var pickQY="" |
|
|
var pickQY=""; |
|
|
var pickJD="" |
|
|
var pickJD=""; |
|
|
var pickQY1="" |
|
|
var pickQY1=""; |
|
|
window.onload = function () { |
|
|
window.onload = function () { |
|
|
$("#quarter2").hide(); |
|
|
$("#quarter2").hide(); |
|
|
$("#month2").hide(); |
|
|
$("#month2").hide(); |
|
|
@ -247,7 +247,7 @@ |
|
|
{ |
|
|
{ |
|
|
title : '详情', |
|
|
title : '详情', |
|
|
formatter:function (value,row,index) { |
|
|
formatter:function (value,row,index) { |
|
|
console.log(row) |
|
|
console.log(row); |
|
|
if(row.totalNumber == 0){ |
|
|
if(row.totalNumber == 0){ |
|
|
return "<span>详情</span>"; |
|
|
return "<span>详情</span>"; |
|
|
}else{ |
|
|
}else{ |
|
|
@ -298,14 +298,14 @@ |
|
|
document.getElementById(`${prefix}-tab${num}`).classList.add('active'); |
|
|
document.getElementById(`${prefix}-tab${num}`).classList.add('active'); |
|
|
} |
|
|
} |
|
|
function searchE(){ |
|
|
function searchE(){ |
|
|
console.log(detailsStatus) |
|
|
console.log(detailsStatus); |
|
|
console.log(detailsId) |
|
|
console.log(detailsId); |
|
|
if(!detailsStatus){ |
|
|
if(!detailsStatus){ |
|
|
eTable1(); |
|
|
eTable1(); |
|
|
closeE(); |
|
|
closeE(); |
|
|
frag1(); |
|
|
frag1(); |
|
|
}else{ |
|
|
}else{ |
|
|
console.log(detailsId=='bootstrap-table1') |
|
|
console.log(detailsId=='bootstrap-table1'); |
|
|
if(detailsId=='bootstrap-table1'){ |
|
|
if(detailsId=='bootstrap-table1'){ |
|
|
openDetailsQY(pickQY) |
|
|
openDetailsQY(pickQY) |
|
|
}else{ |
|
|
}else{ |
|
|
@ -315,7 +315,7 @@ |
|
|
} |
|
|
} |
|
|
function restE(){ |
|
|
function restE(){ |
|
|
$('form').eq(0).trigger("reset"); |
|
|
$('form').eq(0).trigger("reset"); |
|
|
closeDetails() |
|
|
closeDetails(); |
|
|
searchE(); |
|
|
searchE(); |
|
|
addressMake(); |
|
|
addressMake(); |
|
|
frag1(); |
|
|
frag1(); |
|
|
@ -508,7 +508,7 @@ |
|
|
{ |
|
|
{ |
|
|
title:'详情', |
|
|
title:'详情', |
|
|
formatter:function (value,row,index) { |
|
|
formatter:function (value,row,index) { |
|
|
console.log(row) |
|
|
console.log(row); |
|
|
if(row.totalNumber == 0){ |
|
|
if(row.totalNumber == 0){ |
|
|
return "<span>详情</span>"; |
|
|
return "<span>详情</span>"; |
|
|
}else{ |
|
|
}else{ |
|
|
@ -589,7 +589,7 @@ |
|
|
console.log(qy); |
|
|
console.log(qy); |
|
|
var currentId=$('form').eq(0).attr('id'); |
|
|
var currentId=$('form').eq(0).attr('id'); |
|
|
var params = $.common.formToJSON(currentId); |
|
|
var params = $.common.formToJSON(currentId); |
|
|
console.log(params) |
|
|
console.log(params); |
|
|
params.qy=qy; |
|
|
params.qy=qy; |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url:prefix+'/QYDetails', |
|
|
url:prefix+'/QYDetails', |
|
|
@ -699,7 +699,7 @@ |
|
|
console.log(jd); |
|
|
console.log(jd); |
|
|
var currentId=$('form').eq(0).attr('id'); |
|
|
var currentId=$('form').eq(0).attr('id'); |
|
|
var params = $.common.formToJSON(currentId); |
|
|
var params = $.common.formToJSON(currentId); |
|
|
console.log(params) |
|
|
console.log(params); |
|
|
params.qy=qy; |
|
|
params.qy=qy; |
|
|
params.jd=jd; |
|
|
params.jd=jd; |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
@ -802,7 +802,7 @@ |
|
|
$('#qy').prop('disabled',false); |
|
|
$('#qy').prop('disabled',false); |
|
|
$('#jd').prop('disabled',false); |
|
|
$('#jd').prop('disabled',false); |
|
|
$('#bootstrap-table-details').bootstrapTable('destroy'); |
|
|
$('#bootstrap-table-details').bootstrapTable('destroy'); |
|
|
detailsStatus=false |
|
|
detailsStatus=false; |
|
|
if(detailsId=='bootstrap-table1'){ |
|
|
if(detailsId=='bootstrap-table1'){ |
|
|
//关闭前区域列表 |
|
|
//关闭前区域列表 |
|
|
$('#closeButtonDQY').hide(); |
|
|
$('#closeButtonDQY').hide(); |
|
|
@ -810,7 +810,7 @@ |
|
|
pickQY=""; |
|
|
pickQY=""; |
|
|
}else{ |
|
|
}else{ |
|
|
$('#bootstrap-table, .fixed-table-pagination').show(); |
|
|
$('#bootstrap-table, .fixed-table-pagination').show(); |
|
|
$('#closeButton').show() |
|
|
$('#closeButton').show(); |
|
|
$('#closeButtonDJD').hide(); |
|
|
$('#closeButtonDJD').hide(); |
|
|
pickQY=""; |
|
|
pickQY=""; |
|
|
pickJD=""; |
|
|
pickJD=""; |
|
|
@ -821,31 +821,34 @@ |
|
|
function downloadI1(){ |
|
|
function downloadI1(){ |
|
|
var currentId=$('form').eq(0).attr('id'); |
|
|
var currentId=$('form').eq(0).attr('id'); |
|
|
var params = $.common.formToJSON(currentId); |
|
|
var params = $.common.formToJSON(currentId); |
|
|
$.ajax({ |
|
|
// $.ajax({ |
|
|
type: "POST", |
|
|
// type: "POST", |
|
|
data: JSON.stringify(params), |
|
|
// data: JSON.stringify(params), |
|
|
contentType: 'application/json', |
|
|
// contentType: 'application/json', |
|
|
//设置响应类型 |
|
|
// //设置响应类型 |
|
|
xhrFields: {responseType: "blob"}, |
|
|
// xhrFields: {responseType: "text"}, |
|
|
url: prefix+"/export1", |
|
|
// url: prefix+"/export1", |
|
|
success: function (result) { |
|
|
// success: function (result) { |
|
|
const link = document.createElement('a'); |
|
|
// const link = document.createElement('a'); |
|
|
let blob = new Blob([result], {type: 'application/vnd.ms-excel'}); |
|
|
// let blob = new Blob([result], {type: 'application/vnd.ms-excel'}); |
|
|
link.style.display = 'none'; |
|
|
// link.style.display = 'none'; |
|
|
link.href = URL.createObjectURL(blob); |
|
|
// link.href = URL.createObjectURL(blob); |
|
|
link.setAttribute('download', "企业数量统计.xls"); |
|
|
// link.setAttribute('download', "企业数量统计.xls"); |
|
|
document.body.appendChild(link); |
|
|
// document.body.appendChild(link); |
|
|
link.click(); |
|
|
// link.click(); |
|
|
document.body.removeChild(link) |
|
|
// document.body.removeChild(link) |
|
|
} |
|
|
// } |
|
|
}) |
|
|
// }) |
|
|
|
|
|
// window.open(prefix+"/export1", "parent"); |
|
|
|
|
|
window.location.href = prefix+"/export1"; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
function downloadI2(){ |
|
|
function downloadI2(){ |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
type: "POST", |
|
|
type: "POST", |
|
|
contentType: 'application/json', |
|
|
contentType: 'application/json', |
|
|
//设置响应类型 |
|
|
//设置响应类型 |
|
|
xhrFields: {responseType: "blob"}, |
|
|
xhrFields: {responseType: "text"}, |
|
|
url: prefix+"/export2", |
|
|
url: prefix+"/export2", |
|
|
success: function (result) { |
|
|
success: function (result) { |
|
|
const link = document.createElement('a'); |
|
|
const link = document.createElement('a'); |
|
|
|