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' ...@@ -13,6 +13,7 @@ import liveBroadcast from './liveBroadcast'
import groupCustomer from './groupCustomer' import groupCustomer from './groupCustomer'
import groupTag from './groupTag' import groupTag from './groupTag'
import entmicroApi from './entmicroApi' import entmicroApi from './entmicroApi'
import detailApi from './detail'
export { export {
ssoApi, ssoApi,
groupChat, groupChat,
...@@ -20,5 +21,6 @@ export { ...@@ -20,5 +21,6 @@ export {
liveBroadcast, liveBroadcast,
groupCustomer, groupCustomer,
groupTag, groupTag,
entmicroApi entmicroApi,
detailApi
} }
\ No newline at end of file \ No newline at end of file
...@@ -23,6 +23,18 @@ const pages = { ...@@ -23,6 +23,18 @@ const pages = {
title: '完善信息', title: '完善信息',
backgroundColor: '#F7F7F7' backgroundColor: '#F7F7F7'
} }
}, {
name: 'detail',
meta: {
title: '客户跟进',
backgroundColor: '#F7F7F7'
}
}, {
name: 'editDetail',
meta: {
title: '查看客户详情',
backgroundColor: '#F7F7F7'
}
}], }],
tag: [{ tag: [{
name: 'index', name: 'index',
...@@ -38,14 +50,12 @@ const pages = { ...@@ -38,14 +50,12 @@ const pages = {
backgroundColor: '#F7F7F7' backgroundColor: '#F7F7F7'
} }
}, { }, {
name: 'editDetail', name: 'detail',
meta: { meta: {
title: '查看客户详情', title: '查看客户详情',
backgroundColor: '#F7F7F7' backgroundColor: '#F7F7F7'
} }
}] }]
} }
const redirect = '' const redirect = ''
...@@ -71,6 +81,6 @@ Object.keys(pages).map(parent => { ...@@ -71,6 +81,6 @@ Object.keys(pages).map(parent => {
}) })
}) })
console.log(routes) console.log(routes, '0')
export const keeps = keepAlives export const keeps = keepAlives
export default routes export default routes
\ No newline at end of file \ No newline at end of file
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
</template> </template>
<script> <script>
import { detailApi } from '@/api'
export default { export default {
data() { data() {
return { return {
...@@ -120,6 +121,9 @@ export default { ...@@ -120,6 +121,9 @@ export default {
] ]
} }
}, },
created() {
this.getCustomerDetail()
},
methods: { methods: {
onConfirm(date) { onConfirm(date) {
console.log(date) console.log(date)
...@@ -136,6 +140,11 @@ export default { ...@@ -136,6 +140,11 @@ export default {
name: 'customer.editDetail', name: 'customer.editDetail',
params: { title } 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!