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 98dc0c49
authored
Jul 07, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复样式
1 parent
9882df18
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
90 additions
and
43 deletions
src/assets/images/title-bg.png
src/components/BoxTitle.vue
src/components/StatisticsBox.vue
src/views/home/solar/ContentLeft.vue
src/views/home/solar/PurchaseTrends.vue
src/views/solarDetail/index.vue
src/assets/images/title-bg.png
0 → 100644
View file @
98dc0c4
4.08 KB
src/components/BoxTitle.vue
View file @
98dc0c4
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-06 11:46:13
* @LastEditors: huyue
* @LastEditTime: 2023-07-07 18:01:41
-->
<
template
>
<
template
>
<div
class=
"main-box"
>
<div
class=
"main-box"
>
<div
class=
"trapezoid"
><div
class=
"point"
>
....
</div></div>
<div
class=
"trapezoid"
>
<div
class=
"text-box"
>
{{
title
}}
</div></div>
<div
class=
"right-box"
>
<div
class=
"trangle"
></div>
<div
class=
"text-box"
>
{{
title
}}
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -32,46 +35,22 @@ export default {
...
@@ -32,46 +35,22 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.main-box
{
.main-box
{
position
:
relative
;
position
:
relative
;
background-image
:
url('../assets/images/title-bg.png')
;
background-repeat
:
no-repeat
;
background-size
:
9.04vw
3.33vh
;
}
}
.trapezoid
{
.trapezoid
{
width
:
0
;
height
:
3.33vh
;
height
:
0
;
border-top
:
30px
solid
#0085CD
;
border-right
:
8px
solid
transparent
;
border-left
:
10px
solid
#0085CD
;
.point
{
position
:
absolute
;
top
:
1px
;
left
:
1px
;
font-size
:
19px
;
color
:
#fff
;
transform
:
rotate
(
90deg
);
}
}
.right-box
{
position
:
absolute
;
top
:
0
;
left
:
15px
;
display
:
flex
;
.trangle
{
width
:
0
;
height
:
0
;
border
:
#0085CD
;
border-style
:
solid
;
border-width
:
20px
8px
0
0
;
border-top
:
30px
solid
transparent
;
}
.text-box
{
.text-box
{
width
:
126px
;
//
width
:
126px
;
height
:
30px
;
height
:
3.33vh
;
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
line-height
:
30px
;
line-height
:
3.33vh
;
padding-left
:
2px
;
margin-left
:
1.67vw
;
background-image
:
linear-gradient
(
270deg
,
#6578ff00
0%
,
#5542ff87
53%
,
#0085CD
100%
);
}
}
}
}
</
style
>
</
style
>
src/components/StatisticsBox.vue
View file @
98dc0c4
...
@@ -46,6 +46,7 @@ export default {
...
@@ -46,6 +46,7 @@ export default {
.statistics
{
.statistics
{
display
:
flex
;
display
:
flex
;
color
:
#fff
;
color
:
#fff
;
height
:
11.78vh
;
&-item
{
&-item
{
padding
:
0.89vh
0.53vw
;
padding
:
0.89vh
0.53vw
;
margin-right
:
1.11vw
;
margin-right
:
1.11vw
;
...
@@ -56,13 +57,13 @@ export default {
...
@@ -56,13 +57,13 @@ export default {
}
}
}
}
&
-top
{
&
-top
{
padding-bottom
:
0.89vh
;
padding-left
:
0.3vw
;
padding-left
:
0.3vw
;
}
}
&
-name
{
&
-name
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
14px
;
font-size
:
14px
;
margin-bottom
:
0.89vh
;
margin-bottom
:
0.89vh
;
height
:
2.22vh
;
}
}
&
-price
{
&
-price
{
display
:
flex
;
display
:
flex
;
...
@@ -70,6 +71,7 @@ export default {
...
@@ -70,6 +71,7 @@ export default {
color
:
#25D6FF
;
color
:
#25D6FF
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
14px
;
font-size
:
14px
;
height
:
3.11vh
;
&-number
{
&-number
{
padding-left
:
0.56vw
;
padding-left
:
0.56vw
;
font-size
:
20px
;
font-size
:
20px
;
...
@@ -86,6 +88,7 @@ export default {
...
@@ -86,6 +88,7 @@ export default {
color
:
#95ACD9
;
color
:
#95ACD9
;
border-top
:
1px
solid
#2A3D72
;
border-top
:
1px
solid
#2A3D72
;
padding
:
0.89vh
0.3vw
0
;
padding
:
0.89vh
0.3vw
0
;
margin-top
:
0.89vh
;
}
}
}
}
</
style
>
</
style
>
src/views/home/solar/ContentLeft.vue
View file @
98dc0c4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-07 14:
38:42
* @LastEditTime: 2023-07-07 14:
19:28
-->
-->
<
template
>
<
template
>
<div
class=
"left"
>
<div
class=
"left"
>
...
...
src/views/home/solar/PurchaseTrends.vue
View file @
98dc0c4
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-06 16:19:15
* @Date: 2023-07-06 16:19:15
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-07 1
5:34:39
* @LastEditTime: 2023-07-07 1
8:08:57
-->
-->
<
template
>
<
template
>
<div
class=
"purchase-box"
>
<div
class=
"purchase-box"
>
<box-title
title=
"采购额排名"
></box-title>
<box-title
title=
"采购额排名"
></box-title>
<BarLineChart
ref=
"purchaseRef"
height=
"
28.48
vh"
domId=
"purchase"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
<BarLineChart
ref=
"purchaseRef"
height=
"
30.23
vh"
domId=
"purchase"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
<div
class=
"legend"
>
<div
class=
"legend"
>
<div
class=
"legend-item shop"
>
<div
class=
"legend-item shop"
>
<span
class=
"legend-even"
>
双
</span>
<span
class=
"legend-even"
>
双
</span>
...
...
src/views/solarDetail/index.vue
View file @
98dc0c4
...
@@ -11,7 +11,22 @@
...
@@ -11,7 +11,22 @@
<!-- 采购趋势 -->
<!-- 采购趋势 -->
<div
class=
"tendency-box"
>
<div
class=
"tendency-box"
>
<box-title
title=
"近一年采购额趋势"
></box-title>
<box-title
title=
"近一年采购额趋势"
></box-title>
<BarLineChart
ref=
"purchaseTrend"
height=
"31.78vh"
domId=
"purchaseTrend"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
<div
class=
"legend"
>
<div
class=
"legend-item shop"
>
<span
class=
"legend-even"
>
双
</span>
<span
class=
"legend-odd"
>
单
</span>
<span>
商城
</span>
</div>
<div
class=
"legend-item self"
>
<span
class=
"legend-even"
>
双
</span>
<span
class=
"legend-odd"
>
单
</span>
自采
</div>
<div
class=
"legend-item"
>
<img
class=
"icon-line"
src=
"@/assets/images/icon-line.png"
alt=
""
>
商城采购占比
</div>
</div>
<BarLineChart
ref=
"purchaseTrend"
height=
"36.45vh"
domId=
"purchaseTrend"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
</div>
</div>
<!-- 商品占比 -->
<!-- 商品占比 -->
<div
class=
"propotion-box flex"
>
<div
class=
"propotion-box flex"
>
...
@@ -250,6 +265,7 @@ export default {
...
@@ -250,6 +265,7 @@ export default {
margin-top
:
1.78vh
;
margin-top
:
1.78vh
;
}
}
.tendency-box
{
.tendency-box
{
position
:
relative
;
width
:
96.67vw
;
width
:
96.67vw
;
height
:
39.78vh
;
height
:
39.78vh
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
...
@@ -269,4 +285,53 @@ export default {
...
@@ -269,4 +285,53 @@ export default {
}
}
}
}
}
}
.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-even
,
.legend-odd
{
display
:
inline-block
;
width
:
0.83vw
;
height
:
1.33vh
;
margin-right
:
0.28vw
;
font-size
:
8px
;
text-align
:
center
;
}
}
}
.shop
{
.legend-even
{
background-image
:
linear-gradient
(
180deg
,
#2AD190
1%
,
#00B7DF
100%
);
}
.legend-odd
{
background-image
:
linear-gradient
(
180deg
,
#22D8FF
0%
,
#5C56FF
100%
);
}
}
.self
{
.legend-even
{
background-image
:
linear-gradient
(
180deg
,
#145F4E
1%
,
#035972
100%
);
}
.legend-odd
{
background-image
:
linear-gradient
(
180deg
,
#11627A
0%
,
#282F7A
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