|
@@ -269,9 +269,9 @@ export default {
|
|
|
Summary: [], // 顶部数据
|
|
|
chart1Data: null, // 图表1数据
|
|
|
chart2Data: null, // 图表2数据
|
|
|
- moduleSort: 1, // 模块数据排序
|
|
|
+ moduleSort: 2, // 模块数据排序
|
|
|
moduleData: [], // 模块数据
|
|
|
- memberSort: 1, // 责任人数据排序
|
|
|
+ memberSort: 2, // 责任人数据排序
|
|
|
memberData: [] // 责任人数据
|
|
|
}
|
|
|
},
|
|
@@ -383,7 +383,7 @@ export default {
|
|
|
grid: { left: '0', right: '0', top: '3%', bottom: '0', containLabel: true },
|
|
|
xAxis: [{ type: 'category', data: this.chart1Data.xaxis, axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, splitLine: { lineStyle: { type: 'dashed' }}}],
|
|
|
- series: [{ name: '缺陷统计', type: 'bar', barWidth: '20px', data: this.chart1Data.yaxis[0] && this.chart1Data.yaxis[0].data || [] }]
|
|
|
+ series: [{ name: '缺陷数量', type: 'bar', barWidth: '20px', data: this.chart1Data.yaxis[0] && this.chart1Data.yaxis[0].data || [] }]
|
|
|
}
|
|
|
} else {
|
|
|
const newArr = this.chart1Data.xaxis.map((item, index) => {
|
|
@@ -397,7 +397,7 @@ export default {
|
|
|
grid: { left: '0', right: '0', top: '3%', bottom: '0' },
|
|
|
tooltip: { trigger: 'item', formatter: '{a} <br/>{b} : {c} ({d}%)' },
|
|
|
legend: { orient: 'vertical', left: 'right', top: 'center', data: this.chart1Data.xaxis },
|
|
|
- series: [{ name: '缺陷统计', type: 'pie', radius: ['45%', '60%'], right: '30%', label: { position: 'outer', alignTo: 'edge', margin: 20 }, data: newArr }
|
|
|
+ series: [{ name: '缺陷数量', type: 'pie', radius: ['45%', '60%'], right: '30%', label: { position: 'outer', alignTo: 'edge', margin: 20 }, data: newArr }
|
|
|
]
|
|
|
}
|
|
|
}
|