|
@@ -1,9 +1,16 @@
|
|
|
-import { Button, Popconfirm, message } from 'antd'
|
|
|
+import { Button, Popconfirm, message, 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 { DeleteOutlined } from '@ant-design/icons'
|
|
|
+import {
|
|
|
+ ArrowDownOutlined,
|
|
|
+ ArrowUpOutlined,
|
|
|
+ DeleteOutlined,
|
|
|
+ EditOutlined,
|
|
|
+ PlusSquareOutlined,
|
|
|
+ SwapOutlined
|
|
|
+} from '@ant-design/icons'
|
|
|
import {
|
|
|
queryOrganizationalStructureList,
|
|
|
moveSortOrganizationalStructure
|
|
@@ -76,7 +83,9 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
okText="确认"
|
|
|
cancelText="取消"
|
|
|
onConfirm={() => tryMoveOrganization({ ID: record.ID, operation: state.up })}>
|
|
|
- 上移
|
|
|
+ <Tooltip placement="top" title="上移">
|
|
|
+ <ArrowUpOutlined />
|
|
|
+ </Tooltip>
|
|
|
</Popconfirm>
|
|
|
</div>
|
|
|
) : null}
|
|
@@ -87,7 +96,9 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
okText="确认"
|
|
|
cancelText="取消"
|
|
|
onConfirm={() => tryMoveOrganization({ ID: record.ID, operation: state.down })}>
|
|
|
- 下移
|
|
|
+ <Tooltip placement="top" title="下移">
|
|
|
+ <ArrowDownOutlined />
|
|
|
+ </Tooltip>
|
|
|
</Popconfirm>
|
|
|
</div>
|
|
|
) : null}
|
|
@@ -103,7 +114,9 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
typeEum: titleType.MOVE
|
|
|
})
|
|
|
}}>
|
|
|
- 移动
|
|
|
+ <Tooltip placement="top" title="移动">
|
|
|
+ <SwapOutlined />
|
|
|
+ </Tooltip>
|
|
|
</div>
|
|
|
) : null}
|
|
|
<div
|
|
@@ -122,7 +135,9 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
typeEum: titleType.ADDITEM
|
|
|
})
|
|
|
}}>
|
|
|
- 添加子项
|
|
|
+ <Tooltip placement="top" title="添加子项">
|
|
|
+ <PlusSquareOutlined />
|
|
|
+ </Tooltip>
|
|
|
</div>
|
|
|
<div
|
|
|
className="px-2 text-primary cursor-pointer hover:text-hex-967bbd"
|
|
@@ -135,7 +150,9 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
typeEum: titleType.RENAME
|
|
|
})
|
|
|
}}>
|
|
|
- 重命名
|
|
|
+ <Tooltip placement="top" title="重命名">
|
|
|
+ <EditOutlined />
|
|
|
+ </Tooltip>
|
|
|
</div>
|
|
|
{!record.parentID === false ? (
|
|
|
<div className="pl-2 text-hex-fd3995 cursor-pointer hover:text-hex-967bbd">
|