0) && }
- {!data && (
+ {(data.length <= 0) && (
state.kilnOptimize);
const dataSource = {
color:'#146CFF',
+ yName:'℃',
areaColor0:'rgba(20, 108, 255, 0.4)',
areaColor1:'rgba(20, 108, 255, 0)',
msg: kilnOptimize.bottomTempAvg,
- data: kilnOptimize.bottomTempAvg ? kilnOptimize.bottomTempAvg.bottomTempAvgFor7Day : null
+ data: kilnOptimize.bottomTempAvg ? kilnOptimize.bottomTempAvg.bottomTempAvgFor7Day : [],
+ range:[-10,10]
}
return (
state.kilnOptimize);
const dataSource = {
color:'#12FFF5',
+ yName:'℃',
areaColor0:'rgba(18, 255, 245, 0.4)',
areaColor1:'rgba(18, 255, 245, 0)',
msg:kilnOptimize.topTempAvg,
- data:kilnOptimize.topTempAvg ? kilnOptimize.topTempAvg.topTempAvgFor7Day : null
+ data:kilnOptimize.topTempAvg ? kilnOptimize.topTempAvg.topTempAvgFor7Day : [],
+ range:[-10,10]
}
return (
state.kilnOptimize);
const dataSource = {
color:'#146CFF',
+ yName:'mm',
areaColor0:'rgba(20, 108, 255, 0.4)',
areaColor1:'rgba(20, 108, 255, 0)',
msg:kilnOptimize.liquidAvg,
- data:kilnOptimize.liquidAvg ? kilnOptimize.liquidAvg.liquidAvgFor7Day : null
+ data:kilnOptimize.liquidAvg ? kilnOptimize.liquidAvg.liquidAvgFor7Day : [],
+ range:[-1,1]
}
return (
{
- const tempBottom = useSelector((state) => state.temperature.bottom);
+ const tempTop = useSelector((state) => state.temperature.top);
function returnColor(n) {
- let num = Number(tempBottom[n].slice(0,tempBottom[n].length - 1))
+ let num = Number(tempTop[n].slice(0,tempTop[n].length - 1))
if (num <= 200) {
return 'rgba(42, 229, 93, 0.7)';
} else if (num >200 && num <=400) {
@@ -46,7 +46,7 @@ const TopColorBlock = ({ condition }) => {
}
}
function returnColor2(n) {
- let num = Number(tempBottom[n].slice(0,tempBottom[n].length - 1))
+ let num = Number(tempTop[n].slice(0,tempTop[n].length - 1))
if (num <= 200) {
return 'rgba(42, 229, 93, 0.9)';
} else if (num >200 && num <=400) {
@@ -72,50 +72,59 @@ const TopColorBlock = ({ condition }) => {
// 窑炉内部svg变色
function BigSvg() {
return (
-