Browse Source

(fix)水位趋势预测图不显示

master
liujiangyong 7 months ago
parent
commit
13df992ca8
  1. 2
      super-screen/client/src/sections/water-prevention/containers/homePage.js

2
super-screen/client/src/sections/water-prevention/containers/homePage.js

@ -86,7 +86,7 @@ function homePage(props) {
if (item.alert && item.futureData && item.futureData.length != 0) { if (item.alert && item.futureData && item.futureData.length != 0) {
item.futureData.map((futureItem) => { item.futureData.map((futureItem) => {
if (futureItem.value >= alert) { if (futureItem.value >= alert) {
futureState = `超警戒,预计${item.forecast_time}时水位抵达${(item.value).toFixed(2)}m` futureState = `超警戒,预计${item.forecast_time}时水位抵达${(item.value)?.toFixed(2)}m`
} }
}) })
futureState = futureState != '' ? futureState : '正常' futureState = futureState != '' ? futureState : '正常'

Loading…
Cancel
Save