Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
dj-data-view
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 b5c40703
authored
Oct 31, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
96c3cda3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
25 deletions
src/components/Legend.vue
src/components/ViewTabs.vue
src/views/saas/overview.vue
src/components/Legend.vue
View file @
b5c4070
<
template
>
<div
class=
"legend"
>
<div
class=
"legend-item flex"
v-for=
"(item, index) in dataList"
:key=
"index"
>
<
span
:style=
"
{ background: colors[index] }">
</span
>
{{
item
.
name
}}
<
div
class=
"icon"
:style=
"
{ background: colors[index] }">
</div
>
<div
class=
"item-content"
>
{{
item
.
name
}}
</div>
</div>
</div>
</
template
>
...
...
@@ -52,7 +52,12 @@ export default {
box-sizing
:
border-box
;
margin
:
2px
2px
2px
0
;
white-space
:
nowrap
;
span
{
.item-content
{
width
:
2.5vw
;
overflow
:
hidden
;
}
.icon
{
width
:
5px
;
height
:
5px
;
background
:
#bf98ff
;
...
...
src/components/ViewTabs.vue
View file @
b5c4070
...
...
@@ -28,10 +28,10 @@ export default {
title
:
'留存率'
,
key
:
'retention'
},
{
title
:
'单店产值'
,
key
:
'outputValue'
}
//
{
//
title: '单店产值',
//
key: 'outputValue'
//
}
]
}
},
...
...
src/views/saas/overview.vue
View file @
b5c4070
...
...
@@ -5,13 +5,15 @@
<div
:style=
"
{ width: item.width ? item.width : 'auto' }" v-for="(item, index) in titleList" :key="index">
{{
item
.
text
}}
</div>
</div>
<div
class=
"content"
>
<div
:class=
"['content-item', 'flex', info.pd ? info.pd : '']"
v-for=
"(info, index) in infoList"
:key=
"index"
>
<div
:class=
"['content-item', 'flex
-around
', info.pd ? info.pd : '']"
v-for=
"(info, index) in infoList"
:key=
"index"
>
<div
class=
"content-title"
>
{{
info
.
title
}}
</div>
<template
v-for=
"(data, ids) in info.dataList"
>
<div
v-if=
"ids != 3"
:class=
"['content-number', 'num-' + ids]"
:key=
"ids"
>
{{
index
==
0
?
numAddSymbol
(
data
(
smartClueData
))
:
index
==
1
?
numAddSymbol
(
data
(
merchantData
))
:
numAddSymbol
(
data
(
smartData
))
}}
</div>
<div
v-else
:class=
"['content-number', 'num-' + ids]"
:key=
"ids"
>
{{
index
==
0
?
toFixNum
(
data
(
smartClueData
))
:
index
==
1
?
toFixNum
(
data
(
merchantData
))
:
toFixNum
(
data
(
smartData
))
}}
</div>
<div
v-else
:class=
"['content-number', 'num-' + ids]"
:key=
"ids"
>
{{
index
==
0
?
toFixNum
(
data
(
smartClueData
))
:
index
==
1
?
toFixNum
(
data
(
merchantData
))
:
toFixNum
(
data
(
smartData
))
}}
</div>
</
template
>
</div>
</div>
...
...
@@ -58,23 +60,23 @@ export default {
merchantData
:
''
,
//门店会员的权益
smartData
:
''
,
// 智慧车管线索订阅
smartClueData
:
''
,
//智慧门店线索订阅
titleList
:
[{
text
:
'订阅门店'
},
{
text
:
'线索订阅门店数(累计)'
,
width
:
'3.82vw'
},
{
text
:
'线索订阅门店数(当年新增)'
,
width
:
'4.68vw'
},
{
text
:
'活跃使用门店'
},
{
text
:
'留存率
'
}],
titleList
:
[{
text
:
'订阅门店'
,
width
:
'2.78vw'
},
{
text
:
'线索订阅门店数(累计)'
,
width
:
'3.82vw'
},
{
text
:
'活跃使用门店'
,
width
:
'4.95vw'
},
{
text
:
'留存率'
,
width
:
'4.29vw
'
}],
infoList
:
[
{
title
:
'智慧门店线索订阅'
,
pd
:
'pd26'
,
width
:
'2.78vw'
,
dataList
:
[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
increnum
,
obj
=>
obj
.
activenum
,
obj
=>
obj
.
retention
]
dataList
:
[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
activenum
,
obj
=>
obj
.
retention
]
},
{
title
:
'门店会员的权益'
,
width
:
'2.78vw'
,
dataList
:
[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
increnum
,
obj
=>
obj
.
activenum
,
obj
=>
obj
.
retention
]
dataList
:
[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
activenum
,
obj
=>
obj
.
retention
]
},
{
title
:
'智慧车管线索订阅'
,
width
:
'2.78vw'
,
dataList
:
[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
increnum
,
obj
=>
obj
.
activenum
,
obj
=>
obj
.
retention
]
dataList
:
[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
activenum
,
obj
=>
obj
.
retention
]
}
],
clewList
:
[
...
...
@@ -137,7 +139,7 @@ export default {
height
:
30.73vh
;
}
.clew
{
width
:
11.11vw
;
width
:
11.11vw
;
height
:
30.73vh
;
}
.estimate
{
...
...
@@ -149,12 +151,13 @@ export default {
background
:
rgba
(
22
,
28
,
95
,
0.6
);
font-weight
:
600
;
font-size
:
10px
;
color
:
#E8E8E8
;
color
:
#e8e8e8
;
text-align
:
center
;
}
.content
{
width
:
100%
;
&-item
{
padding
:
1.59vh
0
.49vw
1.59vh
0.69vw
;
padding
:
1.59vh
0
;
height
:
6.83vh
;
background
:
#0b0e31
;
margin-bottom
:
0.49vh
;
...
...
@@ -179,17 +182,14 @@ export default {
width
:
3.82vw
;
}
.num-1
{
width
:
4.
68
vw
;
width
:
4.
95
vw
;
}
.num-2
{
width
:
4.68vw
;
}
.num-3
{
width
:
2.29vw
;
width
:
4.29vw
;
}
.pd26
{
height
:
9.999vh
;
padding
:
3.17vh
0
.49vw
3.17vh
0.69vw
;
padding
:
3.17vh
0
;
}
}
.mgr4
{
...
...
@@ -213,7 +213,7 @@ export default {
font-size
:
12px
;
color
:
#ffffff
;
}
&
:last-child
{
&
:last-child
{
border
:
none
!important
;
}
}
...
...
@@ -222,7 +222,7 @@ export default {
background
:
#061e19
;
.clew-line-text
{
border-bottom
:
1px
solid
#0a2d26
;
height
:
6.83vh
;
height
:
6.83vh
;
}
}
.bg-2
{
...
...
@@ -248,7 +248,7 @@ export default {
font-size
:
12px
;
color
:
#ffffff
;
}
&
:last-child
{
&
:last-child
{
border
:
none
!important
;
}
}
...
...
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