Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 6a3510d0
authored
Dec 20, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
e870aa5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
9 deletions
linkwe-ui/src/views/customerManage/customer/infoTab.vue
linkwe-ui/src/views/customerManage/customer/record.vue
linkwe-ui/src/views/customerManage/customerDetail.vue
linkwe-ui/src/views/customerManage/customer/infoTab.vue
View file @
6a3510d
...
...
@@ -9,6 +9,10 @@ export default {
type
:
String
,
default
:
''
}
// trackUsers: {
// type: Array,
// default: ''
// }
},
components
:
{
record
...
...
@@ -105,7 +109,8 @@ export default {
:key=
"index"
:class=
"['flex', index && 'mt20']"
>
<div
class=
"name oe"
>
{{
item
.
userName
}}
</div>
<!-- 汇总的场景显示名字 -->
<div
v-if=
"!userId"
class=
"name oe"
>
{{
item
.
userName
}}
</div>
:
<template
v-if=
"item.tagNames"
>
<el-tag
...
...
@@ -133,7 +138,8 @@ export default {
:key=
"index"
:class=
"['flex', index && 'mt20']"
>
<div
class=
"name oe"
>
{{
item
.
userName
}}
</div>
<!-- 汇总的场景显示名字 -->
<div
v-if=
"!userId"
class=
"name oe"
>
{{
item
.
userName
}}
</div>
:
<template
v-if=
"item.tagNames"
>
<el-tag
...
...
@@ -157,7 +163,8 @@ export default {
<div
slot=
"header"
class=
"card-title"
>
跟进状态
</div>
<
template
v-if=
"portrayalSum.trackStates && portrayalSum.trackStates.length"
>
<div
class=
"flex mb20"
v-for=
"(item, index) of portrayalSum.trackStates"
:key=
"index"
>
<div
class=
"name oe"
>
{{
item
.
userName
}}
</div>
<!-- 汇总的场景显示名字 -->
<div
class=
"name oe"
v-if=
"!userId"
>
{{
item
.
userName
}}
</div>
:
<template
v-if=
"item.trackStateList.length"
>
<el-steps
...
...
@@ -183,19 +190,22 @@ export default {
<el-card
shadow=
"never"
>
<div
slot=
"header"
class=
"card-title"
>
跟进记录
</div>
<!-- 单个人的场景 -->
<record
v-if=
"userId"
:userId=
"userId"
viewType=
"1"
></record>
<!-- 汇总的场景 -->
<el-tabs
v-
if=
"portrayalSum.trackStates && portrayalSum.trackState
s.length"
v-
else-if=
"portrayalSum.trackUsers && portrayalSum.trackUser
s.length"
value=
"0"
@
tab-click=
"changeTab"
>
<el-tab-pane
v-for=
"(item, index) in portrayalSum.track
State
s"
v-for=
"(item, index) in portrayalSum.track
User
s"
:key=
"index"
:label=
"item.userName"
>
<record
v-if=
"openedTabs.includes(index + '')"
:userId=
"item.
u
serId"
:userId=
"item.
trackU
serId"
viewType=
"1"
></record>
</el-tab-pane>
...
...
linkwe-ui/src/views/customerManage/customer/record.vue
View file @
6a3510d
...
...
@@ -14,6 +14,7 @@ export default {
type
:
String
,
default
:
null
},
// 视图展示类型 1:表格展示,2:轨迹时间线展示
viewType
:
{
type
:
String
,
default
:
''
...
...
@@ -23,7 +24,7 @@ export default {
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageNum
:
0
,
pageSize
:
10
,
externalUserid
:
''
,
// 是 当前客户id
userId
:
null
,
// 当前跟进人id,
...
...
@@ -38,7 +39,7 @@ export default {
computed
:
{},
watch
:
{},
created
()
{
this
.
viewType
&&
this
.
getList
()
this
.
viewType
&&
this
.
getList
(
1
)
},
mounted
()
{},
methods
:
{
...
...
@@ -60,7 +61,9 @@ export default {
if
(
this
.
viewType
)
{
this
.
list
=
rows
}
else
{
debugger
this
.
list
=
this
.
list
.
concat
(
rows
)
console
.
log
(
this
.
list
)
}
this
.
total
=
+
total
this
.
loading
=
false
...
...
linkwe-ui/src/views/customerManage/customerDetail.vue
View file @
6a3510d
...
...
@@ -62,11 +62,15 @@ export default {
getDetail
(
this
.
$route
.
query
).
then
(({
data
})
=>
{
data
.
companyTags
&&
(
data
.
companyTags
=
data
.
companyTags
.
split
(
','
))
this
.
customer
=
data
if
(
data
.
trackUsers
&&
data
.
trackUsers
.
length
===
1
)
{
this
.
openedTabs
=
[
data
.
trackUsers
[
0
].
trackUserId
]
}
this
.
birthday
=
data
.
birthday
})
},
changeTab
(
tab
)
{
this
.
openedTabs
.
includes
(
tab
.
id
)
||
this
.
openedTabs
.
push
(
tab
.
id
)
this
.
openedTabs
.
includes
(
tab
.
$attrs
.
id
)
||
this
.
openedTabs
.
push
(
tab
.
$attrs
.
id
)
}
// remark(item) {
...
...
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