From a1cc1dca3ad00d2ac1b81c54b0f98b3684c31da1 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期四, 25 十二月 2025 11:48:20 +0800
Subject: [PATCH] Gis大屏调整及数据交互
---
fzzy-igdss-web/src/main/resources/static/group/gis.js | 45 +++++++++++++++++++++++++++++++++++++++++----
1 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/static/group/gis.js b/fzzy-igdss-web/src/main/resources/static/group/gis.js
index 2dcb88d..6e104f9 100644
--- a/fzzy-igdss-web/src/main/resources/static/group/gis.js
+++ b/fzzy-igdss-web/src/main/resources/static/group/gis.js
@@ -6,6 +6,7 @@
var markers = [];//鐐规爣璁�
var type = "0";
var county = "all";
+var breedChart = null;
//var switch2AreaNode2;
@@ -29,19 +30,33 @@
//鍒濆鍖栧湴鍥�
initMap();
- //宸︿晶鍥捐〃
+ //鍒濆鍖栧乏渚у浘琛�
pieChartLoad(
[
- {value: "0.000", name: '绋昏胺'},
- {value: "0.000", name: '鐜夌背'},
- {value: "0.000", name: '灏忛害'}
+ {value: "0", name: '浼婂畞甯�'},
+ {value: "0", name: '濂庡悲甯�'},
+ {value: "0", name: '闇嶅皵鏋滄柉甯�'},
+ {value: "0", name: '浼婂畞鍘�'},
+ {value: "0", name: '瀵熷竷鏌ュ皵閿′集鑷不鍘�'},
+ {value: "0", name: '闇嶅煄鍘�'},
+ {value: "0", name: '宸╃暀鍘�'},
+ {value: "0", name: '鏂版簮鍘�'},
+ {value: "0", name: '鏄嫃鍘�'},
+ {value: "0", name: '鐗瑰厠鏂幙'},
+ {value: "0", name: '灏煎嫆鍏嬪幙'}
],
'breedChart'
);
+ window.onresize = function (e) {
+ if (breedChart) {
+ breedChart.resize();
+ }
+ }
//娓叉煋閮ㄩ棬
renderList();
+ renderNum();
//瀹氫綅鍒版柊鐤嗙渷
setTimeout(function () {
positioning("650000");
@@ -353,6 +368,28 @@
}
}
+function renderNum() {
+ $("#foodSum").html(gisData.deptNum);
+
+ var foodNumPerHtml = '';
+ var color = ["0, 228, 250", "22, 226, 173", "255, 181, 23", "238, 60, 72", "135, 103, 255", "41, 122, 255", "238, 60, 144", "0, 228, 250", "22, 226, 173", "255, 181, 23", "238, 60, 72", "135, 103, 255", "41, 122, 255", "238, 60, 144"];
+ for (var i = 0; i < gisData.deptList.length; i++) {
+ foodNumPerHtml += '<li><div class="con" style="background-color: rgba('+color[i]+',.05);">';
+ foodNumPerHtml += '<div class="dot" style="background-color: rgb('+color[i]+');"></div>';
+ foodNumPerHtml += '<div class="num" style="color: rgb('+color[i]+');">'+gisData.deptList[i].percent+'%</div>';
+ foodNumPerHtml += '<div class="type">'+gisData.deptList[i].name+'</div>';
+ foodNumPerHtml += '</div></li>';
+ }
+ $("#foodNumPer").html(foodNumPerHtml);
+ if (gisData.deptList.length > 0) {
+ var varietyChart = breedChart;
+ varietyChart.option.series[0].data = gisData.deptList;
+ varietyChart.chart.setOption(varietyChart.option, true);
+ breedChart = varietyChart;
+ }
+ barChartLoad("ss");
+}
+
/**
* 鑾峰彇鍦板浘琛屾斂鍖哄煙棰滆壊
* @param adcode
--
Gitblit v1.9.3