import React, {useEffect, useState} from 'react'; import {Descriptions,Table} from "antd"; import {drainage,dam,transport} from "../../../../../service/sssq"; function Jzw({record}) { const columns1 = [ {title: '建筑物名称', key: 'name', dataIndex: 'name', align: 'center',}, {title: '型式', key: 'buildType', dataIndex: 'buildType', align: 'center'}, {title: '工作阀门型式', key: 'valveType', dataIndex: 'valveType', align: 'center'}, {title: '堰顶高程', key: 'crestEle', dataIndex: 'crestEle', align: 'center'}, {title: '溢流段长或堰顶宽(m)', key: 'buildSize', dataIndex: 'buildSize', align: 'center'}, {title: '设计泄洪流量(m³/s)', key: 'desQ', dataIndex: 'desQ', align: 'center'}, {title: '校核泄洪流量(m³/s)', key: 'caliQ', dataIndex: 'caliQ', align: 'center'}, {title: '启闭方式', key: 'ocMethod', dataIndex: 'ocMethod', align: 'center'}, {title: '消能方式', key: 'elimMethod', dataIndex: 'elimMethod', align: 'center'}, ]; const columns2 = [ {title: '建筑物名称', key: 'name', dataIndex: 'name', align: 'center',}, {title: '型式', key: 'buildType', dataIndex: 'buildType', align: 'center'}, {title: '堰顶高程', key: 'crestEle', dataIndex: 'crestEle', align: 'center'}, {title: '溢流段长或堰顶宽(m)', key: 'buildSize', dataIndex: 'buildSize', align: 'center'}, {title: '设计泄洪流量(m³/s)', key: 'desQ', dataIndex: 'desQ', align: 'center'}, {title: '校核泄洪流量(m³/s)', key: 'caliQ', dataIndex: 'caliQ', align: 'center'}, {title: '启用标准', key: 'enableCriteria', dataIndex: 'enableCriteria', align: 'center'}, ]; const columns3 = [ {title: '建筑物名称', key: 'name', dataIndex: 'name', align: 'center',}, {title: '洞(孔)身型式', key: 'buildType', dataIndex: 'buildType', align: 'center'}, {title: '断面尺寸', key: 'sectionSize', dataIndex: 'sectionSize', align: 'center'}, {title: '数量(条或孔)', key: 'num', dataIndex: 'num', align: 'center'}, {title: '进口底槛高程(m)', key: 'inletEle', dataIndex: 'inletEle', align: 'center'}, {title: '设计泄洪流量(m³/s)', key: 'desQ', dataIndex: 'desQ', align: 'center'}, {title: '校核泄洪流量(m³/s)', key: 'caliQ', dataIndex: 'caliQ', align: 'center'}, {title: '工作阀门型式', key: 'valveType', dataIndex: 'valveType', align: 'center'}, {title: '启闭方式', key: 'ocMethod', dataIndex: 'ocMethod', align: 'center'}, {title: '消能方式', key: 'elimMethod', dataIndex: 'elimMethod', align: 'center'}, ]; const columns4 = [ {title: '设计流量(m³/s)', key: 'desQ', dataIndex: 'desQ', align: 'center'}, {title: '输水道型式', key: 'transType', dataIndex: 'transType', align: 'center',}, {title: '断面尺寸', key: 'sectionSize', dataIndex: 'sectionSize', align: 'center'}, {title: '输水道长度(m)', key: 'transLeng', dataIndex: 'transLeng', align: 'center'}, {title: '座教', key: 'num', dataIndex: 'num', align: 'center'}, ]; const [tableDataDs, setTableDataDs] = useState([]) const [tableDataXs, setTableDataXs] = useState({}) const [tableDataSs, setTableDataSs] = useState([]) const getData=async (params)=>{ setTableDataDs(await dam(params)) setTableDataXs(await drainage(params)) setTableDataSs(await transport(params)) } useEffect(() => { getData({resCode:record.resCode}) }, [record]); return (
挡水建筑物
{tableDataDs[0]?.damType} {tableDataDs[0]?.damMaxHeig} {tableDataDs[0]?.damTopElev} {tableDataDs[0]?.damTopLen} {tableDataDs[0]?.damTopWid} {tableDataDs[0]?.damImpermeableType} {tableDataDs[0]?.subDamNum} {tableDataDs[0]?.subDamLen} {tableDataDs[0]?.subDamMaxHeig}
泄水建筑物
☆正常溢洪道
☆非常溢洪道
☆泄洪洞
输水建筑物
) } export default Jzw;