|
@@ -1,5 +1,6 @@
|
|
|
import { Button, Popconfirm, message, Table, Tooltip } from 'antd'
|
|
|
import type { ActionType } from '@ant-design/pro-table'
|
|
|
+import ProTable from '@ant-design/pro-table'
|
|
|
import React, { useState, useRef } from 'react'
|
|
|
import { useRequest } from 'umi'
|
|
|
import {
|
|
@@ -14,7 +15,8 @@ import {
|
|
|
queryOrganizationalStructureList,
|
|
|
moveSortOrganizationalStructure
|
|
|
} from '@/services/api/institution'
|
|
|
-import OrganizationModal, { ModalType } from './OrganizationModal'
|
|
|
+import OrganizationModal from './OrganizationModal'
|
|
|
+import { ModalType } from '@/utils/enum'
|
|
|
|
|
|
type OrganizationProps = {
|
|
|
dataID: string
|
|
@@ -221,7 +223,7 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
|
|
|
return (
|
|
|
<div>
|
|
|
- <Table<API.OrganizationalStructureListItem>
|
|
|
+ <ProTable<API.OrganizationalStructureListItem>
|
|
|
rowKey="ID"
|
|
|
actionRef={tRef}
|
|
|
columns={columns}
|