Browse Source

综合分析

v6
yanyan 1 year ago
parent
commit
d3734f6f79
  1. 5
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/overall-analysis.html
  2. 2
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/single-analysis.html

5
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/overall-analysis.html

@ -442,15 +442,16 @@
dataType: 'json', dataType: 'json',
contentType: "application/json", contentType: "application/json",
success: function(res) { success: function(res) {
debugger
var streetHtml = ''; var streetHtml = '';
var districtHtml = ''; var districtHtml = '';
if(res.success) { if(res.success) {
const datas = res.data; const datas = res.data;
for(var i=0; i<datas.length; i++) { for(var i=0; i<datas.length; i++) {
if (datas[i].zone==='4') { if (datas[i].zone===4) {
streetHtml += '<a class="selitem">'+datas[i].deptName+'</a>' streetHtml += '<a class="selitem">'+datas[i].deptName+'</a>'
} }
if (datas[i].zone==='3') { if (datas[i].zone===3) {
districtHtml += '<a class="selitem">'+datas[i].deptName+'</a>' districtHtml += '<a class="selitem">'+datas[i].deptName+'</a>'
} }
} }

2
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/single-analysis.html

@ -482,7 +482,7 @@
$.ajax({ $.ajax({
url: ctx + "code/statisticalPanel/queryDept", url: ctx + "code/statisticalPanel/queryDept",
type: "post", type: "post",
data: JSON.stringify({"zone": "1"}), data: JSON.stringify({"zone": 1}),
dataType: 'json', dataType: 'json',
contentType: "application/json", contentType: "application/json",
success: function(res) { success: function(res) {

Loading…
Cancel
Save