|
@@ -19,16 +19,17 @@ const Popcontent = props => {
|
|
|
const [clientWidth, setClientWidth] = useState(document.body.clientWidth * 0.75)
|
|
const [clientWidth, setClientWidth] = useState(document.body.clientWidth * 0.75)
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
client: {},
|
|
client: {},
|
|
|
|
|
+ log:[],
|
|
|
log: []
|
|
log: []
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const initData = async () => {
|
|
const initData = async () => {
|
|
|
const {
|
|
const {
|
|
|
- data: { client = {} },
|
|
|
|
|
|
|
+ data: { client = {},log={} },
|
|
|
code = -1
|
|
code = -1
|
|
|
} = await apiContactDetail(id)
|
|
} = await apiContactDetail(id)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- setState({ ...state, client })
|
|
|
|
|
|
|
+ setState({ ...state, client,log })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
@@ -66,7 +67,7 @@ const Popcontent = props => {
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
<ContanctTabList />
|
|
<ContanctTabList />
|
|
|
- <ContanctLowerList />
|
|
|
|
|
|
|
+ <ContanctLowerList log={state.log} />
|
|
|
</Col>
|
|
</Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
</Drawer>
|
|
</Drawer>
|