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 6a6cb7b5
authored
Aug 22, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
f46a59ce
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
17 deletions
src/components/PieChart.vue
src/views/equity/components/TrendRight.vue
src/views/operational/components/Age.vue
src/views/operational/components/Area.vue
src/views/operational/components/Brand.vue
src/views/operational/components/BuyCar.vue
src/views/operational/components/Category.vue
src/views/operational/components/Mileage.vue
src/views/operational/components/Price.vue
src/views/operational/components/Store.vue
src/components/PieChart.vue
View file @
6a6cb7b
...
@@ -138,7 +138,7 @@ export default {
...
@@ -138,7 +138,7 @@ export default {
fontSize
:
this
.
size
,
fontSize
:
this
.
size
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
color
:
'#fff'
,
color
:
'#fff'
,
formatter
:
(
params
)
=>
{
formatter
:
params
=>
{
const
_dataIndex
=
params
.
dataIndex
const
_dataIndex
=
params
.
dataIndex
// 价格
// 价格
const
_purchaseamount
=
utils
.
numAddSymbol
(
_this
.
list
[
_dataIndex
].
purchaseamount
)
const
_purchaseamount
=
utils
.
numAddSymbol
(
_this
.
list
[
_dataIndex
].
purchaseamount
)
...
@@ -167,6 +167,10 @@ export default {
...
@@ -167,6 +167,10 @@ export default {
case
'none'
:
case
'none'
:
_html
=
''
_html
=
''
break
break
case
'rate'
:
console
.
log
(
params
)
_html
=
utils
.
toPercent
(
params
.
percent
)
break
default
:
default
:
_html
=
utils
.
legend
(
params
.
name
)
_html
=
utils
.
legend
(
params
.
name
)
}
}
...
...
src/views/equity/components/TrendRight.vue
View file @
6a6cb7b
...
@@ -100,6 +100,7 @@ export default {
...
@@ -100,6 +100,7 @@ export default {
margin-top
:
0
;
margin-top
:
0
;
margin-bottom
:
2.67vh
;
margin-bottom
:
2.67vh
;
background-image
:
linear-gradient
(
269deg
,
#5663ff00
10%
,
#6578ff
d4
49%
,
#079ff1
100%
);
background-image
:
linear-gradient
(
269deg
,
#5663ff00
10%
,
#6578ff
d4
49%
,
#079ff1
100%
);
padding-left
:
0.83vw
;
}
}
}
}
</
style
>
</
style
>
src/views/operational/components/Age.vue
View file @
6a6cb7b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
客户年龄分布
</span>
<span
class=
"title-bg"
>
客户年龄分布
</span>
</div>
</div>
<div
class=
"user-container flex"
>
<div
class=
"user-container flex"
>
<pie-chart
ref=
"pieChart"
:id=
"chart.id"
:colors=
"chart.colors"
:size=
"chart.size"
:list=
"ageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
@
pieAction=
"pieAction"
></pie-chart>
<pie-chart
ref=
"pieChart"
:id=
"chart.id"
:colors=
"chart.colors"
:
formatter=
"chart.formatter"
:
size=
"chart.size"
:list=
"ageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
@
pieAction=
"pieAction"
></pie-chart>
<div
class=
"legend-item flex"
>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
{{
selectData
&&
selectData
.
name
}}
...
@@ -31,7 +31,8 @@ export default {
...
@@ -31,7 +31,8 @@ export default {
keys
:
[
'name'
,
'num'
],
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
},
selectData
:
''
,
selectData
:
''
,
descColor
:
''
,
descColor
:
''
,
...
...
src/views/operational/components/Area.vue
View file @
6a6cb7b
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<span
class=
"title-bg"
>
区域分布
</span>
<span
class=
"title-bg"
>
区域分布
</span>
</div>
</div>
<div
class=
"container flex"
>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"areaData"
:keys=
"chart.keys"
:colors=
"chart.colors"
></pie-chart>
<pie-chart
:id=
"chart.id"
:list=
"areaData"
:
formatter=
"chart.formatter"
:
keys=
"chart.keys"
:colors=
"chart.colors"
></pie-chart>
<OperationaLegend
:list=
"areaData"
:width=
"'3.68vw'"
:colors=
"chart.colors"
></OperationaLegend>
<OperationaLegend
:list=
"areaData"
:width=
"'3.68vw'"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
</div>
</div>
...
@@ -31,7 +31,8 @@ export default {
...
@@ -31,7 +31,8 @@ export default {
chart
:
{
chart
:
{
id
:
'area'
,
id
:
'area'
,
keys
:
[
'name'
,
'num'
],
keys
:
[
'name'
,
'num'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
]
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
],
formatter
:
'rate'
},
},
areaData
:
[]
areaData
:
[]
}
}
...
...
src/views/operational/components/Brand.vue
View file @
6a6cb7b
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<span
class=
"title-bg"
>
品牌分布
</span>
<span
class=
"title-bg"
>
品牌分布
</span>
</div>
</div>
<div
class=
"container flex"
>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"brandData"
:keys=
"chart.keys"
:colors=
"chart.colors"
></pie-chart>
<pie-chart
:id=
"chart.id"
:list=
"brandData"
:keys=
"chart.keys"
:
formatter=
"chart.formatter"
:
colors=
"chart.colors"
></pie-chart>
<OperationaLegend
:list=
"brandData"
:colors=
"chart.colors"
></OperationaLegend>
<OperationaLegend
:list=
"brandData"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
</div>
</div>
...
@@ -31,7 +31,8 @@ export default {
...
@@ -31,7 +31,8 @@ export default {
chart
:
{
chart
:
{
id
:
'brand'
,
id
:
'brand'
,
keys
:
[
'name'
,
'num'
],
keys
:
[
'name'
,
'num'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
]
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
],
formatter
:
'rate'
},
},
brandData
:
[]
brandData
:
[]
}
}
...
...
src/views/operational/components/BuyCar.vue
View file @
6a6cb7b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
购车年限
</span>
<span
class=
"title-bg"
>
购车年限
</span>
</div>
</div>
<div
class=
"user-container flex"
>
<div
class=
"user-container flex"
>
<pie-chart
@
pieAction=
"pieAction"
:colors=
"chart.colors"
:size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"buyCarData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<pie-chart
@
pieAction=
"pieAction"
:colors=
"chart.colors"
:
formatter=
"chart.formatter"
:
size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"buyCarData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<div
class=
"legend-item flex"
>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
{{
selectData
&&
selectData
.
name
}}
...
@@ -33,7 +33,8 @@ export default {
...
@@ -33,7 +33,8 @@ export default {
keys
:
[
'name'
,
'num'
],
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
},
buyCarData
:
[]
buyCarData
:
[]
}
}
...
...
src/views/operational/components/Category.vue
View file @
6a6cb7b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<span
class=
"title-bg"
>
品类业务
</span>
<span
class=
"title-bg"
>
品类业务
</span>
</div>
</div>
<div
class=
"category-container flex"
>
<div
class=
"category-container flex"
>
<pie-chart
ref=
"pieChartCategory"
:id=
"chart.id"
:list=
"categoryData"
:colors=
"chart.colors"
></pie-chart>
<pie-chart
ref=
"pieChartCategory"
:id=
"chart.id"
:list=
"categoryData"
:
formatter=
"chart.formatter"
:
colors=
"chart.colors"
></pie-chart>
<OperationaLegend
class=
"category-legend"
:list=
"categoryData"
:width=
"'4.17vw'"
:height=
"'2.44vh'"
:colors=
"chart.colors"
></OperationaLegend>
<OperationaLegend
class=
"category-legend"
:list=
"categoryData"
:width=
"'4.17vw'"
:height=
"'2.44vh'"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
</div>
</div>
...
@@ -21,7 +21,8 @@ export default {
...
@@ -21,7 +21,8 @@ export default {
return
{
return
{
chart
:
{
chart
:
{
id
:
'category'
,
id
:
'category'
,
colors
:
[
'#EB6001'
,
'#34AFFF'
,
'#16E193'
,
'#BF98FF'
]
colors
:
[
'#EB6001'
,
'#34AFFF'
,
'#16E193'
,
'#BF98FF'
],
formatter
:
'rate'
}
}
}
}
},
},
...
...
src/views/operational/components/Mileage.vue
View file @
6a6cb7b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<span
class=
"title-bg"
>
里程分布
</span>
<span
class=
"title-bg"
>
里程分布
</span>
</div>
</div>
<div
class=
"user-container flex"
>
<div
class=
"user-container flex"
>
<pie-chart
@
pieAction=
"pieAction"
:colors=
"chart.colors"
:size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"mileageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<pie-chart
@
pieAction=
"pieAction"
:colors=
"chart.colors"
:
formatter=
"chart.formatter"
:
size=
"chart.size"
ref=
"pieChart"
:id=
"chart.id"
:list=
"mileageData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<div
class=
"legend-item flex"
>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
{{
selectData
&&
selectData
.
name
}}
...
@@ -26,7 +26,8 @@ export default {
...
@@ -26,7 +26,8 @@ export default {
keys
:
[
'name'
,
'num'
],
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
},
mileageData
:
[]
mileageData
:
[]
}
}
...
...
src/views/operational/components/Price.vue
View file @
6a6cb7b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<span
class=
"title-bg"
>
车价占比
</span>
<span
class=
"title-bg"
>
车价占比
</span>
</div>
</div>
<div
class=
"user-container flex"
>
<div
class=
"user-container flex"
>
<pie-chart
@
pieAction=
"pieAction"
ref=
"pieChart"
:colors=
"chart.colors"
:size=
"chart.size"
:id=
"chart.id"
:list=
"priceData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<pie-chart
@
pieAction=
"pieAction"
ref=
"pieChart"
:
formatter=
"chart.formatter"
:
colors=
"chart.colors"
:size=
"chart.size"
:id=
"chart.id"
:list=
"priceData"
:keys=
"chart.keys"
:radius=
"chart.radius"
height=
"6.1vh"
></pie-chart>
<div
class=
"legend-item flex"
>
<div
class=
"legend-item flex"
>
<span
:style=
"
{ background: descColor }">
</span>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
{{
selectData
&&
selectData
.
name
}}
...
@@ -26,7 +26,8 @@ export default {
...
@@ -26,7 +26,8 @@ export default {
keys
:
[
'name'
,
'num'
],
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
},
priceData
:
[]
priceData
:
[]
}
}
...
...
src/views/operational/components/Store.vue
View file @
6a6cb7b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
门店类型
</span>
<span
class=
"title-bg"
>
门店类型
</span>
</div>
</div>
<div
class=
"container flex"
>
<div
class=
"container flex"
>
<pie-chart
:id=
"chart.id"
:list=
"storeData"
:keys=
"chart.keys"
:colors=
"chart.colors"
></pie-chart>
<pie-chart
:id=
"chart.id"
:list=
"storeData"
:keys=
"chart.keys"
:
formatter=
"chart.formatter"
:
colors=
"chart.colors"
></pie-chart>
<OperationaLegend
:list=
"storeData"
:colors=
"chart.colors"
></OperationaLegend>
<OperationaLegend
:list=
"storeData"
:colors=
"chart.colors"
></OperationaLegend>
</div>
</div>
</div>
</div>
...
@@ -30,7 +30,8 @@ export default {
...
@@ -30,7 +30,8 @@ export default {
chart
:
{
chart
:
{
id
:
'store'
,
id
:
'store'
,
keys
:
[
'name'
,
'num'
],
keys
:
[
'name'
,
'num'
],
colors
:
[
'#34AFFF'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
]
colors
:
[
'#34AFFF'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
],
formatter
:
'rate'
},
},
storeData
:
[]
storeData
:
[]
}
}
...
...
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