Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 a274d219
authored
Dec 15, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调整更近人员
1 parent
df7d4a23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
7 deletions
src/components/echarts/multipleEchart.vue
src/views/clientManage/demo.vue
src/views/clientManage/index copy.vue
src/views/clientManage/index.vue
src/components/echarts/multipleEchart.vue
View file @
a274d21
...
...
@@ -37,10 +37,10 @@ export default {
if
(
this
.
totalData
&&
this
.
totalData
.
length
>
0
)
{
this
.
dateArray
=
this
.
totalData
.
map
(
item
=>
item
.
dateTime
)
//日期
this
.
customerCount
=
this
.
totalData
.
map
(
item
=>
item
.
newCustomerCount
)
this
.
customerRatio
=
this
.
totalData
.
map
(
item
=>
item
.
customerRatio
.
toFixed
(
4
)
*
100
)
this
.
customerRatio
=
this
.
totalData
.
map
(
item
=>
item
.
customerRatio
*
100
)
this
.
entmicroCount
=
this
.
totalData
.
map
(
item
=>
item
.
newEntmicroCount
)
this
.
entmicroRatio
=
this
.
totalData
.
map
(
item
=>
item
.
entmicroRatio
.
toFixed
(
4
)
*
100
)
this
.
entmicroRatio
=
this
.
totalData
.
map
(
item
=>
item
.
entmicroRatio
*
100
)
this
.
initChart
()
}
...
...
@@ -52,10 +52,10 @@ export default {
handler
(
val
)
{
this
.
dateArray
=
this
.
totalData
.
map
(
item
=>
item
.
dateTime
)
//日期
this
.
customerCount
=
this
.
totalData
.
map
(
item
=>
item
.
newCustomerCount
)
this
.
customerRatio
=
this
.
totalData
.
map
(
item
=>
item
.
customerRatio
.
toFixed
(
4
)
*
100
)
this
.
customerRatio
=
this
.
totalData
.
map
(
item
=>
item
.
customerRatio
*
100
)
this
.
entmicroCount
=
this
.
totalData
.
map
(
item
=>
item
.
newEntmicroCount
)
this
.
entmicroRatio
=
this
.
totalData
.
map
(
item
=>
item
.
entmicroRatio
.
toFixed
(
4
)
*
100
)
this
.
entmicroRatio
=
this
.
totalData
.
map
(
item
=>
item
.
entmicroRatio
*
100
)
this
.
initChart
()
}
...
...
src/views/clientManage/demo.vue
View file @
a274d21
...
...
@@ -17,6 +17,14 @@
<div
class=
"table-box"
>
<el-table
class=
"table-list__box"
ref=
"tableList"
:data=
"dataList"
:height=
"tableHeight"
border
stripe
tooltip-effect=
"dark"
>
<el-table-column
v-for=
"column in columns"
:key=
"column.key"
:prop=
"column.key"
:label=
"column.label"
:width=
"column.width"
:min-width=
"150"
sortable
show-overflow-tooltip
filter-placement=
"bottom"
></el-table-column>
<template
slot=
"empty"
class=
"emptyBg"
>
<div
class=
"noDataImgWrap"
style=
"width:64px;height:41px;margin:0 auto;"
>
<img
class=
"noDataImg"
style=
"width:100%;height:100%;"
src=
"@/assets/clientDataOverview/nodata.png"
alt=
""
/>
</div>
<!--
<div>
{{
noDataText
}}
</div>
-->
<div>
暂无数据
</div>
<slot
name=
"additionalContent"
></slot>
</
template
>
</el-table>
<!-- 分页 -->
<div
class=
"pagination__wrapper"
>
...
...
@@ -64,7 +72,7 @@ export default {
console
.
log
(
this
.
tableHeight
,
'tableHeight'
)
})
this
.
dataList
=
demo
.
data
.
rows
.
concat
([])
this
.
dataList
=
[]
//
demo.data.rows.concat([])
}
}
</
script
>
...
...
src/views/clientManage/index copy.vue
deleted
100644 → 0
View file @
df7d4a2
This diff is collapsed.
Click to expand it.
src/views/clientManage/index.vue
View file @
a274d21
...
...
@@ -23,6 +23,27 @@
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'女'
}}
</span>
</span>
<div
slot=
"followStaff"
class=
"entmicro"
slot-scope=
"scope"
>
<div
class=
"entmicro-tag"
v-for=
"(tag, idx) in followList(scope.scope.followStaff)"
:key=
"idx"
>
<el-tag
type=
"info"
v-if=
"idx
< 3
"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
</el-tag>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 3 && idx == 3"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<span
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</span>
<div
class=
"entmicro-hover"
>
<el-tag
type=
"info"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
<!--
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
-->
{{
i
}}
<
/el-tag
>
<
/div
>
<
/el-popover
>
<
/el-tag
>
<
/div
>
<
/div
>
<
span
slot
=
"customerPhone"
slot
-
scope
=
"scope"
>
<
span
>
{{
scope
.
scope
.
customerPhone
==
'null'
?
''
:
scope
.
scope
.
customerPhone
}}
<
/span
>
<
/span
>
...
...
@@ -184,8 +205,8 @@ export default {
{
label
:
'跟进员工'
,
prop
:
'followStaff'
,
minWidth
:
'120'
// addHtml:'followStaff'
addHtml
:
'followStaff'
,
minWidth
:
110
}
,
{
label
:
'来源'
,
...
...
@@ -249,6 +270,12 @@ export default {
}
,
methods
:
{
followList
(
str
)
{
if
(
!
str
)
{
return
[]
}
return
str
.
split
(
','
)
}
,
statusText
(
text
)
{
return
text
===
-
1
?
'删除好友'
:
text
===
0
?
'正常'
:
''
}
,
...
...
@@ -408,6 +435,42 @@ export default {
// .glsx-table
{
// margin-top: 20px;
//
}
.
entmicro
{
// overflow: hidden;
// text-overflow: ellipsis;
// display: -webkit-box;
// -webkit-line-clamp: 2;
// -webkit-box-orient: vertical;
// text-align: left;
i
{
color
:
#
75
acff
;
margin
-
right
:
3
px
;
font
-
size
:
14
px
;
}
&-
tag
{
display
:
inline
-
block
;
}
&-
hover
{
max
-
height
:
214
px
;
overflow
:
auto
;
i
{
color
:
#
75
acff
;
margin
-
right
:
3
px
;
font
-
size
:
14
px
;
}
}
// span
{
// line-height: 20px;
//
}
}
.
el
-
tag
{
margin
-
right
:
10
px
;
margin
-
bottom
:
10
px
;
cursor
:
pointer
;
background
-
color
:
#
fff
!
important
;
}
}
}
<
/style
>
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