diff --git a/src/components/Common/CurrentLineSpec/index.jsx b/src/components/Common/CurrentLineSpec/index.jsx
index b904a5f..12d8bfa 100644
--- a/src/components/Common/CurrentLineSpec/index.jsx
+++ b/src/components/Common/CurrentLineSpec/index.jsx
@@ -21,7 +21,7 @@ function Chart1(props) {
evenRowBGC: "#0b549970",
columnWidth: [128],
headerHeight: 40,
- hoverPause: false,
+ hoverPause: true,
data: replaceStyle(filterData(rawData), 0.7),
};
@@ -39,7 +39,20 @@ function Chart1(props) {
-
+ 暂无数据 +
+ )} ); @@ -124,13 +137,13 @@ function filterData(rawData) { // let header = ["产线名", "原板宽度", "净板宽", "玻璃厚度"]; -function replaceStyle(Arr, opencity) { +function replaceStyle(Arr, opacity) { let temp = []; for (let i = 0; i < Arr.length; i++) { temp[i] = []; for (let j = 0; j < Arr[i].length; j++) { - temp[i][j] = `${ + temp[i][j] = `${ Arr[i][j] } ${j == 0 ? "" : "mm"}`; } diff --git a/src/components/Common/CurrentLineSpec/righttable.module.scss b/src/components/Common/CurrentLineSpec/righttable.module.scss index 299a80e..550fa3b 100644 --- a/src/components/Common/CurrentLineSpec/righttable.module.scss +++ b/src/components/Common/CurrentLineSpec/righttable.module.scss @@ -5,7 +5,7 @@ flex-direction: column; justify-content: flex-start; - background-color: rgba(4, 44, 76, 0.2); + // background-color: rgba(4, 44, 76, 0.2); .CenterChart1itemTXT { width: 100%; height: 10%; diff --git a/src/components/Common/CurrentTemp/index.jsx b/src/components/Common/CurrentTemp/index.jsx index 9553453..a25d0da 100644 --- a/src/components/Common/CurrentTemp/index.jsx +++ b/src/components/Common/CurrentTemp/index.jsx @@ -185,7 +185,7 @@ function WindFrequence(props) {item.value).length == 0 + ) + return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], grid: { top: 40, right: 12, bottom: 20, left: 64 }, @@ -141,7 +145,11 @@ function getOptions(source, period, trend) { }, series: [ { - data: trend[source].map((item) => !(item.value == null || isNaN(+item.value)) ? (+item.value).toFixed(2) : null), + data: trend[source].map((item) => + !(item.value == null || isNaN(+item.value)) + ? (+item.value).toFixed(2) + : null + ), type: "line", areaStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ diff --git a/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx b/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx index 3725446..3326eee 100644 --- a/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx +++ b/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx @@ -82,7 +82,11 @@ function Dust(props) { export default Dust; function getOptions(source, period, trend) { - if (trend[source].length == 0) return null; + if ( + trend[source].length == 0 || + trend[source].filter((item) => item.value).length == 0 + ) + return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], grid: { top: 40, right: 12, bottom: 20, left: 64 }, @@ -142,7 +146,11 @@ function getOptions(source, period, trend) { series: [ { // (isNaN((+"f")) ? 0 : (+"f")).toFixed(2) - data: trend[source].map((item) => !(item.value == null || isNaN(+item.value)) ? (+item.value).toFixed(2) : null), + data: trend[source].map((item) => + !(item.value == null || isNaN(+item.value)) + ? (+item.value).toFixed(2) + : null + ), type: "line", symbol: "circle", symbolSize: 6, diff --git a/src/components/Modules/EnergyCostAnalysis/O/index.jsx b/src/components/Modules/EnergyCostAnalysis/O/index.jsx index 4884bc7..3a48ca4 100644 --- a/src/components/Modules/EnergyCostAnalysis/O/index.jsx +++ b/src/components/Modules/EnergyCostAnalysis/O/index.jsx @@ -82,7 +82,11 @@ function Oxygen(props) { export default Oxygen; function getOptions(source, period, trend) { - if (trend[source].length == 0) return null; + if ( + trend[source].length == 0 || + trend[source].filter((item) => item.value).length == 0 + ) + return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], grid: { top: 40, right: 12, bottom: 20, left: 80 }, @@ -143,7 +147,11 @@ function getOptions(source, period, trend) { }, series: [ { - data: trend[source].map((item) => !(item.value == null || isNaN(+item.value)) ? (+item.value).toFixed(2) : null), + data: trend[source].map((item) => + !(item.value == null || isNaN(+item.value)) + ? (+item.value).toFixed(2) + : null + ), type: "line", symbol: "circle", symbolSize: 6, diff --git a/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx b/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx index 0345a23..37881b7 100644 --- a/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx +++ b/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx @@ -81,7 +81,11 @@ function SO2(props) { export default SO2; function getOptions(source, period, trend) { - if (trend[source].length == 0) return null; + if ( + trend[source].length == 0 || + trend[source].filter((item) => item.value).length == 0 + ) + return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], grid: { top: 40, right: 12, bottom: 20, left: 64 }, diff --git a/src/components/Modules/Home/CenterTop/RightTable/index.jsx b/src/components/Modules/Home/CenterTop/RightTable/index.jsx index ef81040..c15d1d4 100644 --- a/src/components/Modules/Home/CenterTop/RightTable/index.jsx +++ b/src/components/Modules/Home/CenterTop/RightTable/index.jsx @@ -28,7 +28,20 @@ function CurrentSpec(props) {
+ 暂无数据 +
+ )}