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 ed16691d
authored
Oct 25, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
b519bdb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
163 additions
and
26 deletions
src/assets/css/index.scss
src/views/saas/overview.vue
src/assets/css/index.scss
View file @
ed16691
...
...
@@ -26,7 +26,22 @@ img {
display
:
flex
;
align-items
:
center
;
}
.flex-around
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-around
;
}
.flex-between
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.flex-column
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.text-hide
{
white-space
:
nowrap
;
overflow
:
hidden
;
...
...
@@ -91,7 +106,7 @@ img {
user-select
:
none
;
box-sizing
:
border-box
;
height
:
2
.07vh
;
margin-top
:
4px
;
margin-top
:
4px
;
}
.title-icon
{
...
...
@@ -108,7 +123,7 @@ img {
}
.container
{
height
:
8
.54vh
;
height
:
8
.54vh
;
margin
:
8px
6px
8px
8px
;
}
...
...
src/views/saas/overview.vue
View file @
ed16691
<
template
>
<div
class=
"overview flex"
>
<div
class=
"
overview-store
"
>
<div
class=
"headline"
>
<div
class=
"head-item"
:style=
"
{ width: item.width ? item.width : 'auto' }" v-for="(item, index) in titleList" :key="index">
{{
item
.
text
}}
</div>
<div
class=
"
store mgr4
"
>
<div
class=
"headline
flex-around
"
>
<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', 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
:class=
"['content-number', 'num-' + ids]"
:key=
"ids"
>
1,287
</div>
...
...
@@ -13,6 +13,32 @@
</div>
</div>
</div>
<div
class=
"clew mgr4"
>
<div
class=
"headline text-center"
>
产生线索/核销数
</div>
<div
class=
"clew-content"
>
<div
:class=
"['clew-content-item', 'bg-' + clewInx]"
v-for=
"(clew, clewInx) in clewList"
:key=
"clewInx"
>
<
template
v-for=
"(clewData, clewIds) in clew"
>
<div
class=
"clew-line-text flex-between"
:key=
"clewIds"
>
<div>
{{
clewData
.
title
}}
</div>
<div
class=
"clew-num"
>
1,542,081
</div>
</div>
</
template
>
</div>
</div>
</div>
<div
class=
"estimate"
>
<div
class=
"headline text-center"
>
预估价值/挽回损失
</div>
<div
class=
"estimate-content"
>
<div
:class=
"['estimate-content-item', 'bgEstimate-' + estimateInx]"
v-for=
"(estimate, estimateInx) in estimateList"
:key=
"estimateInx"
>
<
template
v-for=
"(estimateData, estimateIds) in estimate"
>
<div
:class=
"['estimate-line-text', estimateInx == 2 ? 'flex-column retrieve' : 'text-center']"
:key=
"estimateIds"
>
<div
v-if=
"estimateInx == 2"
>
挽回损失
</div>
<div
class=
"estimate-num"
>
1,542,081
</div>
</div>
</
template
>
</div>
</div>
</div>
</div>
</template>
...
...
@@ -40,7 +66,23 @@ export default {
width
:
'2.78vw'
,
dataList
:
[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
increnum
,
obj
=>
obj
.
activenum
,
obj
=>
obj
.
retention
]
}
]
],
clewList
:
[
[
{
title
:
'到店线索'
,
value
:
obj
=>
obj
.
arrival
},
{
title
:
'送修线索'
,
value
:
obj
=>
obj
.
repair
},
{
title
:
'续保线索'
,
value
:
obj
=>
obj
.
insurance
}
],
[
{
title
:
'自店权益'
,
value
:
obj
=>
obj
.
ownshopequity
},
{
title
:
'数字权益'
,
value
:
obj
=>
obj
.
digitalequity
}
],
[
{
title
:
'高危点'
,
value
:
obj
=>
obj
.
highcriticalpoint
},
{
title
:
'高危报警'
,
value
:
obj
=>
obj
.
highriskalarm
}
]
],
estimateList
:
[[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
increnum
,
obj
=>
obj
.
activenum
],
[
obj
=>
obj
.
totalnum
],
[
obj
=>
obj
.
totalnum
]]
}
},
mounted
()
{},
...
...
@@ -50,29 +92,32 @@ export default {
<
style
lang=
"scss"
scoped
>
.overview
{
margin
:
10px
16px
16px
16px
;
&-
store
{
margin
:
10px
0
16px
0
;
.
store
{
width
:
23.89vw
;
height
:
30.73vh
;
.headline
{
height
:
6.1vh
;
opacity
:
0.6
;
background
:
#161c5f
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-around
;
.head-item
{
font-weight
:
600
;
font-size
:
10px
;
color
:
#fff
;
//
white-space
:
nowrap
;
}
}
}
.clew
{
width
:
9.58vw
;
height
:
30.73vh
;
}
.estimate
{
width
:
7.64vw
;
height
:
30.73vh
;
}
.headline
{
height
:
6.1vh
;
opacity
:
0.6
;
background
:
#161c5f
;
font-weight
:
600
;
font-size
:
10px
;
color
:
#fff
;
}
.content
{
width
:
100%
;
width
:
100%
;
&-item
{
padding
:
1.59vh
0.49vw
1.59vh
0.69vw
;
height
:
6.83vh
;
background
:
#0b0e31
;
margin-bottom
:
0.49vh
;
justify-content
:
space-around
;
...
...
@@ -89,7 +134,7 @@ export default {
font-weight
:
700
;
font-size
:
12px
;
color
:
#ffffff
;
text-align
:
center
;
text-align
:
center
;
}
.num-0
{
width
:
3.82vw
;
...
...
@@ -104,8 +149,85 @@ export default {
width
:
2.29vw
;
}
.pd26
{
height
:
9.999vh
;
padding
:
3.17vh
0.49vw
3.17vh
0.69vw
;
}
}
.mgr4
{
margin-right
:
0.28vw
;
}
.clew-content
{
width
:
100%
;
&-item
{
margin-bottom
:
0.49vh
;
background
:
#091b39
;
.clew-line-text
{
padding
:
0.85vh
0.56vw
0.73vh
0.56vw
;
font-weight
:
400
;
font-size
:
10px
;
color
:
#fff
;
border-bottom
:
1px
solid
#0e2949
;
box-sizing
:
border-box
;
height
:
3.333vh
;
.clew-num
{
font-weight
:
700
;
font-size
:
12px
;
color
:
#ffffff
;
}
}
}
.bg-1
{
background
:
#061e19
;
.clew-line-text
{
border-bottom
:
1px
solid
#0a2d26
;
height
:
3.415vh
;
}
}
.bg-2
{
background
:
#280935
;
.clew-line-text
{
border-bottom
:
1px
solid
#390b4b
;
height
:
3.415vh
;
}
}
}
.estimate-content
{
width
:
100%
;
&-item
{
margin-bottom
:
0.49vh
;
background
:
#0b0e31
;
.estimate-line-text
{
font-weight
:
400
;
border-bottom
:
1px
solid
#171f60
;
box-sizing
:
border-box
;
height
:
3.333vh
;
.estimate-num
{
font-weight
:
700
;
font-size
:
12px
;
color
:
#ffffff
;
}
}
}
.bgEstimate-1
{
.estimate-line-text
{
height
:
6.83vh
;
border
:
none
;
}
}
.bgEstimate-2
{
.estimate-line-text
{
height
:
6.83vh
;
border
:
none
;
}
}
.retrieve
{
font-size
:
10px
;
color
:
#ff3540
;
.estimate-num{
color
:
#ff3540
!important
;
margin-top
:
0.37vh
;
}
}
}
}
</
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