|
@ -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 : '正常' |
|
|