|
|
@@ -3,13 +3,13 @@
|
|
|
import { Button, Transfer, Tree } from 'antd'
|
|
|
import React, { useMemo, useState, useEffect } from 'react'
|
|
|
import styles from './ConnectCompany/index.less'
|
|
|
-import { CloseOutlined, DeleteOutlined } from '@ant-design/icons'
|
|
|
-import ModalDrag from '@/components/Modal/src/components/DragIniter'
|
|
|
+import { DeleteOutlined } from '@ant-design/icons'
|
|
|
import consts from '@/basic/consts'
|
|
|
import { useDispatch } from 'umi'
|
|
|
import { queryDepartmentStaffList } from '@/services/department'
|
|
|
import { useWindowSizeFn } from '@/hooks/event/useWindomSizeFn'
|
|
|
import { isEmpty, isNull, isNullOrUnDef } from '@/utils/is'
|
|
|
+import CustomModal from '@/components/Modal/src/components/CustomModal'
|
|
|
|
|
|
const isChecked = (selectedKeys, eventKey) => selectedKeys.includes(eventKey)
|
|
|
|
|
|
@@ -201,13 +201,7 @@ const CustomPerm = ({ onConfirm }) => {
|
|
|
return []
|
|
|
}, [state.leftTargetId, state.treeKeys.length, state.targetKeys.length])
|
|
|
return (
|
|
|
- <div className={['ant-modal-content', styles.modalContainer].join(' ')}>
|
|
|
- <div className={styles.modalHeader}>
|
|
|
- <ModalDrag title="自定义展示数据" />
|
|
|
- <span className={styles.closeIcon}>
|
|
|
- <CloseOutlined onClick={closeModal} />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
+ <CustomModal title="自定义展示数据">
|
|
|
<div className={styles.modalContent}>
|
|
|
<Transfer
|
|
|
showSearch
|
|
|
@@ -345,7 +339,7 @@ const CustomPerm = ({ onConfirm }) => {
|
|
|
确定
|
|
|
</Button>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </CustomModal>
|
|
|
)
|
|
|
}
|
|
|
|