|
@@ -69,11 +69,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ deep: true,
|
|
|
immediate: true
|
|
|
},
|
|
|
releaseType: {
|
|
|
handler(newV) {
|
|
|
- console.log(newV)
|
|
|
this.types = newV
|
|
|
},
|
|
|
immediate: true
|
|
@@ -94,9 +94,9 @@ export default {
|
|
|
title: { text: '新增缺陷趋势图', x: 'center', textStyle: { fontSize: 14, fontStyle: 'normal', fontWeight: 'normal' }},
|
|
|
tooltip: { axisPointer: { type: 'shadow' }},
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
- xAxis: [{ type: 'category', data: res.bugDisByDate.xAxis ? res.bugDisByDate.xAxis : ['未知', '未知', '未知', '未知', '未知', '未知', '未知'], axisTick: { alignWithLabel: true }}],
|
|
|
+ xAxis: [{ type: 'category', data: res.bugDisByDate.xAxis ? res.bugDisByDate.xAxis : ['未知'], axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
|
- series: res.bugDisByDate.yAxis[0].data <= 0 ? [{ name: '直接访问', type: 'line', smooth: true, data: [0, 0, 0, 0, 0, 0, 0] }] : data
|
|
|
+ series: res.bugDisByDate.yAxis[0].data <= 0 ? [{ name: '直接访问', type: 'line', smooth: true, data: [0] }] : data
|
|
|
})
|
|
|
}, 200)
|
|
|
|
|
@@ -111,9 +111,9 @@ export default {
|
|
|
title: { text: '缺陷责任人分布', x: 'center', textStyle: { fontSize: 14, fontStyle: 'normal', fontWeight: 'normal' }},
|
|
|
tooltip: { axisPointer: { type: 'shadow' }},
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
- xAxis: [{ type: 'category', data: res.bugDisByMember.xAxis[0] ? res.bugDisByMember.xAxis : ['未知', '未知', '未知', '未知'], axisTick: { alignWithLabel: true }}],
|
|
|
+ xAxis: [{ type: 'category', data: res.bugDisByMember.xAxis[0] ? res.bugDisByMember.xAxis : ['未知'], axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
|
- series: res.bugDisByMember.yAxis[0].data <= 0 ? [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0, 0, 0, 0] }] : lineShow
|
|
|
+ series: res.bugDisByMember.yAxis[0].data <= 0 ? [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0] }] : lineShow
|
|
|
})
|
|
|
}, 200)
|
|
|
const barShow = res.bugDisByPri.yAxis.map(item => ({
|
|
@@ -158,9 +158,9 @@ export default {
|
|
|
title: { text: '新增缺陷趋势图', x: 'center', textStyle: { fontSize: 14, fontStyle: 'normal', fontWeight: 'normal' }},
|
|
|
tooltip: { axisPointer: { type: 'shadow' }},
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
- xAxis: [{ type: 'category', data: res6.data.xaxis === null ? ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期七'] : res6.data.xaxis, axisTick: { alignWithLabel: true }}],
|
|
|
+ xAxis: [{ type: 'category', data: res6.data.xaxis === null ? ['未知'] : res6.data.xaxis, axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
|
- series: res6.data.yaxis[0].data <= 0 ? [{ name: '直接访问', type: 'line', smooth: true, data: [0, 0, 0, 0, 0, 0, 0] }] : data
|
|
|
+ series: res6.data.yaxis[0].data <= 0 ? [{ name: '直接访问', type: 'line', smooth: true, data: [0] }] : data
|
|
|
|
|
|
})
|
|
|
}, 200)
|
|
@@ -178,9 +178,9 @@ export default {
|
|
|
title: { text: '缺陷责任人分布', x: 'center', textStyle: { fontSize: 14, fontStyle: 'normal', fontWeight: 'normal' }},
|
|
|
tooltip: { axisPointer: { type: 'shadow' }},
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
- xAxis: [{ type: 'category', data: res2.data.xaxis[0] ? res2.data.xaxis : ['P0', 'P1', 'P2', 'P3'], axisTick: { alignWithLabel: true }}],
|
|
|
+ xAxis: [{ type: 'category', data: res2.data.xaxis[0] ? res2.data.xaxis : ['未知'], axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
|
- series: res2.data.yaxis[0].data <= 0 ? [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0, 0, 0, 0] }] : data
|
|
|
+ series: res2.data.yaxis[0].data <= 0 ? [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0] }] : data
|
|
|
})
|
|
|
}, 200)
|
|
|
}
|
|
@@ -211,18 +211,18 @@ export default {
|
|
|
title: { text: '新增缺陷趋势图', x: 'center', textStyle: { fontSize: 14, fontStyle: 'normal', fontWeight: 'normal' }},
|
|
|
tooltip: { axisPointer: { type: 'shadow' }},
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
- xAxis: [{ type: 'category', data: ['未知', '未知', '未知', '未知', '未知', '未知', '未知'], axisTick: { alignWithLabel: true }}],
|
|
|
+ xAxis: [{ type: 'category', data: ['未知'], axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
|
- series: [{ name: '直接访问', type: 'line', smooth: true, data: [0, 0, 0, 0, 0, 0, 0] }]
|
|
|
+ series: [{ name: '直接访问', type: 'line', smooth: true, data: [0] }]
|
|
|
})
|
|
|
echarts.init(document.getElementById('lineShow')).setOption({
|
|
|
color: ['#409EFF'],
|
|
|
title: { text: '缺陷责任人分布', x: 'center', textStyle: { fontSize: 14, fontStyle: 'normal', fontWeight: 'normal' }},
|
|
|
tooltip: { axisPointer: { type: 'shadow' }},
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
- xAxis: [{ type: 'category', data: ['未知', '未知', '未知', '未知'], axisTick: { alignWithLabel: true }}],
|
|
|
+ xAxis: [{ type: 'category', data: ['未知'], axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
|
- series: [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0, 0, 0, 0] }]
|
|
|
+ series: [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0] }]
|
|
|
})
|
|
|
echarts.init(document.getElementById('barShow')).setOption({
|
|
|
backgroundColor: '#FFF',
|
|
@@ -230,9 +230,9 @@ export default {
|
|
|
title: { text: '缺陷等级分布', x: 'center', textStyle: { fontSize: 14, fontStyle: 'normal', fontWeight: 'normal' }},
|
|
|
tooltip: { axisPointer: { type: 'shadow' }},
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
- xAxis: [{ type: 'category', data: ['未知', '未知', '未知', '未知'], axisTick: { alignWithLabel: true }}],
|
|
|
+ xAxis: [{ type: 'category', data: ['未知'], axisTick: { alignWithLabel: true }}],
|
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { type: 'dashed' }}}],
|
|
|
- series: [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0, 0, 0, 0] }]
|
|
|
+ series: [{ name: '无数据', type: 'bar', barWidth: '20px', data: [0] }]
|
|
|
})
|
|
|
}, 200)
|
|
|
}
|