import React,{useState,useEffect} from 'react' import {queryStPptnDetails} from '../../../../service/ssyq' import { httppost2 } from '../../../../utils/request' import apiurl from '../../../../service/apiurl' export default function Sssw({ data }) { const [detail, setDetail] = useState({}) const getDetail = async (stcd) => { // const res = await httppost2(apiurlhome.turangshangqing.{stcd}) // setDetail{res} } useEffect(() => { if (data.stcd) { getDetail(data.stcd) } }, [data]) return (
墒情最新上报时间: {detail?.tm}
{detail?.h ?? '-' }% RH
实时数据
{detail?.h3 ?? '-' }% RH
近1周(极值)
{detail?.h6 ?? '-' }% RH
近1月(极值)
{detail?.h12 ?? '-' }% RH
近3月(极值)
{detail?.h24 ?? '-' }% RH
近6月(极值)
{detail?.h48 ?? '-' }% RH
近1年(极值)
) }