|
@@ -69,7 +69,7 @@ const Contact: React.FC = () => {
|
|
|
visible: false,
|
|
|
type: modalType.CREATE
|
|
|
})
|
|
|
- console.log(state.clientSourceList)
|
|
|
+ // console.log(state.clientSourceList)
|
|
|
|
|
|
const onSelect = (menuId: string) => {
|
|
|
setState({ ...state, menuId })
|
|
@@ -182,10 +182,10 @@ const Contact: React.FC = () => {
|
|
|
if (!department.length) {
|
|
|
fetchDepartment()
|
|
|
}
|
|
|
- if (state.id) {
|
|
|
- tryGetClientSourceList(state.id)
|
|
|
+ if (state.menuId === 2) {
|
|
|
+ tryGetClientSourceList()
|
|
|
}
|
|
|
- }, [state.id])
|
|
|
+ }, [state.menuId])
|
|
|
const mainColumns: ColumnsType<API.BusinessgroupItem> = [
|
|
|
{
|
|
|
dataIndex: 'name',
|
|
@@ -310,7 +310,6 @@ const Contact: React.FC = () => {
|
|
|
dataSource={state.clientSourceList}
|
|
|
bordered
|
|
|
rowKey={row => row.id}
|
|
|
- params={{ msgType: 'notification' }}
|
|
|
/>
|
|
|
</>
|
|
|
) : null}
|