diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statisticsEnterprise/statisticsEnterprise.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statisticsEnterprise/statisticsEnterprise.html index f7219467..e4ddf886 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statisticsEnterprise/statisticsEnterprise.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statisticsEnterprise/statisticsEnterprise.html @@ -61,7 +61,7 @@
  •  搜索  重置 - 导出 + 导出 返回
  • @@ -142,7 +142,7 @@

    -
  • 导出
  • +
  • 导出
  • @@ -506,7 +506,47 @@ eSearch2(); timeType2(); } - + function downloadI1(){ + var currentId=$('form').eq(0).attr('id'); + var params = $.common.formToJSON(currentId); + $.ajax({ + type: "POST", + data: JSON.stringify(params), + contentType: 'application/json', + //设置响应类型 + xhrFields: {responseType: "blob"}, + url: prefix+"/export1", + success: function (result) { + const link = document.createElement('a'); + let blob = new Blob([result], {type: 'application/vnd.ms-excel'}); + link.style.display = 'none'; + link.href = URL.createObjectURL(blob); + link.setAttribute('download', "执法检查统计.xls"); + document.body.appendChild(link); + link.click(); + document.body.removeChild(link) + } + }) + } + function downloadI2(){ + $.ajax({ + type: "POST", + contentType: 'application/json', + //设置响应类型 + xhrFields: {responseType: "blob"}, + url: prefix+"/export2", + success: function (result) { + const link = document.createElement('a'); + let blob = new Blob([result], {type: 'application/vnd.ms-excel'}); + link.style.display = 'none'; + link.href = URL.createObjectURL(blob); + link.setAttribute('download', "企业类型统计.xls"); + document.body.appendChild(link); + link.click(); + document.body.removeChild(link) + } + }) + } /*******echarts:企业类型/占比*********/ /* const ecsh = echarts.init(document.getElementById("echartEnterprise"));