Commit dfa5b2cf by 胡悦

tijiao

1 parent a0b6a992
const url = '/rop-scrm-entmicro/router'
export default {
/** 侧边栏-客户跟进 */
getCustomerDetail(data) {
data.method = 'entmicro.api.customer.detail.single'
return window.$HTTP({
url,
data,
returnAll: true
})
}
}
......@@ -13,6 +13,7 @@ import liveBroadcast from './liveBroadcast'
import groupCustomer from './groupCustomer'
import groupTag from './groupTag'
import entmicroApi from './entmicroApi'
import detailApi from './detail'
export {
ssoApi,
groupChat,
......@@ -20,5 +21,6 @@ export {
liveBroadcast,
groupCustomer,
groupTag,
entmicroApi
entmicroApi,
detailApi
}
\ No newline at end of file
......@@ -23,6 +23,18 @@ const pages = {
title: '完善信息',
backgroundColor: '#F7F7F7'
}
}, {
name: 'detail',
meta: {
title: '客户跟进',
backgroundColor: '#F7F7F7'
}
}, {
name: 'editDetail',
meta: {
title: '查看客户详情',
backgroundColor: '#F7F7F7'
}
}],
tag: [{
name: 'index',
......@@ -38,14 +50,12 @@ const pages = {
backgroundColor: '#F7F7F7'
}
}, {
name: 'editDetail',
name: 'detail',
meta: {
title: '查看客户详情',
backgroundColor: '#F7F7F7'
}
}]
}
const redirect = ''
......@@ -71,6 +81,6 @@ Object.keys(pages).map(parent => {
})
})
console.log(routes)
console.log(routes, '0')
export const keeps = keepAlives
export default routes
\ No newline at end of file
......@@ -68,6 +68,7 @@
</template>
<script>
import { detailApi } from '@/api'
export default {
data() {
return {
......@@ -120,6 +121,9 @@ export default {
]
}
},
created() {
this.getCustomerDetail()
},
methods: {
onConfirm(date) {
console.log(date)
......@@ -136,6 +140,11 @@ export default {
name: 'customer.editDetail',
params: { title }
})
},
getCustomerDetail() {
detailApi.getCustomerDetail({ externalUserId: 'wm-ZewEAAAc61j2kgvuKnY011oPgBj3w' }).then(res => {
console.log(res)
})
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!