|
@@ -6,7 +6,9 @@
|
|
<el-col :span="12" class="left">
|
|
<el-col :span="12" class="left">
|
|
<div id="oneChart" style="height: 460px"></div>
|
|
<div id="oneChart" style="height: 460px"></div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" class="left"> 第一通过一家 </el-col>
|
|
|
|
|
|
+ <el-col :span="12" class="left">
|
|
|
|
+ <div id="twoChart" style="height: 460px"></div>
|
|
|
|
+ </el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -52,13 +54,46 @@ export default {
|
|
name: '创新券流程数据统计',
|
|
name: '创新券流程数据统计',
|
|
type: 'pie',
|
|
type: 'pie',
|
|
radius: '55%',
|
|
radius: '55%',
|
|
- center: ['50%', '40%'],
|
|
|
|
|
|
+ center: ['50%', '50%'],
|
|
|
|
+ itemStyle: {
|
|
|
|
+ borderRadius: 8,
|
|
|
|
+ borderColor: '#fff',
|
|
|
|
+ borderWidth: 2,
|
|
|
|
+ },
|
|
|
|
+ data: res.data.ticket,
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ };
|
|
|
|
+ option && myChart.setOption(option);
|
|
|
|
+ }
|
|
|
|
+ res = await this.staQuery();
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ var chartDom = document.getElementById('twoChart');
|
|
|
|
+ var myChart = echarts.init(chartDom);
|
|
|
|
+ var option;
|
|
|
|
+ option = {
|
|
|
|
+ title: {
|
|
|
|
+ text: '政策服务申领统计',
|
|
|
|
+ left: 'center',
|
|
|
|
+ },
|
|
|
|
+ legend: {
|
|
|
|
+ top: 'bottom',
|
|
|
|
+ },
|
|
|
|
+ tooltip: {
|
|
|
|
+ trigger: 'item',
|
|
|
|
+ },
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '政策服务申领统计',
|
|
|
|
+ type: 'pie',
|
|
|
|
+ radius: '55%',
|
|
|
|
+ center: ['50%', '50%'],
|
|
itemStyle: {
|
|
itemStyle: {
|
|
borderRadius: 8,
|
|
borderRadius: 8,
|
|
borderColor: '#fff',
|
|
borderColor: '#fff',
|
|
borderWidth: 2,
|
|
borderWidth: 2,
|
|
},
|
|
},
|
|
- data: res.data,
|
|
|
|
|
|
+ data: res.data.policy,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|
|
};
|