import { Button, Divider, Drawer, Form, Input, Modal, Popconfirm, Space, Table } from 'antd'; import { ColumnsType } from 'antd/lib/table'; import moment from 'moment'; import React, { useMemo, useState } from 'react'; import OpButton, { DelOpButton, EditOpButton } from '../../../components/crud/OpButton'; import { DamItem } from '../../../models/_/defs'; import { IContextProp } from './_'; const DataTable: React.FC<{ ctx: IContextProp }> = ({ ctx }) => { const { pager, crud } = ctx; const columns = useMemo>(() => [ { title: '序号', key: '序号', dataIndex: '序号', width: 120, align: 'center' }, { title: '站名', key: '站名', dataIndex: '站名', width: 130, align: 'center' }, { title: '管理单位', key: '管理单位', dataIndex: '管理单位', width: 120, align: 'center' }, { title: 'RTU编码', key: 'RTU编码', dataIndex: 'RTU编码', width: 120, align: 'center' }, { title: '经度', key: '经度', dataIndex: '经度', width: 120, }, { title: '纬度', key: '纬度', dataIndex: '纬度', width: 120, align: 'center' }, { title: '基础准高程', key: '基础准高程', dataIndex: '基础准高程', width: 120, align: 'center' }, { title: '修正值', key: '修正值', dataIndex: '修正值', width: 120, align: 'center' }, { title: '站类', key: '站类', dataIndex: '站类', width: 120, align: 'center' }, { title: '归属协议', key: '归属协议', dataIndex: '归属协议', width: 120, align: 'center' }, { title: '创建日期', key: '创建日期', dataIndex: '创建日期', width: 120, align: 'center' }, { title: '操作', key: '_', width: 100, align: 'center', fixed: 'right',render: (value:any,row:any) => ( }>
{/* */}
) } ], []); const [openIntroduction, setOpenIntroduction] = useState(false); const onCloseIntroduction = () => { setOpenIntroduction(false); }; const [form] = Form.useForm(); // 弹框 const [isModalOpen, setIsModalOpen] = useState(false); const showModal = () => { setIsModalOpen(true); }; const handleOk = () => { setIsModalOpen(false); }; const handleCancel = () => { setIsModalOpen(false); }; return ( <> row.大坝代码} {...pager.tableProps} />
) } export default DataTable