Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
0de95463
Commit
0de95463
authored
Jul 25, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据统计-宠主数据统计-前端部分
parent
85e942fc
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1088 additions
and
9 deletions
+1088
-9
chongzhutongji_icon_chongzhu.png
src/assets/data_statistics/chongzhutongji_icon_chongzhu.png
+0
-0
chongzhutongji_icon_fuwuchongzhu.png
...sets/data_statistics/chongzhutongji_icon_fuwuchongzhu.png
+0
-0
chongzhutongji_icon_yifuwu.png
src/assets/data_statistics/chongzhutongji_icon_yifuwu.png
+0
-0
chongzhutongji_icon_zhucechongzhu.png
...ets/data_statistics/chongzhutongji_icon_zhucechongzhu.png
+0
-0
chongzhutongji_img_chongzhu.png
src/assets/data_statistics/chongzhutongji_img_chongzhu.png
+0
-0
chongzhutongji_img_yifuwu.png
src/assets/data_statistics/chongzhutongji_img_yifuwu.png
+0
-0
chongzhutongji_img_zhucechongzhu.png
...sets/data_statistics/chongzhutongji_img_zhucechongzhu.png
+0
-0
chongzhutongji_imgfuwuchongzhu.png
...assets/data_statistics/chongzhutongji_imgfuwuchongzhu.png
+0
-0
index.js
src/router/index.js
+7
-0
radar-chart-for-hospital.vue
...statistics/echars-components/radar-chart-for-hospital.vue
+4
-4
radar-chart-for-petowner-platfrom.vue
...s/echars-components/radar-chart-for-petowner-platfrom.vue
+133
-0
hospital-data-statistics.vue
...ics/hospital-data-statistics/hospital-data-statistics.vue
+4
-1
pet-data-statistics.vue
...ta-statistics/pet-data-statistics/pet-data-statistics.vue
+940
-4
No files found.
src/assets/data_statistics/chongzhutongji_icon_chongzhu.png
0 → 100644
View file @
0de95463
1.11 KB
src/assets/data_statistics/chongzhutongji_icon_fuwuchongzhu.png
0 → 100644
View file @
0de95463
1.16 KB
src/assets/data_statistics/chongzhutongji_icon_yifuwu.png
0 → 100644
View file @
0de95463
1.19 KB
src/assets/data_statistics/chongzhutongji_icon_zhucechongzhu.png
0 → 100644
View file @
0de95463
1.25 KB
src/assets/data_statistics/chongzhutongji_img_chongzhu.png
0 → 100644
View file @
0de95463
5.48 KB
src/assets/data_statistics/chongzhutongji_img_yifuwu.png
0 → 100644
View file @
0de95463
5.33 KB
src/assets/data_statistics/chongzhutongji_img_zhucechongzhu.png
0 → 100644
View file @
0de95463
6.26 KB
src/assets/data_statistics/chongzhutongji_imgfuwuchongzhu.png
0 → 100644
View file @
0de95463
6.96 KB
src/router/index.js
View file @
0de95463
...
@@ -317,6 +317,13 @@ export const constantRoutes = [
...
@@ -317,6 +317,13 @@ export const constantRoutes = [
component
:
()
=>
import
(
'@/views/data-statistics/hospital-data-statistics/hospital-data-statistics.vue'
),
component
:
()
=>
import
(
'@/views/data-statistics/hospital-data-statistics/hospital-data-statistics.vue'
),
name
:
'HospitalDataStatistics'
,
name
:
'HospitalDataStatistics'
,
meta
:
{
title
:
'医院数据统计'
,
icon
:
'component'
}
meta
:
{
title
:
'医院数据统计'
,
icon
:
'component'
}
},
{
path
:
'pet-data-statistics'
,
props
:
true
,
component
:
()
=>
import
(
'@/views/data-statistics/pet-data-statistics/pet-data-statistics.vue'
),
name
:
'PetDataStatistics'
,
meta
:
{
title
:
'宠主数据统计'
,
icon
:
'component'
}
}
}
]
]
},
},
...
...
src/views/data-statistics/echars-components/radar-chart-for-hospital.vue
View file @
0de95463
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'RadarChartForHospital'
,
name
:
'RadarChartForHospital'
,
props
:
[
'title'
,
'
radarIndicatorData'
,
'radarLegendData
'
],
props
:
[
'title'
,
'
yData1'
,
'yData2
'
],
data
()
{
data
()
{
return
{}
return
{}
},
},
...
@@ -17,7 +17,7 @@ export default {
...
@@ -17,7 +17,7 @@ export default {
},
},
methods
:
{
methods
:
{
setCharts
()
{
setCharts
()
{
//
const _this = this
const
_this
=
this
// 基于准备好的dom,初始化echarts实例
// 基于准备好的dom,初始化echarts实例
const
mapChart
=
this
.
$echarts
.
init
(
this
.
$refs
.
radarMap
)
const
mapChart
=
this
.
$echarts
.
init
(
this
.
$refs
.
radarMap
)
mapChart
.
setOption
({
mapChart
.
setOption
({
...
@@ -68,7 +68,7 @@ export default {
...
@@ -68,7 +68,7 @@ export default {
type
:
'radar'
,
type
:
'radar'
,
data
:
[
data
:
[
{
{
value
:
[
42
,
30
,
20
,
35
,
50
,
18
]
,
value
:
_this
.
yData1
,
name
:
'历史入驻量'
,
name
:
'历史入驻量'
,
symbol
:
'emptyCircle'
,
// 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none', emptyCircle
symbol
:
'emptyCircle'
,
// 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none', emptyCircle
symbolSize
:
6
,
symbolSize
:
6
,
...
@@ -93,7 +93,7 @@ export default {
...
@@ -93,7 +93,7 @@ export default {
}
}
},
},
{
{
value
:
[
50
,
14
,
28
,
26
,
42
,
21
]
,
value
:
_this
.
yData2
,
name
:
'当前有效数量'
,
name
:
'当前有效数量'
,
symbol
:
'emptyCircle'
,
symbol
:
'emptyCircle'
,
symbolSize
:
6
,
symbolSize
:
6
,
...
...
src/views/data-statistics/echars-components/radar-chart-for-petowner-platfrom.vue
0 → 100644
View file @
0de95463
<
template
>
<div
ref=
"radarMap"
class=
"radarChart"
>
雷达
</div>
</
template
>
<
script
>
export
default
{
name
:
'RadarChartForPetOwnerPlatform'
,
props
:
[
'title'
,
'yData1'
,
'yData2'
],
data
()
{
return
{}
},
watch
:
{},
mounted
()
{
this
.
setCharts
()
},
methods
:
{
setCharts
()
{
const
_this
=
this
// 基于准备好的dom,初始化echarts实例
const
mapChart
=
this
.
$echarts
.
init
(
this
.
$refs
.
radarMap
)
mapChart
.
setOption
({
title
:
{
left
:
'left'
,
text
:
'医院评级分布'
,
textStyle
:
{
fontSize
:
12
,
fontFamily
:
'Microsoft YaHei'
,
fontWeight
:
'bold'
,
color
:
'#333333'
}
},
tooltip
:
{
show
:
true
},
legend
:
{
data
:
[
'历史入驻量'
,
'当前有效数量'
],
left
:
'right'
,
textStyle
:
{
// 图例的公用文本样式。
fontSize
:
12
,
fontFamily
:
'Microsoft YaHei'
,
fontWeight
:
400
,
color
:
'#666'
}
},
radar
:
{
// shape: 'circle',
center
:
[
'50%'
,
'55%'
],
radius
:
140
,
indicator
:
[
{
name
:
'5000元以下'
,
max
:
50
},
{
name
:
'5000~12000元'
,
max
:
50
},
{
name
:
'12000~30000元'
,
max
:
50
},
{
name
:
'30000~100000元'
,
max
:
50
},
{
name
:
'100000元以上'
,
max
:
50
}
],
axisName
:
{
// (圆外的标签)雷达图每个指示器名称的配置项。
color
:
'#666666'
,
fontSize
:
12
,
fontWeight
:
400
,
fontFamily
:
'Microsoft YaHei'
}
},
series
:
[
{
name
:
'Budget vs spending'
,
type
:
'radar'
,
data
:
[
{
value
:
_this
.
yData1
,
name
:
'历史入驻量'
,
symbol
:
'emptyCircle'
,
// 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none', emptyCircle
symbolSize
:
6
,
itemStyle
:
{
color
:
new
this
.
$echarts
.
graphic
.
LinearGradient
(
// 设置渐变色
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'#7245D9'
},
{
offset
:
1
,
color
:
'#5A5FE6'
}
]
)
},
// 雷达图辐射区域的样式
areaStyle
:
{
color
:
new
this
.
$echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'rgba(114, 69, 217, 0.3)'
},
{
offset
:
1
,
color
:
'rgba(90, 95, 230, 0.3)'
}
]
)
}
},
{
value
:
_this
.
yData2
,
name
:
'当前有效数量'
,
symbol
:
'emptyCircle'
,
symbolSize
:
6
,
itemStyle
:
{
color
:
new
this
.
$echarts
.
graphic
.
LinearGradient
(
// 设置渐变色
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'#3994C1'
},
{
offset
:
1
,
color
:
'#5BB158'
}
]
)
},
areaStyle
:
{
color
:
new
this
.
$echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'rgba(57, 148, 193, 0.3)'
},
{
offset
:
1
,
color
:
'rgba(91, 177, 88, 0.3)'
}
]
)
}
}
]
}
]
})
}
}
}
</
script
>
<
style
scoped
>
.radarChart
{
width
:
100%
;
height
:
500px
;
}
</
style
>
src/views/data-statistics/hospital-data-statistics/hospital-data-statistics.vue
View file @
0de95463
...
@@ -191,7 +191,10 @@
...
@@ -191,7 +191,10 @@
<!--
<el-radio-button
label=
"currentYear"
class=
"radioButton"
>
今年
</el-radio-button>
-->
<!--
<el-radio-button
label=
"currentYear"
class=
"radioButton"
>
今年
</el-radio-button>
-->
<!--
</el-radio-group>
-->
<!--
</el-radio-group>
-->
<!--
</div>
-->
<!--
</div>
-->
<radar-chart-for-hospital
/>
<radar-chart-for-hospital
:y-data1=
"[42, 30, 20, 35, 50, 18]"
:y-data2=
"[50, 14, 28, 26, 42, 21]"
/>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/views/data-statistics/pet-data-statistics/pet-data-statistics.vue
View file @
0de95463
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment