|
|
@@ -7,8 +7,8 @@ import { apiContactDetail } from '@/services/contact'
|
|
|
import consts from '@/consts'
|
|
|
import { connect } from 'dva'
|
|
|
|
|
|
-const PopContent = props => {
|
|
|
- const { dispatch, shouldUpdate, visible, id = '' } = props
|
|
|
+const ContactDetail = props => {
|
|
|
+ const { dispatch, shouldUpdate, visible, dataId = '' } = props
|
|
|
|
|
|
const [state, setState] = useState({
|
|
|
loading: false,
|
|
|
@@ -22,7 +22,7 @@ const PopContent = props => {
|
|
|
const {
|
|
|
data: { client = {}, log = [], serviceLog = [] },
|
|
|
code = -1
|
|
|
- } = await apiContactDetail(id)
|
|
|
+ } = await apiContactDetail(dataId)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
if (shouldUpdate) {
|
|
|
dispatch({
|
|
|
@@ -67,4 +67,4 @@ const PopContent = props => {
|
|
|
export default connect(({ refresh, single }) => ({
|
|
|
visible: single.drawer.visible,
|
|
|
shouldUpdate: refresh.contact
|
|
|
-}))(PopContent)
|
|
|
+}))(ContactDetail)
|