import React, { useEffect, useState } from 'react' import ProjectBasciInfo from './projectBasicInfo' import TzParams from './tzParams' import KrLine from './KrLine' import MonthLl from './monthLl' import apiurl from '../../../../service/apiurl'; import { httpget2, httppost2 } from '../../../../utils/request'; import "./index.less" export default function ShuikuBasicInfo() { const [tabVal, setTabVal] = useState('1') const [data,setData] =useState('') const getDataIfo = async () => { try { const res = await httppost2(apiurl.dataResourcesCenter.projectAndWater.shuikuBasicinfo.detail) // debugger; if (res.code == 200) { setData(res.data[0]) } } catch (error) { console.log(error); } } useEffect(()=>{ getDataIfo() },[]) return (
setTabVal('1')}>工程基础信息
setTabVal('2')}>主要特征参数
setTabVal('3')}>水库库容曲线
setTabVal('5')}>月生态流量
{tabVal === "1" ? : null} {tabVal === "2" ? : null} {tabVal === "3" ? : null} {tabVal === "5" ? : null}
) }