import React, { Fragment, useRef, useMemo,useEffect,useState } from 'react'; import { Table, Modal, message, Image } from 'antd'; import { QuestionCircleOutlined } from '@ant-design/icons'; import usePageTable from '../../../components/crud/usePageTable2' import { createCrudService } from '../../../components/crud/_'; import { httppost2 } from '../../../utils/request'; import apiurl from '../../../service/apiurl'; import SetDrpStation from '../setMapStation/drp.js' import moment from 'moment'; const Page = () => { const [ tableData, setTableData ] = useState({})//在线 console.log('tableData',tableData) const [ left, setLeft ] = useState(0) const [ imgList, setImgList ] = useState([ { url:'https://axhub.im/ax9/6cde96761d7f938f/images/__-gis/u913.png' }, { url:'https://axhub.im/ax9/6cde96761d7f938f/images/__-gis/u914.png' }, { url:'https://axhub.im/ax9/6cde96761d7f938f/images/__-gis/u915.png' }, { url:'https://img2.baidu.com/it/u=223726554,3148772466&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800' }, { url:'https://t7.baidu.com/it/u=2604797219,1573897854&fm=193&f=GIF' }, { url:'https://t7.baidu.com/it/u=2942499027,2479446682&fm=193&f=GIF' } ]) const getData = async(val)=>{ const { code, data} = await httppost2(apiurl.home.db) if(code!==200){ return } setTableData(data[0]) } useEffect(()=>{ getData() },[]) return ( <>
建筑物型式:
{tableData.buildType}
地基特性:
{tableData.foundCharacter}
坝顶高程(m):
{tableData.damTopElev}
最大坝高(m):
{tableData.damMaxHeig}
坝顶长度(m):
{tableData.damTopLen}
坝顶宽度(m):
{tableData.damTopWid}
防浪墙顶高程(m):
{tableData.damWaveWall}
开工日期:
{tableData?.startDate?.slice(0,10)}
竣工日期:
{tableData?.endDate?.slice(0,10)}
蓄水日期:
{tableData?.storageDate?.slice(0,10)}
{/*
图片资料
{ imgList.map((item)=>{ return (
) }) }
{ const imgLength = imgList.length if(left<0){ setLeft(left+100) } }} /> { const imgLength = imgList.length if(imgLength>3 && left>(3-imgLength)*100){ setLeft(left-100) } }} />
*/} {/* */} {/*
视频资料:
*/}
) } export default Page