Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dfa5b2cf
authored
Nov 26, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tijiao
1 parent
a0b6a992
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
5 deletions
src/api/detail.js
src/api/index.js
src/router/routes.js
src/views/customer/detail.vue
src/api/detail.js
0 → 100644
View file @
dfa5b2c
const
url
=
'/rop-scrm-entmicro/router'
export
default
{
/** 侧边栏-客户跟进 */
getCustomerDetail
(
data
)
{
data
.
method
=
'entmicro.api.customer.detail.single'
return
window
.
$HTTP
({
url
,
data
,
returnAll
:
true
})
}
}
src/api/index.js
View file @
dfa5b2c
...
@@ -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
src/router/routes.js
View file @
dfa5b2c
...
@@ -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
:
'
editD
etail'
,
name
:
'
d
etail'
,
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
src/views/customer/detail.vue
View file @
dfa5b2c
...
@@ -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
)
})
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment