Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
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 a0f6e7b7
authored
Oct 11, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
deaa6af5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
91 deletions
src/views/journey/index/dataView.vue
src/views/journey/index/dataView.vue
View file @
a0f6e7b
...
...
@@ -2,104 +2,106 @@
<div
class=
"data-view"
>
<div
class=
"title"
>
旅程看板
</div>
<div
class=
"carousel-box"
>
<template
v-if=
"viewList.length"
>
<el-carousel
ref=
"carousel"
:autoplay=
"false"
:loop=
"false"
indicator-position=
"none"
height=
"100%"
arrow=
"never"
class=
"carousel"
@
change=
"viewIndex = $event"
>
<template
v-for=
"(i, index) in viewList"
>
<template>
<el-carousel-item
:key=
"index"
class=
"carousel-item"
>
<template
v-for=
"(c, cindex) in i"
>
<template>
<div
:key=
"cindex"
class=
"group"
>
<div
class=
"title"
>
<div
class=
"text flex"
>
<div
class=
"icon"
>
<img
:src=
"`https://img01.glsx.com.cn/weapp/resource/saas/scrm/data-view-sop-$
{cindex}.png`">
<template
v-if=
"dataViewLoading"
>
<template
v-if=
"viewList.length"
>
<el-carousel
ref=
"carousel"
:autoplay=
"false"
:loop=
"false"
indicator-position=
"none"
height=
"100%"
arrow=
"never"
class=
"carousel"
@
change=
"viewIndex = $event"
>
<template
v-for=
"(i, index) in viewList"
>
<template>
<el-carousel-item
:key=
"index"
class=
"carousel-item"
>
<template
v-for=
"(c, cindex) in i"
>
<template>
<div
:key=
"cindex"
class=
"group"
>
<div
class=
"title"
>
<div
class=
"text flex"
>
<div
class=
"icon"
>
<img
:src=
"`https://img01.glsx.com.cn/weapp/resource/saas/scrm/data-view-sop-$
{cindex}.png`">
</div>
{{
c
.
title
}}
</div>
<div
class=
"line-box"
>
<div
class=
"line"
:style=
"[
{ width: c.width }]"
>
</div>
</div>
{{
c
.
title
}}
</div>
<div
class=
"line-box"
>
<div
class=
"line"
:style=
"[
{ width: c.width }]"
>
</div>
</div>
</div>
<el-scrollbar
class=
"content"
>
<template
v-if=
"c.list.length"
>
<template
v-for=
"(item, ind) in c.list"
>
<template>
<div
:key=
"ind"
class=
"item"
>
<div
class=
"top flex"
>
<div
class=
"icon"
>
<template
v-if=
"item.wechatAvatarUrl"
>
<img
:src=
"item.wechatAvatarUrl"
/>
</
template
>
<
template
v-else
>
<img
src=
"@/assets/icon/default-avatar.png"
/>
</
template
>
<el-scrollbar
class=
"content"
>
<template
v-if=
"c.list.length"
>
<template
v-for=
"(item, ind) in c.list"
>
<template>
<div
:key=
"ind"
class=
"item"
>
<div
class=
"top flex"
>
<div
class=
"icon"
>
<template
v-if=
"item.wechatAvatarUrl"
>
<img
:src=
"item.wechatAvatarUrl"
/>
</
template
>
<
template
v-else
>
<img
src=
"@/assets/icon/default-avatar.png"
/>
</
template
>
</div>
<div
class=
"text"
>
<div
class=
"name"
>
{{ item.wechatNickname}}
</div>
{{ item.customerPhone }}
</div>
</div>
<div
class=
"
text
"
>
<div
class=
"
name"
>
{{ item.wechatNickname}}
</div>
{{ item.customerPhone }}
<div
class=
"
bottom flex
"
>
<div
class=
"
left text-hide"
>
进入该阶段:第{{ item.day }}天
</div>
<div
class=
"right text-hide"
>
跟进人:{{ item.sopFollowUpPersonName }}
</div>
</div>
</div>
<div
class=
"bottom flex"
>
<div
class=
"left text-hide"
>
进入该阶段:第{{ item.day }}天
</div>
<div
class=
"right text-hide"
>
跟进人:{{ item.sopFollowUpPersonName }}
</div>
</div>
</div>
</template>
</template>
</template>
</templat
e>
<
template
v-else
>
<div
class=
"nothing"
>
<
img
src=
"@/assets/icon/nodata.png"
/
>
</
div
>
</
template
>
</
el-scrollbar
>
</
div
>
<
template
v-els
e
>
<div
class=
"nothing"
>
<img
src=
"@/assets/icon/nodata.png"
/
>
<
/div
>
</
template
>
</
el-scrollbar
>
</
div
>
</
template
>
</template>
</
template
>
</
el-carousel-item
>
</
el-carousel-item
>
</
template
>
</template>
</
template
>
</el-carousel>
<div
class=
"arrow left
"
@
click=
"$refs.carousel.prev()"
>
<
img
:src=
"viewIndex == 0 ? leftIcon : leftActiveIcon"
/
>
</div>
<div
class=
"arrow right
"
@
click=
"$refs.carousel.next()"
>
<
img
:src=
"viewIndex < viewList.length - 1 ? rightActiveIcon : rightIcon"
/
>
</
div
>
</templat
e>
<
template
v-else
>
<div
class
=
"nothing"
>
<img
:src=
"nothing"
>
暂无数据
</
div
>
</
el-carousel
>
<div
class=
"arrow left"
@
click=
"$refs.carousel.prev()
"
>
<img
:src=
"viewIndex == 0 ? leftIcon : leftActiveIcon"
/
>
<
/div
>
<div
class=
"arrow right"
@
click=
"$refs.carousel.next()
"
>
<img
:src=
"viewIndex < viewList.length - 1 ? rightActiveIcon : rightIcon"
/
>
<
/div
>
</
template
>
<
template
v-els
e
>
<div
class=
"nothing"
>
<img
:src
=
"nothing"
>
暂无数据
</div>
</
template
>
</template>
</div>
</div>
...
...
@@ -130,7 +132,7 @@ export default {
rightIcon
:
require
(
'@/assets/icon/right.png'
),
rightActiveIcon
:
require
(
'@/assets/icon/right-active.png'
),
pageNumber
:
1
,
nothing
nothing
,
}
},
mounted
()
{
...
...
@@ -162,6 +164,7 @@ export default {
let
list
=
[]
if
(
!
sopJourneyStage
||
sopJourneyStage
==
k
.
value
)
{
this
.
dataViewLoading
=
false
const
{
list
:
apiList
}
=
await
this
.
$apis
.
journey
.
getCustomersList
(
params
)
list
=
apiList
}
...
...
@@ -176,7 +179,7 @@ export default {
}
}
this
.
viewList
=
splitArrayIntoChunks
(
arr
,
4
)
this
.
dataViewLoading
=
fals
e
this
.
dataViewLoading
=
tru
e
},
}
}
...
...
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