From deb8a2c32ba0cb7a88819b54d720418cdc2f7ebb Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期二, 24 三月 2026 16:58:53 +0800
Subject: [PATCH] 粮情报表,数量监测报表,库区回显错误纠正
---
fzzy-igdss-web/src/main/resources/templates/main.html | 63 ++++++++++++++++++++++++++-----
1 files changed, 52 insertions(+), 11 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/templates/main.html b/fzzy-igdss-web/src/main/resources/templates/main.html
index d7b7225..6df4ffa 100644
--- a/fzzy-igdss-web/src/main/resources/templates/main.html
+++ b/fzzy-igdss-web/src/main/resources/templates/main.html
@@ -164,7 +164,8 @@
</div>
<div class="layui-col-md6">
<div class="layui-card">
- <div class="layui-card-header">杩�7澶╂姄鎷嶇粺璁�</div>
+<!-- <div class="layui-card-header">杩�7澶╂姄鎷嶇粺璁�</div>-->
+ <div class="layui-card-header">杩�7澶╃帀绫冲嚭搴撴渶浣庡崟浠风粺璁�</div>
<div class="layui-card-body">
<div id="snapChartsWeek" style="height: 300px;"></div>
</div>
@@ -342,26 +343,65 @@
myCharts4.setOption({series: [{data: mainData.weekAiNumList}]});
/** 娓叉煋鍛ㄧ粺璁″浘琛� */
- var myCharts5 = echarts.init(document.getElementById('snapChartsWeek'));
- var options5 = {
+ // var myCharts5 = echarts.init(document.getElementById('snapChartsWeek'));
+ // var options5 = {
+ // tooltip: {trigger: 'axis', axisPointer: {lineStyle: {color: '#E0E0E0'}}},
+ // color: ['#FFA800'],
+ // legend: {
+ // orient: 'vertical', right: '0px', top: '0px',
+ // data: ['鎶撴媿鏁�'], textStyle: {color: '#595959'}
+ // },
+ // grid: {top: '75px', left: '35px', right: '55px', bottom: '40px'},
+ // xAxis: {
+ // name: '鏃ユ湡',
+ // nameTextStyle: {color: '#595959'},
+ // type: 'category',
+ // data: mainData.weekSnapDateList,
+ // axisLine: {lineStyle: {color: '#E0E0E0'}, symbol: ['none', 'arrow'], symbolOffset: [0, 10]},
+ // axisLabel: {color: '#8c8c8c'},
+ // axisTick: {alignWithLabel: true}
+ // },
+ // yAxis: {
+ // name: '鏁伴噺',
+ // nameTextStyle: {color: '#595959'},
+ // type: 'value',
+ // boundaryGap: ['0', '20%'],
+ // axisTick: {show: false},
+ // axisLine: {lineStyle: {color: '#E0E0E0'}, symbol: ['none', 'arrow'], symbolOffset: [0, 10]},
+ // axisLabel: {color: '#8c8c8c'},
+ // splitLine: {show: false},
+ // splitArea: {show: false},
+ // minInterval: 1
+ // },
+ // series: [{
+ // name: '鎶撴媿淇℃伅', type: 'bar', stack: 'one', barMaxWidth: '30px',
+ // label: {normal: {show: true, position: 'inside'}}
+ // }]
+ // };
+ // myCharts5.setOption(options5);
+ // // 璧嬪��
+ // myCharts5.setOption({series: [{data: mainData.weekSnapNumList}]});
+ //娓叉煋鐜夌背7澶╁嚭搴撴渶浣庝环鏍�
+ var myCharts6 = echarts.init(document.getElementById('snapChartsWeek'));
+ var options6 = {
tooltip: {trigger: 'axis', axisPointer: {lineStyle: {color: '#E0E0E0'}}},
color: ['#FFA800'],
legend: {
orient: 'vertical', right: '0px', top: '0px',
- data: ['鎶撴媿鏁�'], textStyle: {color: '#595959'}
+ data: ['鍑哄簱鍗曚环'], textStyle: {color: '#595959'}
},
- grid: {top: '75px', left: '35px', right: '55px', bottom: '40px'},
+ grid: {top: '75px', left: '55px', right: '55px', bottom: '40px'},
xAxis: {
name: '鏃ユ湡',
nameTextStyle: {color: '#595959'},
type: 'category',
- data: mainData.weekSnapDateList,
+ data: mainData.weekMaizeDateList,
axisLine: {lineStyle: {color: '#E0E0E0'}, symbol: ['none', 'arrow'], symbolOffset: [0, 10]},
axisLabel: {color: '#8c8c8c'},
axisTick: {alignWithLabel: true}
},
yAxis: {
- name: '鏁伴噺',
+ name: '浠锋牸锛堝厓/鍏枻锛�',
nameTextStyle: {color: '#595959'},
type: 'value',
boundaryGap: ['0', '20%'],
@@ -373,13 +413,13 @@
minInterval: 1
},
series: [{
- name: '鎶撴媿淇℃伅', type: 'bar', stack: 'one', barMaxWidth: '30px',
+ name: '鏈�浣庡崟浠�', type: 'bar', stack: 'one', barMaxWidth: '30px',
label: {normal: {show: true, position: 'inside'}}
}]
};
- myCharts5.setOption(options5);
+ myCharts6.setOption(options6);
// 璧嬪��
- myCharts5.setOption({series: [{data: mainData.weekSnapNumList}]});
+ myCharts6.setOption({series: [{data: mainData.weekMaizeNumList}]});
/** 绐楀彛澶у皬鏀瑰彉浜嬩欢 */
window.onresize = function () {
@@ -387,7 +427,8 @@
myCharts2.resize();
myCharts3.resize();
myCharts4.resize();
- myCharts5.resize();
+ // myCharts5.resize();
+ myCharts6.resize();
};
});
--
Gitblit v1.9.3