From e909784dee52e39c813f83dd0a7db6662dafc4d5 Mon Sep 17 00:00:00 2001 From: gtz <535262213@qq.com> Date: Wed, 13 Sep 2023 12:42:08 +0800 Subject: [PATCH] 'update' --- src/components/BottomBar/gasi/index.jsx | 21 +++++++++++++++++-- .../BottomBar/gasii/gasChart/chart.config.js | 2 +- .../BottomBar/gasii/gridList/index.jsx | 16 +++++++------- .../GoodRateChart/index.jsx | 4 ++-- .../EnergyCost/EnergyCostChart/index.jsx | 20 +++++++++--------- src/components/RightBar/EnergyCost/index.jsx | 2 +- .../SmokeHandle/SmokeTrendChart/index.jsx | 16 +++++++------- .../SmokeTrendChart/index.module.css | 2 +- 8 files changed, 50 insertions(+), 33 deletions(-) diff --git a/src/components/BottomBar/gasi/index.jsx b/src/components/BottomBar/gasi/index.jsx index 1233678..60b96d5 100644 --- a/src/components/BottomBar/gasi/index.jsx +++ b/src/components/BottomBar/gasi/index.jsx @@ -34,12 +34,29 @@ function GasI(props) { : Array(8) .fill(1) .map((_) => Array(7).fill(0)); + seriesData.unshift(hisState?.wind['FE_totalair'] || 1); + seriesData.splice(8, 1); // debug // console.log('助燃风 chart series data', hisState?.wind, seriesData); options = { color: colors, grid: { top: 32, right: 12, bottom: 20, left: 48 }, + legend: { + show: true, + icon: 'roundRect', + top: 10, + right: 10, + padding: 0, + itemWidth: 8, + itemHeight: 8, + itemGap: 3, + height: 8, + textStyle: { + color: '#DFF1FE', + fontSize: 10, + }, + }, xAxis: { type: 'category', data: Array(7) @@ -66,7 +83,7 @@ function GasI(props) { }, }, yAxis: { - name: '单位/m³', + name: '单位m³/h', nameTextStyle: { color: '#fff', fontSize: 10, @@ -95,7 +112,7 @@ function GasI(props) { // max: 100, }, series: seriesData.map((v, i) => ({ - name: i ? i + 1 + '#助燃风' : '助燃风总流量', + name: i ? i + '#助燃风' : '助燃风总流量', data: v, type: 'line', symbol: 'circle', diff --git a/src/components/BottomBar/gasii/gasChart/chart.config.js b/src/components/BottomBar/gasii/gasChart/chart.config.js index 08dfdf2..ccb4e29 100644 --- a/src/components/BottomBar/gasii/gasChart/chart.config.js +++ b/src/components/BottomBar/gasii/gasChart/chart.config.js @@ -56,7 +56,7 @@ export default function getOptions(seriesData, name) { }, }, yAxis: { - name: '单位m³/h', + name: '单位Nm³/h', nameTextStyle: { color: '#fff', fontSize: 10, diff --git a/src/components/BottomBar/gasii/gridList/index.jsx b/src/components/BottomBar/gasii/gridList/index.jsx index 0527285..e1ad546 100644 --- a/src/components/BottomBar/gasii/gridList/index.jsx +++ b/src/components/BottomBar/gasii/gridList/index.jsx @@ -7,14 +7,14 @@ function getData(type) { switch (type) { case 'gas-i': data = [ - { id: 0, name: '天然气总流量', value: '0m³/h' }, - { id: 1, name: '1#天然气', value: '0m³/h' }, - { id: 2, name: '2#天然气', value: '0m³/h' }, - { id: 3, name: '3#天然气', value: '0m³/h' }, - { id: 4, name: '4#天然气', value: '0m³/h' }, - { id: 5, name: '5#天然气', value: '0m³/h' }, - { id: 6, name: '6#天然气', value: '0m³/h' }, - { id: 7, name: '7#天然气', value: '0m³/h' }, + { id: 0, name: '天然气总流量', value: '0Nm³/h' }, + { id: 1, name: '1#天然气', value: '0Nm³/h' }, + { id: 2, name: '2#天然气', value: '0Nm³/h' }, + { id: 3, name: '3#天然气', value: '0Nm³/h' }, + { id: 4, name: '4#天然气', value: '0Nm³/h' }, + { id: 5, name: '5#天然气', value: '0Nm³/h' }, + { id: 6, name: '6#天然气', value: '0Nm³/h' }, + { id: 7, name: '7#天然气', value: '0Nm³/h' }, ]; break; case 'gas-ii': diff --git a/src/components/LeftBar/substitutionCharts/GoodRateChart/index.jsx b/src/components/LeftBar/substitutionCharts/GoodRateChart/index.jsx index 8968b8c..9d8540c 100644 --- a/src/components/LeftBar/substitutionCharts/GoodRateChart/index.jsx +++ b/src/components/LeftBar/substitutionCharts/GoodRateChart/index.jsx @@ -119,9 +119,9 @@ const GoodRateChart = (props) => {