|
@@ -1,5 +1,5 @@
|
|
|
import ContactDetail from '@/pages/customer/Contact/components/ContactDetail'
|
|
import ContactDetail from '@/pages/customer/Contact/components/ContactDetail'
|
|
|
-import React, { useEffect, useState, useRef } from 'react'
|
|
|
|
|
|
|
+import React, { useRef } from 'react'
|
|
|
import { Tabs, message } from 'antd'
|
|
import { Tabs, message } from 'antd'
|
|
|
// import SvgIcon from '@/components/SvgIcon'
|
|
// import SvgIcon from '@/components/SvgIcon'
|
|
|
import AddContact from '@/pages/customer/Contact/components/AddContact'
|
|
import AddContact from '@/pages/customer/Contact/components/AddContact'
|
|
@@ -14,10 +14,6 @@ const CompanyTabList = ({ initData, customerId, client, software, departmentsMap
|
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
|
const { TabPane } = Tabs
|
|
const { TabPane } = Tabs
|
|
|
const tRef = useRef(null)
|
|
const tRef = useRef(null)
|
|
|
- const [state, setState] = useState({
|
|
|
|
|
- id: '',
|
|
|
|
|
- orderIds: []
|
|
|
|
|
- })
|
|
|
|
|
// 展示drawer
|
|
// 展示drawer
|
|
|
const showDrawer = id => {
|
|
const showDrawer = id => {
|
|
|
toggleDrawer()
|
|
toggleDrawer()
|
|
@@ -28,7 +24,7 @@ const CompanyTabList = ({ initData, customerId, client, software, departmentsMap
|
|
|
height: '100vh',
|
|
height: '100vh',
|
|
|
overflowY: 'hidden'
|
|
overflowY: 'hidden'
|
|
|
},
|
|
},
|
|
|
- children: <ContactDetail dataId={id} orderIds={state.orderIds} />
|
|
|
|
|
|
|
+ children: <ContactDetail dataId={id} orderIds={[]} />
|
|
|
})
|
|
})
|
|
|
toggleDrawer()
|
|
toggleDrawer()
|
|
|
}
|
|
}
|