Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
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 391d46b1
authored
Jul 26, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
加提示
1 parent
e23bbd58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
7 deletions
src/views/boutique/rightCompoments/BusinessTrends.vue
src/views/boutiqueDetail/BusinessDetailTrends.vue
src/views/boutique/rightCompoments/BusinessTrends.vue
View file @
391d46b
...
@@ -6,10 +6,29 @@
...
@@ -6,10 +6,29 @@
* @LastEditTime: 2023-07-26 14:32:32
* @LastEditTime: 2023-07-26 14:32:32
-->
-->
<
template
>
<
template
>
<div>
<div
class=
"trends-box"
>
<box-title
title=
"业务趋势"
></box-title>
<box-title
title=
"业务趋势"
></box-title>
<div
v-if=
"!isEmpty"
>
<div
class=
"legend"
>
<div
class=
"legend-item"
>
<span
class=
"legend-total legend-span"
></span>
<span>
总产值
</span>
</div>
<div
class=
"legend-item"
>
<span
class=
"legend-percus legend-span"
></span>
<span>
客单价
</span>
</div>
<div
class=
"legend-item"
>
<img
class=
"icon-line"
src=
"@/assets/images/icon-line.png"
alt=
""
/>
转化率
</div>
</div>
<BarLineChart
ref=
"purchaseRef"
height=
"44.89vh"
domId=
"business"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
<BarLineChart
ref=
"purchaseRef"
height=
"44.89vh"
domId=
"business"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
</div>
</div>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -75,3 +94,45 @@ export default {
...
@@ -75,3 +94,45 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.trends-box
{
position
:
relative
;
}
.legend
{
display
:
flex
;
position
:
absolute
;
right
:
1.39vw
;
top
:
2.22vh
;
&-item
{
display
:
flex
;
align-items
:
center
;
color
:
#fff
;
margin-right
:
1.67vw
;
&:last-child
{
margin-right
:
0
;
}
img
{
width
:
1.32vw
;
height
:
1vh
;
margin-right
:
0.28vw
;
}
.icon-line
{
width
:
0.98vw
;
height
:
0.56vh
;
}
.legend-span
{
width
:
0.56vw
;
height
:
0.89vh
;
margin-right
:
0.28vw
;
}
.legend-total
{
background-image
:
linear-gradient
(
180deg
,
#22d8ff
0%
,
#5c56ff
100%
);
}
.legend-percus
{
background-image
:
linear-gradient
(
180deg
,
#2ad190
1%
,
#00b7df
100%
);
}
}
}
</
style
>
src/views/boutiqueDetail/BusinessDetailTrends.vue
View file @
391d46b
...
@@ -6,10 +6,29 @@
...
@@ -6,10 +6,29 @@
* @LastEditTime: 2023-07-21 16:32:58
* @LastEditTime: 2023-07-21 16:32:58
-->
-->
<
template
>
<
template
>
<div>
<div
class=
"trends-box"
>
<box-title
title=
"业务趋势"
></box-title>
<box-title
title=
"业务趋势"
></box-title>
<div
v-if=
"!isEmpty"
>
<div
class=
"legend"
>
<div
class=
"legend-item"
>
<span
class=
"legend-total legend-span"
></span>
<span>
总产值
</span>
</div>
<div
class=
"legend-item"
>
<span
class=
"legend-percus legend-span"
></span>
<span>
客单价
</span>
</div>
<div
class=
"legend-item"
>
<img
class=
"icon-line"
src=
"@/assets/images/icon-line.png"
alt=
""
/>
转化率
</div>
</div>
<BarLineChart
ref=
"purchaseRef"
height=
"58vh"
domId=
"business"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
<BarLineChart
ref=
"purchaseRef"
height=
"58vh"
domId=
"business"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
</div>
</div>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -26,6 +45,7 @@ export default {
...
@@ -26,6 +45,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isEmpty
:
false
,
tooltipFormatterObj
:
[
tooltipFormatterObj
:
[
{
{
label
:
'商城'
,
label
:
'商城'
,
...
@@ -41,12 +61,10 @@ export default {
...
@@ -41,12 +61,10 @@ export default {
addSymbol
:
'%'
addSymbol
:
'%'
}
}
],
],
dataList
:
[],
dataList
:
[]
isEmpty
:
false
}
}
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
this
.
getDataList
()
this
.
getDataList
()
...
@@ -72,6 +90,44 @@ export default {
...
@@ -72,6 +90,44 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.trends-box
{
position
:
relative
;
}
.legend
{
display
:
flex
;
position
:
absolute
;
right
:
1.39vw
;
top
:
2.22vh
;
&-item
{
display
:
flex
;
align-items
:
center
;
color
:
#fff
;
margin-right
:
1.67vw
;
&:last-child
{
margin-right
:
0
;
}
img
{
width
:
1.32vw
;
height
:
1vh
;
margin-right
:
0.28vw
;
}
.icon-line
{
width
:
0.98vw
;
height
:
0.56vh
;
}
.legend-span
{
width
:
0.56vw
;
height
:
0.89vh
;
margin-right
:
0.28vw
;
}
.legend-total
{
background-image
:
linear-gradient
(
180deg
,
#22d8ff
0%
,
#5c56ff
100%
);
}
.legend-percus
{
background-image
:
linear-gradient
(
180deg
,
#2ad190
1%
,
#00b7df
100%
);
}
}
}
</
style
>
</
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