123456789101112131415161718192021222324252627282930313233343536 |
- import { useAjax } from "@/Hook/useAjax"
- import { getAppAllApi } from "@/services/iaaSystem/application"
- import ProTable from "@ant-design/pro-table"
- import React from "react"
- import tableConfig from "./tableConfig"
- /**
- * 应用管理
- * @returns
- */
- const UseApp: React.FC = () => {
- /********************************/
- const getAppAll = useAjax(() => getAppAllApi(), { type: 'noPage' })
- /********************************/
- return <>
- <ProTable<any>
- columns={tableConfig()}
- cardBordered
- request={async (params) => {
- return await getAppAll.run(params)
- }}
- editable={{
- type: 'multiple',
- }}
- rowKey="id"
- search={false}
- headerTitle={<strong>应用管理</strong>}
- />
- </>
- }
- export default UseApp
|