|
@@ -11,7 +11,7 @@ import GroupLeft from './groupLeft'
|
|
|
import QQAuth from './qqAuto'
|
|
|
import { MenuFoldOutlined, MenuUnfoldOutlined, PlusOutlined, SwapOutlined } from '@ant-design/icons'
|
|
|
import TeamMembers from '../components/teamMembers'
|
|
|
-import { getAdAccountAllOfMember } from '@/services/launchAdq/adq'
|
|
|
+import { getAdAccountAllOfMember, getErpUserAll } from '@/services/launchAdq/adq'
|
|
|
import AddAccountToGroup from './addAccountToGroup'
|
|
|
import { delAccountToGroupApi } from '@/services/launchAdq/subgroup'
|
|
|
import { useModel } from 'umi'
|
|
@@ -59,10 +59,12 @@ const AdAuthorize: React.FC = () => {
|
|
|
const delAccountToGroup = useAjax((params) => delAccountToGroupApi(params))
|
|
|
const getAdAccountList = useAjax((params) => getAdAccountListApi(params), { formatResult: true })
|
|
|
const allOfMember = useAjax(() => getAdAccountAllOfMember(), { formatResult: true })
|
|
|
+ const erpUserALL = useAjax(() => getErpUserAll(), { formatResult: true })
|
|
|
/*************************/
|
|
|
|
|
|
useEffect(() => {
|
|
|
groupListInit()
|
|
|
+ !erpUserALL.data && erpUserALL.run()
|
|
|
}, [])
|
|
|
|
|
|
useEffect(() => {
|
|
@@ -234,7 +236,7 @@ const AdAuthorize: React.FC = () => {
|
|
|
{/* 切号 */}
|
|
|
{checkAccShow && <CheckAccount value={data} visible={checkAccShow} onChange={() => { getList(); setCheckAccShow(false); setSelectAccData([]) }} onClose={() => { setCheckAccShow(false) }} />}
|
|
|
{/* 指派 */}
|
|
|
- {puShow && <AppointPut value={puData} visible={puShow} onClose={() => { setPuShow(false) }} allOfMember={allOfMember} onChange={() => { setPuShow(false); getAdAccountList.refresh(); setSelectAccData([]) }} />}
|
|
|
+ {puShow && <AppointPut value={puData} visible={puShow} onClose={() => { setPuShow(false) }} allOfMember={erpUserALL} onChange={() => { setPuShow(false); getAdAccountList.refresh(); setSelectAccData([]) }} />}
|
|
|
|
|
|
{remarkData.visible && <Modal
|
|
|
visible={remarkData.visible}
|