|
|
@ -12,39 +12,206 @@
|
|
|
|
<div class="service_type">
|
|
|
|
<div class="service_type">
|
|
|
|
<div class="month_service">
|
|
|
|
<div class="month_service">
|
|
|
|
<div class="month_service_text">当月服务</div>
|
|
|
|
<div class="month_service_text">当月服务</div>
|
|
|
|
<div class="month_service_value">123</div>
|
|
|
|
<div class="month_service_value">69</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="season_service">
|
|
|
|
<div class="season_service">
|
|
|
|
<div class="season_service_text">季度服务</div>
|
|
|
|
<div class="season_service_text">季度服务</div>
|
|
|
|
<div class="season_service_value">123</div>
|
|
|
|
<div class="season_service_value">387</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="year_service">
|
|
|
|
<div class="year_service">
|
|
|
|
<div class="year_service_text">年度服务</div>
|
|
|
|
<div class="year_service_text">年度服务</div>
|
|
|
|
<div class="year_service_value">123</div>
|
|
|
|
<div class="year_service_value">1976</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 服务echarts表 -->
|
|
|
|
<!-- 服务echarts表 -->
|
|
|
|
<div class="service_echarts">
|
|
|
|
<div class="service_echarts">
|
|
|
|
<div class="left_chart"></div>
|
|
|
|
<div :id="left_id" class="left_chart"></div>
|
|
|
|
<div class="right_chart"></div>
|
|
|
|
<div :id="right_id" class="right_chart"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="chart_num">
|
|
|
|
<div class="chart_num">
|
|
|
|
<div class="left_chart_num">
|
|
|
|
<div class="left_chart_num">
|
|
|
|
<div class="chart_num_text">惠企服务总量</div>
|
|
|
|
<div class="chart_num_text">惠企服务总量</div>
|
|
|
|
<div class="chart_num_value">1222</div>
|
|
|
|
<div class="chart_num_value">850</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="right_chart_num">
|
|
|
|
<div class="right_chart_num">
|
|
|
|
<div class="chart_num_text">请求受理总量</div>
|
|
|
|
<div class="chart_num_text">请求受理总量</div>
|
|
|
|
<div class="chart_num_value">1222</div>
|
|
|
|
<div class="chart_num_value">997</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import HighCharts from "highcharts";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "CompanyService",
|
|
|
|
name: "CompanyService",
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {};
|
|
|
|
return {
|
|
|
|
|
|
|
|
left_id: "left_chart",
|
|
|
|
|
|
|
|
right_id: "right_chart",
|
|
|
|
|
|
|
|
option: {
|
|
|
|
|
|
|
|
chart: {
|
|
|
|
|
|
|
|
type: "pie", //饼图
|
|
|
|
|
|
|
|
backgroundColor: "rgba(0, 0, 0, 0)", //去掉白色背景
|
|
|
|
|
|
|
|
options3d: {
|
|
|
|
|
|
|
|
enabled: true, //使用3d功能
|
|
|
|
|
|
|
|
alpha: 45, //延y轴向内的倾斜角度
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
title: {
|
|
|
|
|
|
|
|
text: "", //图表的标题文字 这个得加上,不然头部会默认有字
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
subtitle: {
|
|
|
|
|
|
|
|
text: "", //副标题文字
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
formatter: function () {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
this.point.name +
|
|
|
|
|
|
|
|
'<br/><span style="color:' +
|
|
|
|
|
|
|
|
this.color +
|
|
|
|
|
|
|
|
'">\u25CF</span>占比:<b>' +
|
|
|
|
|
|
|
|
this.percentage.toFixed(2) +
|
|
|
|
|
|
|
|
"%</b>"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
style: {
|
|
|
|
|
|
|
|
color: "#000",
|
|
|
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 去掉底部水印的文字
|
|
|
|
|
|
|
|
credits: {
|
|
|
|
|
|
|
|
enabled: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 更改图例文字颜色
|
|
|
|
|
|
|
|
legend: {
|
|
|
|
|
|
|
|
itemStyle: { color: "#cfcfcf" },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
plotOptions: {
|
|
|
|
|
|
|
|
pie: {
|
|
|
|
|
|
|
|
borderColor: "#000",
|
|
|
|
|
|
|
|
borderWidth: 1,
|
|
|
|
|
|
|
|
allowPointSelect: true, //每个扇块能否选中
|
|
|
|
|
|
|
|
cursor: "pointer", //鼠标指针
|
|
|
|
|
|
|
|
colors: ["#66C3FF", "#4D74FF", "#ECDE3D", "#37FDC7","#6633f0","#E04234"],
|
|
|
|
|
|
|
|
depth: 35, //饼图的厚度
|
|
|
|
|
|
|
|
showInLegend: false, //显示图例
|
|
|
|
|
|
|
|
// innerSize: 100,
|
|
|
|
|
|
|
|
dataLabels: {
|
|
|
|
|
|
|
|
enabled: false, //是否显示饼图的线形tip
|
|
|
|
|
|
|
|
format: "{point.name}",
|
|
|
|
|
|
|
|
style: {
|
|
|
|
|
|
|
|
//样式配置
|
|
|
|
|
|
|
|
textOutline: "none", //去掉文字白边
|
|
|
|
|
|
|
|
color: "#dfe9f9",
|
|
|
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: "pie",
|
|
|
|
|
|
|
|
data: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
right_option: {
|
|
|
|
|
|
|
|
chart: {
|
|
|
|
|
|
|
|
type: "pie", //饼图
|
|
|
|
|
|
|
|
backgroundColor: "rgba(0, 0, 0, 0)", //去掉白色背景
|
|
|
|
|
|
|
|
options3d: {
|
|
|
|
|
|
|
|
enabled: true, //使用3d功能
|
|
|
|
|
|
|
|
alpha: 45, //延y轴向内的倾斜角度
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
title: {
|
|
|
|
|
|
|
|
text: "", //图表的标题文字 这个得加上,不然头部会默认有字
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
subtitle: {
|
|
|
|
|
|
|
|
text: "", //副标题文字
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
formatter: function () {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
this.point.name +
|
|
|
|
|
|
|
|
'<br/><span style="color:' +
|
|
|
|
|
|
|
|
this.color +
|
|
|
|
|
|
|
|
'">\u25CF</span>占比:<b>' +
|
|
|
|
|
|
|
|
this.percentage.toFixed(2) +
|
|
|
|
|
|
|
|
"%</b>"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
style: {
|
|
|
|
|
|
|
|
color: "#000",
|
|
|
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 去掉底部水印的文字
|
|
|
|
|
|
|
|
credits: {
|
|
|
|
|
|
|
|
enabled: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 更改图例文字颜色
|
|
|
|
|
|
|
|
legend: {
|
|
|
|
|
|
|
|
itemStyle: { color: "#cfcfcf" },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
plotOptions: {
|
|
|
|
|
|
|
|
pie: {
|
|
|
|
|
|
|
|
borderColor: "#000",
|
|
|
|
|
|
|
|
borderWidth: 1,
|
|
|
|
|
|
|
|
allowPointSelect: true, //每个扇块能否选中
|
|
|
|
|
|
|
|
cursor: "pointer", //鼠标指针
|
|
|
|
|
|
|
|
colors: ["#66C3FF", "#4D74FF", "#ECDE3D"],
|
|
|
|
|
|
|
|
depth: 35, //饼图的厚度
|
|
|
|
|
|
|
|
showInLegend: false, //显示图例
|
|
|
|
|
|
|
|
// innerSize: 100,
|
|
|
|
|
|
|
|
dataLabels: {
|
|
|
|
|
|
|
|
enabled: false, //是否显示饼图的线形tip
|
|
|
|
|
|
|
|
format: "{point.name}",
|
|
|
|
|
|
|
|
style: {
|
|
|
|
|
|
|
|
//样式配置
|
|
|
|
|
|
|
|
textOutline: "none", //去掉文字白边
|
|
|
|
|
|
|
|
color: "#dfe9f9",
|
|
|
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: "pie",
|
|
|
|
|
|
|
|
data: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
this.init_left_chart()
|
|
|
|
|
|
|
|
this.init_right_chart()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
init_left_chart() {
|
|
|
|
|
|
|
|
let data = [
|
|
|
|
|
|
|
|
["人员背景审核", 331],
|
|
|
|
|
|
|
|
["重点人员审核", 221],
|
|
|
|
|
|
|
|
["警情通报", 120],
|
|
|
|
|
|
|
|
["道路拥堵提醒", 98],
|
|
|
|
|
|
|
|
["网络反诈提醒", 60],
|
|
|
|
|
|
|
|
["企业纠纷提醒", 20],
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
this.option.series[0].data = data;
|
|
|
|
|
|
|
|
HighCharts.chart(this.left_id, this.option);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
init_right_chart() {
|
|
|
|
|
|
|
|
let data = [
|
|
|
|
|
|
|
|
["业务咨询", 532],
|
|
|
|
|
|
|
|
["法律服务", 231],
|
|
|
|
|
|
|
|
["证照办理", 234],
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
this.right_option.series[0].data = data;
|
|
|
|
|
|
|
|
HighCharts.chart(this.right_id, this.right_option);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
@ -173,12 +340,10 @@ export default {
|
|
|
|
.left_chart {
|
|
|
|
.left_chart {
|
|
|
|
width: 12vw;
|
|
|
|
width: 12vw;
|
|
|
|
height: 13vh;
|
|
|
|
height: 13vh;
|
|
|
|
border: 0.1px solid #495e70;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.right_chart {
|
|
|
|
.right_chart {
|
|
|
|
width: 12vw;
|
|
|
|
width: 12vw;
|
|
|
|
height: 13vh;
|
|
|
|
height: 13vh;
|
|
|
|
border: 0.1px solid #495e70;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.chart_num {
|
|
|
|
.chart_num {
|
|
|
|