|
|
|
@ -21,25 +21,27 @@ |
|
|
|
<h1 class="headtit">深圳市各类行政检查实施情况分析</h1> |
|
|
|
<div class="seltime" id="searchDiv"> |
|
|
|
<i class="icsty"></i> |
|
|
|
<span><select id="qorm" name="qorm" onchange="selectDate()"> |
|
|
|
<span>时间类型:<select id="qorm" name="qorm" onchange="selectDate()"> |
|
|
|
<option value="q">季度</option> |
|
|
|
<option value="m">月度</option> |
|
|
|
</select>年度</span> |
|
|
|
<span><select id="year" name="year" onchange="selectDate()"> |
|
|
|
</select></span> |
|
|
|
<span>年度:<select id="year" name="year" onchange="selectDate()"> |
|
|
|
<option value="2027">2027</option> |
|
|
|
<option value="2026">2026</option> |
|
|
|
<option value="2025">2025</option> |
|
|
|
<option value="2024">2024</option> |
|
|
|
<option value="2023">2023</option> |
|
|
|
<option value="2022">2022</option> |
|
|
|
</select>年度</span> |
|
|
|
<span><select id="quarter" name="quarter" onchange="selectDate()"> |
|
|
|
</select></span> |
|
|
|
<span id="quarterName">季度:</span> |
|
|
|
<select id="quarter" name="quarter" onchange="selectDate()"> |
|
|
|
<option value="q1">1季度</option> |
|
|
|
<option value="q2">2季度</option> |
|
|
|
<option value="q3">3季度</option> |
|
|
|
<option value="q4">4季度</option> |
|
|
|
</select>季度</span> |
|
|
|
<span><select id="month" name="month" onchange="selectDate()"> |
|
|
|
</select> |
|
|
|
<span id="monthName">月度:</span> |
|
|
|
<select id="month" name="month" onchange="selectDate()"> |
|
|
|
<option value="01">1</option> |
|
|
|
<option value="02">2</option> |
|
|
|
<option value="03">3</option> |
|
|
|
@ -52,16 +54,16 @@ |
|
|
|
<option value="10">10</option> |
|
|
|
<option value="11">11</option> |
|
|
|
<option value="12">12</option> |
|
|
|
</select>月度</span> |
|
|
|
<span style="width: 20%"><select style="width: 80%" id="lawField" name="lawField" th:with="type=${@dict.getType('law_field')}" onchange="queryData()"> |
|
|
|
</select> |
|
|
|
<span style="width: 20%">领域:<select style="width: 80%" id="lawField" name="lawField" th:with="type=${@dict.getType('law_field')}" onchange="selectDate()"> |
|
|
|
<option value="">请选择</option> |
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|
|
|
</select>领域</span> |
|
|
|
<span style="width: 20%"> |
|
|
|
<select style="width: 80%" id="checkCategory" name="checkCategory" th:with="type=${@dict.getType('check_category')}" onchange="queryData()"> |
|
|
|
</select></span> |
|
|
|
<span style="width: 20%">类别: |
|
|
|
<select style="width: 80%" id="checkCategory" name="checkCategory" th:with="type=${@dict.getType('check_category')}" onchange="selectDate()"> |
|
|
|
<option value="">请选择</option> |
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|
|
|
</select>类别</span> |
|
|
|
</select></span> |
|
|
|
<div class="modelDiv"> |
|
|
|
<span style="display:flex; width: 50%">分析模板:</span> |
|
|
|
<select name="excelModel" id="excelModel" th:with="type=${@dict.getType('excelModel')}" class="form-control"> |
|
|
|
@ -150,7 +152,12 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function queryCaseAnalysis(qorm, year, quarter, month, month) { |
|
|
|
function queryCaseAnalysis(qorm, year, quarter, month) { |
|
|
|
if(qorm=="m"){ |
|
|
|
quarter=""; |
|
|
|
}else{ |
|
|
|
month=""; |
|
|
|
} |
|
|
|
$.ajax({ |
|
|
|
url: prefix + '/caseAnalysis', //后台url |
|
|
|
data: { |
|
|
|
@ -170,7 +177,12 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
function queryEnforcerAnalysis(qorm, year, quarter, month, month) { |
|
|
|
function queryEnforcerAnalysis(qorm, year, quarter, month) { |
|
|
|
if(qorm=="m"){ |
|
|
|
quarter=""; |
|
|
|
}else{ |
|
|
|
month=""; |
|
|
|
} |
|
|
|
$.ajax({ |
|
|
|
url: prefix + '/enforcerAnalysis', //后台url |
|
|
|
data: { |
|
|
|
@ -178,6 +190,8 @@ |
|
|
|
"year": year, |
|
|
|
"quarter": quarter, |
|
|
|
"month": month, |
|
|
|
"lawField": $('#lawField').val(), |
|
|
|
"checkCategory": $('#checkCategory').val(), |
|
|
|
}, |
|
|
|
type: "GET", |
|
|
|
dataType: 'json', |
|
|
|
@ -194,7 +208,12 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
function queryItemAnalysis(qorm, year, quarter, month, month) { |
|
|
|
function queryItemAnalysis(qorm, year, quarter, month) { |
|
|
|
if(qorm=="m"){ |
|
|
|
quarter=""; |
|
|
|
}else{ |
|
|
|
month=""; |
|
|
|
} |
|
|
|
$.ajax({ |
|
|
|
url: prefix + '/itemAnalysis', //后台url |
|
|
|
data: { |
|
|
|
@ -202,6 +221,8 @@ |
|
|
|
"year": year, |
|
|
|
"quarter": quarter, |
|
|
|
"month": month, |
|
|
|
"lawField": $('#lawField').val(), |
|
|
|
"checkCategory": $('#checkCategory').val(), |
|
|
|
}, |
|
|
|
type: "GET", |
|
|
|
dataType: 'json', |
|
|
|
@ -219,7 +240,12 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
function queryEnterpriseAnalysis(qorm, year, quarter, month, month) { |
|
|
|
function queryEnterpriseAnalysis(qorm, year, quarter, month) { |
|
|
|
if(qorm=="m"){ |
|
|
|
quarter=""; |
|
|
|
}else{ |
|
|
|
month=""; |
|
|
|
} |
|
|
|
$.ajax({ |
|
|
|
url: prefix + '/enterpriseAnalysis', //后台url |
|
|
|
data: { |
|
|
|
@ -227,6 +253,8 @@ |
|
|
|
"year": year, |
|
|
|
"quarter": quarter, |
|
|
|
"month": month, |
|
|
|
"lawField": $('#lawField').val(), |
|
|
|
"checkCategory": $('#checkCategory').val(), |
|
|
|
}, |
|
|
|
type: "GET", |
|
|
|
dataType: 'json', |
|
|
|
@ -244,7 +272,12 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
function queryEnterpriseSortAnalysis(qorm, year, quarter, month, month) { |
|
|
|
function queryEnterpriseSortAnalysis(qorm, year, quarter, month) { |
|
|
|
if(qorm=="m"){ |
|
|
|
quarter=""; |
|
|
|
}else{ |
|
|
|
month=""; |
|
|
|
} |
|
|
|
$.ajax({ |
|
|
|
url: prefix + '/enterpriseSortAnalysis', //后台url |
|
|
|
data: { |
|
|
|
@ -252,6 +285,8 @@ |
|
|
|
"year": year, |
|
|
|
"quarter": quarter, |
|
|
|
"month": month, |
|
|
|
"lawField": $('#lawField').val(), |
|
|
|
"checkCategory": $('#checkCategory').val(), |
|
|
|
}, |
|
|
|
type: "GET", |
|
|
|
dataType: 'json', |
|
|
|
@ -304,6 +339,18 @@ |
|
|
|
function selectDate() { |
|
|
|
var qormElement = document.getElementById("qorm"); |
|
|
|
var qormValue = qormElement.options[qormElement.selectedIndex].value; |
|
|
|
// 判断选择的月度还是季度 |
|
|
|
if ("m"==qormValue) { |
|
|
|
$("#monthName").show(); |
|
|
|
$("#quarterName").hide(); |
|
|
|
$("#month").show(); |
|
|
|
$("#quarter").hide(); |
|
|
|
} else { |
|
|
|
$("#monthName").hide(); |
|
|
|
$("#quarterName").show(); |
|
|
|
$("#month").hide(); |
|
|
|
$("#quarter").show(); |
|
|
|
} |
|
|
|
var yearElement = document.getElementById("year"); |
|
|
|
var yearValue = yearElement.options[yearElement.selectedIndex].value; |
|
|
|
var quarterElement = document.getElementById("quarter"); |
|
|
|
@ -458,7 +505,7 @@ |
|
|
|
* 导出excel |
|
|
|
* @param id 主键 |
|
|
|
*/ |
|
|
|
function exportData() { |
|
|
|
/*function exportData() { |
|
|
|
// $.modal.open("数据导出模板选择" , prefix + "/analysisModel", 800, 300); |
|
|
|
var div = document.getElementById('searchDiv'); |
|
|
|
var selects = div.getElementsByTagName('select'); |
|
|
|
@ -471,6 +518,62 @@ |
|
|
|
obj[name] = value; |
|
|
|
} |
|
|
|
window.location.href = prefix + "/export?statisticalStr=" + encodeURIComponent(JSON.stringify(obj)); |
|
|
|
}*/ |
|
|
|
function exportData() { |
|
|
|
console.log($('#excelModel').val()) |
|
|
|
var exportData= { |
|
|
|
"qorm": $('#qorm').val(), |
|
|
|
"year": $('#year').val(), |
|
|
|
"quarter": $('#quarter').val(), |
|
|
|
"month": $('#month').val(), |
|
|
|
"lawField": $('#lawField').val(), |
|
|
|
"checkCategory": $('#checkCategory').val(), |
|
|
|
}; |
|
|
|
if(exportData.qorm=="m"){ |
|
|
|
exportData.quarter=""; |
|
|
|
}else{ |
|
|
|
exportData.month=""; |
|
|
|
}; |
|
|
|
if($('#excelModel').val()==1) { |
|
|
|
$.ajax({ |
|
|
|
type: "POST", |
|
|
|
data: JSON.stringify(exportData), |
|
|
|
contentType: 'application/json', |
|
|
|
//设置响应类型 |
|
|
|
xhrFields: {responseType: "blob"}, |
|
|
|
url: prefix+"/exportLawEnforcerExcel", |
|
|
|
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) |
|
|
|
} |
|
|
|
}) |
|
|
|
}else if($('#excelModel').val()==2) { |
|
|
|
$.ajax({ |
|
|
|
type: "POST", |
|
|
|
data: JSON.stringify(exportData), |
|
|
|
contentType: 'application/json', |
|
|
|
//设置响应类型 |
|
|
|
xhrFields: {responseType: "blob"}, |
|
|
|
url: prefix+"/exportEnterpriseRankExcel", |
|
|
|
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) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</body> |
|
|
|
|