Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
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 ef25b0ea
authored
Jul 25, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'gh_v1.2.0' into ty_v1.2.0
2 parents
61d965e1
1a577473
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
24 deletions
src/components/LineChart.vue
src/components/ViewTabs.vue
src/views/afterSales/analyze.vue
src/views/afterSales/first.vue
src/views/afterSales/keep.vue
src/views/afterSales/lost.vue
src/views/afterSales/sadayasu.vue
src/views/salesData/trend.vue
src/components/LineChart.vue
View file @
ef25b0e
...
...
@@ -13,11 +13,8 @@
</div>
<div
class=
"line-item"
>
<span
class=
"txt-orange"
:direction=
"directionTimer"
:delay=
"delayTimer"
>
{{
item
.
value
}}
</span>
</div>
<!--
<div
class=
"line-item"
>
<marquee
class=
"txt-orange"
:direction=
"directionTimer"
:delay=
"delayTimer"
:text=
"item.value"
></marquee>
</div>
-->
</div>
</div>
</div>
</div>
...
...
@@ -142,7 +139,8 @@ export default {
// 移除图表
this
[
this
.
domId
].
on
(
'globalout'
,
()
=>
{
this
.
chartAction
()
this
.
getRankList
(
this
.
dataList
.
length
-
1
,
this
.
rankFlag
+
'List'
)
this
.
moveAttr
.
dataIndex
=
this
.
dataList
.
length
-
1
this
.
getRankList
(
this
.
moveAttr
.
dataIndex
,
this
.
rankFlag
+
'List'
)
})
},
chartAction
(
type
)
{
...
...
@@ -169,10 +167,12 @@ export default {
this
[
this
.
domId
].
setOption
(
this
.
lineOptions
)
// 默认展示tooltip
this
.
chartAction
()
this
.
getRankList
(
this
.
dataList
.
length
-
1
)
this
.
moveAttr
.
dataIndex
=
this
.
dataList
.
length
-
1
this
.
getRankList
(
this
.
moveAttr
.
dataIndex
)
},
handleRankChange
(
value
)
{
this
.
rankFlag
=
value
this
.
moveAttr
.
dataIndex
=
this
.
dataList
.
length
-
1
this
.
getRankList
(
this
.
moveAttr
.
dataIndex
,
this
.
rankFlag
+
'List'
)
}
}
...
...
@@ -203,6 +203,8 @@ p {
border-top
:
1px
solid
#373739
;
.rank-title-block
{
//
flex
:
0
0
55px
;
width
:
100%
;
overflow
:
hidden
;
width
:
55px
;
.rank-title
{
box-sizing
:
border-box
;
...
...
src/components/ViewTabs.vue
View file @
ef25b0e
...
...
@@ -6,7 +6,7 @@
<div
class=
"total-title-box flex"
>
<div
class=
"title inline total"
>
客户总数
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
新增
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
到店
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
到店
<
span
class=
"describe"
>
维保
</span><
/div>
</div>
<div
class=
"total-number-box flex"
>
<transition-number
:num=
"pageData.total.totalNum"
idKey=
"number-total"
class=
"number-total"
/>
...
...
@@ -382,6 +382,11 @@ export default {
box-sizing
:
border-box
;
width
:
25%
;
padding-left
:
0
;
white-space
:
nowrap
;
.describe{
font-size
:
8px
;
color
:
#eb6001
;
}
}
}
.total-number-box
{
...
...
src/views/afterSales/analyze.vue
View file @
ef25b0e
...
...
@@ -68,7 +68,7 @@ export default {
axisPointer
:
{
type
:
'shadow'
,
shadowStyle
:
{
color
:
'rgba(235,96,1,0.30'
color
:
'rgba(235,96,1,0.30
)
'
}
},
borderWidth
:
0
,
...
...
@@ -120,10 +120,11 @@ export default {
show
:
true
,
position
:
'center'
,
textStyle
:
{
fontSize
:
'12'
,
fontSize
:
12
,
color
:
'#fff'
,
height
:
'18'
,
padding
:
[
1
,
0
,
0
,
0
]
height
:
18
,
padding
:
[
1
,
0
,
0
,
0
],
lineHeight
:
18
}
},
color
:
new
echarts
.
graphic
.
LinearGradient
(
1
,
0
,
0
,
0
,
[
...
...
src/views/afterSales/first.vue
View file @
ef25b0e
...
...
@@ -116,18 +116,18 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
label
:
item
,
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
label
:
item
,
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
this
.
dataList
.
push
({
num
:
item
.
num
||
0
,
rate
:
item
.
rate
.
toFixed
(
4
)
||
0
,
rate
:
item
.
rate
.
toFixed
(
2
)
||
0
,
hrate
:
item
.
hrate
.
toFixed
(
4
)
||
0
,
trate
:
item
.
trate
.
toFixed
(
4
)
||
0
,
statDate
:
item
.
statDate
,
...
...
src/views/afterSales/keep.vue
View file @
ef25b0e
...
...
@@ -108,18 +108,18 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
label
:
item
,
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
label
:
item
,
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
this
.
dataList
.
push
({
num
:
item
.
num
||
0
,
rate
:
item
.
rate
.
toFixed
(
4
)
||
0
,
rate
:
item
.
rate
.
toFixed
(
2
)
||
0
,
hrate
:
item
.
hrate
.
toFixed
(
4
)
||
0
,
trate
:
item
.
trate
.
toFixed
(
4
)
||
0
,
statDate
:
item
.
statDate
,
...
...
src/views/afterSales/lost.vue
View file @
ef25b0e
...
...
@@ -108,18 +108,18 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
label
:
item
,
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
label
:
item
,
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
this
.
dataList
.
push
({
num
:
item
.
num
||
0
,
rate
:
item
.
rate
.
toFixed
(
4
)
||
0
,
rate
:
item
.
rate
.
toFixed
(
2
)
||
0
,
hrate
:
item
.
hrate
.
toFixed
(
4
)
||
0
,
trate
:
item
.
trate
.
toFixed
(
4
)
||
0
,
statDate
:
item
.
statDate
,
...
...
src/views/afterSales/sadayasu.vue
View file @
ef25b0e
...
...
@@ -116,18 +116,18 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
label
:
item
,
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
label
:
item
,
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
4
)
+
'%'
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
this
.
dataList
.
push
({
num
:
item
.
num
||
0
,
rate
:
item
.
rate
.
toFixed
(
4
)
||
0
,
rate
:
item
.
rate
.
toFixed
(
2
)
||
0
,
hrate
:
item
.
hrate
.
toFixed
(
4
)
||
0
,
trate
:
item
.
trate
.
toFixed
(
4
)
||
0
,
statDate
:
item
.
statDate
,
...
...
src/views/salesData/trend.vue
View file @
ef25b0e
...
...
@@ -114,7 +114,7 @@ export default {
return
txt
}
},
color
:
[
'#BF98FF'
,
'#E60115'
,
'#4FA0FF'
,
'#EB6001'
,
'#F5AA01'
]
,
color
:
this
.
colorList
,
grid
:
{
left
:
'3%'
,
right
:
'4%'
,
...
...
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