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
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
18 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 {
fontSize
:
this
.
size
,
fontWeight
:
'bold'
,
color
:
'#fff'
,
formatter
:
(
params
)
=>
{
formatter
:
params
=>
{
const
_dataIndex
=
params
.
dataIndex
// 价格
const
_purchaseamount
=
utils
.
numAddSymbol
(
_this
.
list
[
_dataIndex
].
purchaseamount
)
...
...
@@ -156,7 +156,7 @@ export default {
* total -- 名称+总数组合
* none -- 不显示内容
* 默认显示名称
*/
*/
switch
(
_this
.
formatter
)
{
case
'price'
:
_html
=
`{a|¥
${
_purchaseamount
}
}\n{b|均价¥
${
_avarage
}
}`
...
...
@@ -167,6 +167,10 @@ export default {
case
'none'
:
_html
=
''
break
case
'rate'
:
console
.
log
(
params
)
_html
=
utils
.
toPercent
(
params
.
percent
)
break
default
:
_html
=
utils
.
legend
(
params
.
name
)
}
...
...
src/views/equity/components/TrendRight.vue
View file @
6a6cb7b
...
...
@@ -100,6 +100,7 @@ export default {
margin-top
:
0
;
margin-bottom
:
2.67vh
;
background-image
:
linear-gradient
(
269deg
,
#5663ff00
10%
,
#6578ff
d4
49%
,
#079ff1
100%
);
padding-left
:
0.83vw
;
}
}
</
style
>
src/views/operational/components/Age.vue
View file @
6a6cb7b
...
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
客户年龄分布
</span>
</div>
<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"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -31,7 +31,8 @@ export default {
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
selectData
:
''
,
descColor
:
''
,
...
...
src/views/operational/components/Area.vue
View file @
6a6cb7b
...
...
@@ -13,7 +13,7 @@
<span
class=
"title-bg"
>
区域分布
</span>
</div>
<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>
</div>
</div>
...
...
@@ -31,7 +31,8 @@ export default {
chart
:
{
id
:
'area'
,
keys
:
[
'name'
,
'num'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
]
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
],
formatter
:
'rate'
},
areaData
:
[]
}
...
...
src/views/operational/components/Brand.vue
View file @
6a6cb7b
...
...
@@ -13,7 +13,7 @@
<span
class=
"title-bg"
>
品牌分布
</span>
</div>
<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>
</div>
</div>
...
...
@@ -31,7 +31,8 @@ export default {
chart
:
{
id
:
'brand'
,
keys
:
[
'name'
,
'num'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
]
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
],
formatter
:
'rate'
},
brandData
:
[]
}
...
...
src/views/operational/components/BuyCar.vue
View file @
6a6cb7b
...
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
购车年限
</span>
</div>
<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"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -33,7 +33,8 @@ export default {
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
buyCarData
:
[]
}
...
...
src/views/operational/components/Category.vue
View file @
6a6cb7b
...
...
@@ -4,7 +4,7 @@
<span
class=
"title-bg"
>
品类业务
</span>
</div>
<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>
</div>
</div>
...
...
@@ -21,7 +21,8 @@ export default {
return
{
chart
:
{
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 @@
<span
class=
"title-bg"
>
里程分布
</span>
</div>
<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"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -26,7 +26,8 @@ export default {
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
mileageData
:
[]
}
...
...
src/views/operational/components/Price.vue
View file @
6a6cb7b
...
...
@@ -5,7 +5,7 @@
<span
class=
"title-bg"
>
车价占比
</span>
</div>
<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"
>
<span
:style=
"
{ background: descColor }">
</span>
{{
selectData
&&
selectData
.
name
}}
...
...
@@ -26,7 +26,8 @@ export default {
keys
:
[
'name'
,
'num'
],
radius
:
[
'56%'
,
'85%'
],
colors
:
[
'#FF6E76'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
,
'#34AFFF'
,
'#BF98FF'
,
'#726BFF'
],
size
:
'8px'
size
:
'8px'
,
formatter
:
'rate'
},
priceData
:
[]
}
...
...
src/views/operational/components/Store.vue
View file @
6a6cb7b
...
...
@@ -12,7 +12,7 @@
<span
class=
"title-bg"
>
门店类型
</span>
</div>
<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>
</div>
</div>
...
...
@@ -30,7 +30,8 @@ export default {
chart
:
{
id
:
'store'
,
keys
:
[
'name'
,
'num'
],
colors
:
[
'#34AFFF'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
]
colors
:
[
'#34AFFF'
,
'#16E193'
,
'#FDF006'
,
'#EB6001'
],
formatter
:
'rate'
},
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