|
@@ -13,12 +13,13 @@ const Index = props => {
|
|
|
loading: false,
|
|
loading: false,
|
|
|
customer: {},
|
|
customer: {},
|
|
|
log: [],
|
|
log: [],
|
|
|
- software: {}
|
|
|
|
|
|
|
+ software: {},
|
|
|
|
|
+ client: {}
|
|
|
})
|
|
})
|
|
|
const initData = async () => {
|
|
const initData = async () => {
|
|
|
setState({ ...state, loading: true })
|
|
setState({ ...state, loading: true })
|
|
|
const {
|
|
const {
|
|
|
- data: { customer = {}, log = [], software = {} },
|
|
|
|
|
|
|
+ data: { customer = {}, log = [], software = {}, client = {} },
|
|
|
code = -1
|
|
code = -1
|
|
|
} = await apiCompanyDetail(id)
|
|
} = await apiCompanyDetail(id)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
@@ -28,7 +29,7 @@ const Index = props => {
|
|
|
payload: 'company'
|
|
payload: 'company'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- setState({ ...state, customer, log, software, loading: false })
|
|
|
|
|
|
|
+ setState({ ...state, customer, log, software, loading: false, client })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|