import './proj-config-list-mod.css'; import { Alert, Button, message, Table, TableProps, Modal } from "antd"; import { useParams } from "react-router-dom"; import { useEffect, useState } from "react"; import { SearchOutlined } from "@ant-design/icons"; import { get } from "../../../util/AjaxUtils.ts"; import ConfigModShow from '../../proj/edit/ProjConfigModShow.tsx' interface DataType { projModId: string; projId: string; modContext: string; modName: string; modUrl: string; modDesc: string; modIcon: string; } export default function ProjConfigModListShow(props:any) { const [projModId, setprojModId] = useState('') const [configModShow, setConfigModShow] = useState(false) // const nav = useNavigate(); const pathParams = useParams(); const [projId] = useState(pathParams.projId ? pathParams.projId : props.projId) const [messageApi, contextHolder] = message.useMessage(); const [dataArray, setDataArray] = useState(); const height = window.innerHeight - 210; const renderData = () => { get({ messageApi, url: '/api/proj-mod/list', config: { params: { projId: projId } }, onSuccess({ data }) { setDataArray([...data]); } }) } const columns: TableProps['columns'] = [ { title: '菜单标题', dataIndex: 'modName', align: 'center', width: 180 }, { title: '菜单说明', dataIndex: 'modDesc', align: 'center', }, { title: '图标', dataIndex: 'modIcon', align: 'center', width: 80, render: (_text) => { return } }, { title: '菜单地址', dataIndex: 'menuUrl', align: 'center', }, { title: '创建时间', dataIndex: 'gmtCreate', align: 'center', width: 180 }, { title: '操作', dataIndex: 'option', align: 'center', width: 100, render: (_text, record) => { return ( <> ) } }, ]; useEffect(() => { renderData(); }, []) return ( <> {contextHolder} {/* 首页}, {title: 创建项目}, {title: {nav(-1)}}>编辑项目}, {title: '系统菜单查看'}, ]} /> */}
{ // setprojModId('') // console.log(projModId); setConfigModShow(false); }} footer={null} > { setConfigModShow(false) // renderData() // }} projModId={projModId} > ) }