|
@@ -6,7 +6,7 @@ import styles from './ConnectCompany/index.less'
|
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
|
import consts from '@/basic/consts'
|
|
import consts from '@/basic/consts'
|
|
|
import { useDispatch } from 'umi'
|
|
import { useDispatch } from 'umi'
|
|
|
-import { queryDepartmentStaffList } from '@/services/department'
|
|
|
|
|
|
|
+import { queryDepartmentStaffList } from '@/services/hr'
|
|
|
import { useWindowSizeFn } from '@/hooks/event/useWindomSizeFn'
|
|
import { useWindowSizeFn } from '@/hooks/event/useWindomSizeFn'
|
|
|
import { isEmpty, isNull, isNullOrUnDef } from '@/utils/is'
|
|
import { isEmpty, isNull, isNullOrUnDef } from '@/utils/is'
|
|
|
import CustomModal from '@/components/Modal/src/components/CustomModal'
|
|
import CustomModal from '@/components/Modal/src/components/CustomModal'
|
|
@@ -214,7 +214,8 @@ const CustomPerm = ({ onConfirm, defaultValues = [] }) => {
|
|
|
dataSource={state.transferDataSource}
|
|
dataSource={state.transferDataSource}
|
|
|
targetKeys={state.targetKeys}
|
|
targetKeys={state.targetKeys}
|
|
|
onChange={onChange}
|
|
onChange={onChange}
|
|
|
- showSelectAll={false}>
|
|
|
|
|
|
|
+ showSelectAll={false}
|
|
|
|
|
+ >
|
|
|
{({ direction, onItemSelectAll, onItemSelect }) => {
|
|
{({ direction, onItemSelectAll, onItemSelect }) => {
|
|
|
if (direction === 'left') {
|
|
if (direction === 'left') {
|
|
|
return state.dataSource?.length ? (
|
|
return state.dataSource?.length ? (
|
|
@@ -324,7 +325,8 @@ const CustomPerm = ({ onConfirm, defaultValues = [] }) => {
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
|
const currKeys = state.targetKeys.filter(i => i !== item.key)
|
|
const currKeys = state.targetKeys.filter(i => i !== item.key)
|
|
|
handleUnCheckItem(state.treeKeys, item.key, { targetKeys: currKeys })
|
|
handleUnCheckItem(state.treeKeys, item.key, { targetKeys: currKeys })
|
|
|
- }}>
|
|
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
<DeleteOutlined />
|
|
<DeleteOutlined />
|
|
|
</span>
|
|
</span>
|
|
|
</li>
|
|
</li>
|
|
@@ -351,7 +353,8 @@ const CustomPerm = ({ onConfirm, defaultValues = [] }) => {
|
|
|
onConfirm({ staffIds: state.targetKeys, dataPermission: 'custom' })
|
|
onConfirm({ staffIds: state.targetKeys, dataPermission: 'custom' })
|
|
|
}
|
|
}
|
|
|
closeModal()
|
|
closeModal()
|
|
|
- }}>
|
|
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
确定
|
|
确定
|
|
|
</Button>
|
|
</Button>
|
|
|
</div>
|
|
</div>
|