|
@@ -1,10 +1,8 @@
|
|
|
-import { useRequest } from 'umi'
|
|
|
-import { Button, Input, message, Modal } from 'antd'
|
|
|
import React, { useState, useRef, useEffect } from 'react'
|
|
|
+import { useRequest, request } from 'umi'
|
|
|
+import { Button, Input, message, Modal } from 'antd'
|
|
|
import { fetchStaffList } from '@/services/user/api'
|
|
|
import { LoadingOutlined, MoreOutlined } from '@ant-design/icons'
|
|
|
-import { request } from 'umi'
|
|
|
-import './index.less'
|
|
|
|
|
|
interface ConnectModalProps {
|
|
|
postUrl: string
|
|
@@ -99,10 +97,6 @@ const ConnectModal: React.FC<ConnectModalProps> = ({
|
|
|
params.id = dataId
|
|
|
}
|
|
|
await tryConnectStaff(params)
|
|
|
- // // 动态
|
|
|
- // if (onReload) {
|
|
|
- // await onReload()
|
|
|
- // }
|
|
|
handleOnCancel()
|
|
|
}
|
|
|
return (
|
|
@@ -125,9 +119,9 @@ const ConnectModal: React.FC<ConnectModalProps> = ({
|
|
|
style={{ width: '95%' }}
|
|
|
allowClear={true}></Input.Search>
|
|
|
}>
|
|
|
- <div ref={containerRef} className="h-60vh overflow-y-auto overflow-x-hidden modal-content">
|
|
|
+ <div ref={containerRef} className="h-60vh overflow-y-auto overflow-x-hidden">
|
|
|
{list.map(item => (
|
|
|
- <div className="card" key={item.id}>
|
|
|
+ <div className="group-item-card" key={item.id}>
|
|
|
<div className="w-4/3 flex justify-between">
|
|
|
<span className="w-1/5">{item.username}</span>
|
|
|
<span className="w-2/5">{item.phone}</span>
|