index.tsx 869 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { useAjax } from "@/Hook/useAjax"
  2. import { getAppAllApi } from "@/services/iaaSystem/application"
  3. import ProTable from "@ant-design/pro-table"
  4. import React from "react"
  5. import tableConfig from "./tableConfig"
  6. /**
  7. * 应用管理
  8. * @returns
  9. */
  10. const UseApp: React.FC = () => {
  11. /********************************/
  12. const getAppAll = useAjax(() => getAppAllApi(), { type: 'noPage' })
  13. /********************************/
  14. return <>
  15. <ProTable<any>
  16. columns={tableConfig()}
  17. cardBordered
  18. request={async (params) => {
  19. return await getAppAll.run(params)
  20. }}
  21. editable={{
  22. type: 'multiple',
  23. }}
  24. rowKey="id"
  25. search={false}
  26. headerTitle={<strong>应用管理</strong>}
  27. />
  28. </>
  29. }
  30. export default UseApp