From bd3c4b90882fc29711a5e73f4929db2da3e22cb6 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期五, 06 三月 2026 11:14:11 +0800
Subject: [PATCH] 建模gis监管页面样式修改
---
fzzy-igdss-web/src/main/resources/static/group/gis-chart.js | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 154 insertions(+), 1 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/static/group/gis-chart.js b/fzzy-igdss-web/src/main/resources/static/group/gis-chart.js
index 841aa77..484701a 100644
--- a/fzzy-igdss-web/src/main/resources/static/group/gis-chart.js
+++ b/fzzy-igdss-web/src/main/resources/static/group/gis-chart.js
@@ -234,4 +234,157 @@
]
};
barChart.setOption(option);
-}
\ No newline at end of file
+}
+
+function modelingBarChartLoad(id) {
+ var dom = document.getElementById(id);
+ var barChart = echarts.init(dom);
+ var predata = [];
+ var ydata = [];
+ if (gisData) {
+ predata[0] = gisData.bankSumPer;
+ ydata[0] = gisData.bankSum;
+ } else {
+ predata = [50];
+ ydata = [500];
+ }
+ var option = {
+ grid: {
+ top: '20%',
+ left: '2%',
+ right: '5%',
+ bottom: '1%',
+ },
+ tooltip: {
+ show: true,
+ trigger: "axis",
+ formatter: function (data) {
+ let result = '';
+ let content = '';
+ for (let i = 0; i < data.length - 1; i++) {
+ if (data[i].componentSubType === 'bar' && data[i].seriesName !== '鑳屾櫙鏉�') {
+ content += `${data[i].marker} ${data[i].seriesName}<span style='font-size:12px; float:right;margin-left:20px;'>${data[i].data}</span><br/>`
+ result = `<span style='font-size: 14px;'>${data[i].name}</span> <br/> ${content}`;
+ }
+ }
+ return result;
+ }
+ },
+ xAxis: {
+ splitLine: {
+ show: false
+ },
+ axisLabel: {
+ margin: 20,
+ show: false
+ },
+ axisTick: {
+ show: false
+ },
+ axisLine: {
+ show: false
+ }
+ },
+ yAxis: [{
+ inverse: true,
+ type: 'category',
+ splitLine: {
+ show: false
+ },
+ axisLine: {
+ show: false
+ },
+ axisLabel: {
+ align: 'left',
+ verticalAlign: 'bottom',
+ padding: [0, 0, 26, 10],
+ fontSize: "18",
+ color: '#fff',
+ formatter: function (param) {
+ return ['{img|}' + '{b|' + param + '}']
+ },
+ rich: {
+ b: {
+ fontSize: 18,
+ color: '#fff',
+ padding: [0, 0, 0, 10]
+ },
+ img: {
+ backgroundColor: {
+ image: '/img/web/group/c-i1.png',
+ },
+ width: 17,
+ align: 'left',
+ }
+ }
+ },
+ axisTick: {
+ show: false
+ },
+ data: ['璐ㄦ娂閲嶉噺'],
+ },
+ {
+ type: "category",
+ inverse: true,
+ axisTick: "none",
+ axisLine: "none",
+ show: true,
+ axisLabel: {
+ inside: true,
+ verticalAlign: "bottom",
+ textStyle: {
+ fontFamily: 'DINCond-Bold',
+ color: "#ffd12b",
+ fontSize: "20",
+ padding: [0, 0, 26, 0],
+ },
+ formatter: function (param) {
+ return toThousands(param)
+ }
+ },
+ data: ydata,
+ }
+ ],
+ series: [{
+ name: '鍗犳瘮',
+ type: 'bar',
+ stack: 'all',
+ barWidth: 12,
+ itemStyle: {
+ color: '#00e4fa'
+ },
+ data: predata,
+ z: 1
+ },
+ {
+ name: '杈呭姪鍊�',
+ type: 'pictorialBar',
+ barWidth: 12,
+ symbol: 'roundRect',
+ symbolMargin: 2,
+ symbolSize: [2, 12],
+ symbolOffset: [-2, '0%'],
+ symbolClip: true,
+ symbolRepeat: true,
+ itemStyle: {
+ color: '#082640'
+ },
+ data: [100],
+ z: 2
+ },
+ {
+ name: '鑳屾櫙鏉�',
+ type: 'bar',
+ silent: true,
+ barWidth: 12,
+ barGap: '-100%',
+ itemStyle: {
+ color: '#082640'
+ },
+ data: [100],
+ z: 0
+ }
+ ]
+ };
+ barChart.setOption(option);
+}
--
Gitblit v1.9.3