湖里大屏(劳务管理):人员类型模块
This commit is contained in:
parent
85554fbf72
commit
9859956f68
@ -18,37 +18,53 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
this.initMyChart();
|
this.initMyChart();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initMyChart() {
|
initMyChart() {
|
||||||
const myChart = echarts.init(this.$refs.myChart);
|
const myChart = echarts.init(this.$refs.myChart);
|
||||||
const option = {
|
const option = {
|
||||||
|
title:{
|
||||||
|
text:'1450',
|
||||||
|
subtext:'在册总人数',
|
||||||
|
x:'48%',
|
||||||
|
y:'40%',
|
||||||
|
textAlign: 'center',
|
||||||
|
textStyle: {
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: 'normal',
|
||||||
|
color: '#41a4b5',
|
||||||
|
},
|
||||||
|
subtextStyle: {
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: 'normal',
|
||||||
|
color: '#41a4b5'
|
||||||
|
},
|
||||||
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
type: "pie",
|
type: "pie",
|
||||||
roseType: "radius",
|
roseType: "radius",
|
||||||
radius: [30, 60],
|
radius: [40, 70],
|
||||||
// top: 50,
|
color:['#43d7b5','#f7d400','#5181f6','#786ff0','#5be2f6'],
|
||||||
left: "center",
|
left: "center",
|
||||||
width: 350,
|
width: 400,
|
||||||
label: {
|
label: {
|
||||||
alignTo: "edge",
|
|
||||||
formatter: "{name|{b}}\n{time|{c} 人}",
|
formatter: "{name|{b}}\n{time|{c} 人}",
|
||||||
minMargin: 5,
|
minMargin: 5,
|
||||||
edgeDistance: 10,
|
edgeDistance: 5 ,
|
||||||
lineHeight: 15,
|
lineHeight: 20,
|
||||||
rich: {
|
rich: {
|
||||||
time: {
|
time: {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: "#999"
|
// color: "#999"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
labelLine: {
|
labelLine: {
|
||||||
length: 15,
|
length: 15,
|
||||||
length2: 0,
|
length2: 10,
|
||||||
maxSurfaceAngle: 80
|
maxSurfaceAngle: 80
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
@ -81,7 +97,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.myChart {
|
.myChart {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 90%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user