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 60fa9843
authored
Jul 05, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v1.0.0' of
http://192.168.3.233:8090/gh/data-view
into dev_v1.0.0
2 parents
c53c70ca
cdafec44
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
13 deletions
src/components/LineChart.vue
src/components/PieChart.vue
src/views/afterSales/first.vue
src/views/afterSales/keep.vue
src/views/afterSales/lost.vue
src/views/afterSales/sadayasu.vue
src/components/LineChart.vue
View file @
60fa984
...
@@ -11,7 +11,9 @@
...
@@ -11,7 +11,9 @@
<div
class=
"line-item"
>
<div
class=
"line-item"
>
<marquee
:direction=
"directionTimer"
:delay=
"delayTimer"
:text=
"item.label"
></marquee>
<marquee
:direction=
"directionTimer"
:delay=
"delayTimer"
:text=
"item.label"
></marquee>
</div>
</div>
<p
class=
"line-item txt-orange"
>
{{
item
.
value
}}
</p>
<div
class=
"line-item"
>
<marquee
class=
"txt-orange"
:direction=
"directionTimer"
:delay=
"delayTimer"
:text=
"item.value"
></marquee>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -213,11 +215,11 @@ p {
...
@@ -213,11 +215,11 @@ p {
font-size
:
10px
;
font-size
:
10px
;
padding-bottom
:
0.6vh
;
padding-bottom
:
0.6vh
;
}
}
.line-item
:last-of-type
{
.line-item
:last-of-type
{
padding-bottom
:
0
;
padding-bottom
:
0
;
}
}
}
}
.rank-line
:first-of-type
{
.rank-line
:first-of-type
{
border-width
:
0
;
border-width
:
0
;
}
}
}
}
...
...
src/components/PieChart.vue
View file @
60fa984
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
},
},
colors
:
{
colors
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[
'#4FA0FF'
,
'#FF6E76'
,
'#7CFFB2'
,
'#FDF006'
,
'#EB6001'
,
'#F5AA01'
,
'#BF98FF'
,
'#
4FA0FF
'
]
default
:
()
=>
[
'#4FA0FF'
,
'#FF6E76'
,
'#7CFFB2'
,
'#FDF006'
,
'#EB6001'
,
'#F5AA01'
,
'#BF98FF'
,
'#
58D9F9
'
]
},
},
size
:
{
size
:
{
type
:
String
,
type
:
String
,
...
...
src/views/afterSales/first.vue
View file @
60fa984
...
@@ -101,13 +101,13 @@ export default {
...
@@ -101,13 +101,13 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
topList
.
push
({
label
:
item
,
label
:
item
,
value
:
topTempList
[
item
].
num
?
this
.
numAddSymbol
(
topTempList
[
item
].
num
)
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
lastList
.
push
({
label
:
item
,
label
:
item
,
value
:
lastTempList
[
item
].
num
?
this
.
numAddSymbol
(
lastTempList
[
item
].
num
)
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
this
.
dataList
.
push
({
this
.
dataList
.
push
({
...
...
src/views/afterSales/keep.vue
View file @
60fa984
...
@@ -101,13 +101,13 @@ export default {
...
@@ -101,13 +101,13 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
topList
.
push
({
label
:
item
,
label
:
item
,
value
:
topTempList
[
item
].
num
?
this
.
numAddSymbol
(
topTempList
[
item
].
num
)
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
lastList
.
push
({
label
:
item
,
label
:
item
,
value
:
lastTempList
[
item
].
num
?
this
.
numAddSymbol
(
lastTempList
[
item
].
num
)
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
this
.
dataList
.
push
({
this
.
dataList
.
push
({
...
...
src/views/afterSales/lost.vue
View file @
60fa984
...
@@ -102,13 +102,13 @@ export default {
...
@@ -102,13 +102,13 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
topList
.
push
({
label
:
item
,
label
:
item
,
value
:
topTempList
[
item
].
num
?
this
.
numAddSymbol
(
topTempList
[
item
].
num
)
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
lastList
.
push
({
label
:
item
,
label
:
item
,
value
:
lastTempList
[
item
].
num
?
this
.
numAddSymbol
(
lastTempList
[
item
].
num
)
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
this
.
dataList
.
push
({
this
.
dataList
.
push
({
...
...
src/views/afterSales/sadayasu.vue
View file @
60fa984
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
v-if=
"isEmpty"
class=
"empty"
>
<div
v-if=
"isEmpty"
class=
"empty"
>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
<img
src=
"../../assets/images/empty.png"
alt=
""
/>
</div>
</div>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"sadayasuChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:queryType=
"queryType"
></LineChart>
<LineChart
v-else
ref=
"lineChartRef"
domId=
"sadayasuChart"
:dataList
.
sync=
"dataList"
:storeOrBrandTxt=
"storeOrBrandTxt"
:
tooltipFormatterObj=
"tooltipFormatterObj"
:
queryType=
"queryType"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -36,6 +36,23 @@ export default {
...
@@ -36,6 +36,23 @@ export default {
isEmpty
:
true
,
isEmpty
:
true
,
storeOrBrandTxt
:
'品牌'
,
storeOrBrandTxt
:
'品牌'
,
queryType
:
0
,
queryType
:
0
,
tooltipFormatterObj
:
[
{
label
:
'回店率'
,
attrName
:
'rate'
,
addSymbol
:
'%'
},
{
label
:
'环比'
,
attrName
:
'hrate'
,
addSymbol
:
'%'
},
{
label
:
'同比'
,
attrName
:
'trate'
,
addSymbol
:
'%'
}
],
dataList
:
[]
dataList
:
[]
}
}
},
},
...
@@ -84,13 +101,13 @@ export default {
...
@@ -84,13 +101,13 @@ export default {
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
Object
.
keys
(
topTempList
).
forEach
(
item
=>
{
topList
.
push
({
topList
.
push
({
label
:
item
,
label
:
item
,
value
:
topTempList
[
item
].
num
?
this
.
numAddSymbol
(
topTempList
[
item
].
num
)
:
'- -'
value
:
topTempList
[
item
].
rate
?
topTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
Object
.
keys
(
lastTempList
).
forEach
(
item
=>
{
lastList
.
push
({
lastList
.
push
({
label
:
item
,
label
:
item
,
value
:
lastTempList
[
item
].
num
?
this
.
numAddSymbol
(
lastTempList
[
item
].
num
)
:
'- -'
value
:
lastTempList
[
item
].
rate
?
lastTempList
[
item
].
rate
.
toFixed
(
2
)
+
'%'
:
'- -'
})
})
})
})
this
.
dataList
.
push
({
this
.
dataList
.
push
({
...
...
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