|
@@ -24,18 +24,17 @@
|
|
|
size="mini"
|
|
|
:header-cell-style="{ backgroundColor: 'rgba(241,241,241,1)', color: 'rgba(51,59,74,1)', fontSize: '14px', fontWeight: '400'}"
|
|
|
style="width: 100%"
|
|
|
- show-overflow-tooltip="true"
|
|
|
>
|
|
|
- <el-table-column prop="bugName" label="缺陷标题" align="center" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="bugName" label="缺陷标题" align="center" min-width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="didi-hover" @click.stop="click_bugName(scope.row.id)">{{ scope.row.bugName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="bugStatusName" label="缺陷状态" align="center" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column prop="priorityLevel" label="缺陷等级" align="center" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column prop="creatorList" label="提报人" align="center" min-width="90" show-overflow-tooltip />
|
|
|
- <el-table-column prop="assignerList" label="责任人" align="center" min-width="90" show-overflow-tooltip />
|
|
|
- <el-table-column prop="currentHandlerList" label="修复人" align="center" min-width="90" show-overflow-tooltip />
|
|
|
+ <el-table-column prop="bugStatusName" label="缺陷状态" align="center" min-width="100" />
|
|
|
+ <el-table-column prop="priorityLevel" label="缺陷等级" align="center" min-width="100" />
|
|
|
+ <el-table-column prop="creatorList" label="提报人" align="center" min-width="90" />
|
|
|
+ <el-table-column prop="assignerList" label="责任人" align="center" min-width="90" />
|
|
|
+ <el-table-column prop="currentHandlerList" label="修复人" align="center" min-width="90" />
|
|
|
<el-table-column prop="reasonOrDesc" label="备注(hold原因等)" align="center" min-width="150" />
|
|
|
</el-table>
|
|
|
</div>
|
|
@@ -69,11 +68,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ deep: true,
|
|
|
immediate: true
|
|
|
},
|
|
|
releaseType: {
|
|
|
handler(newV) {
|
|
|
- console.log(newV)
|
|
|
this.types = newV
|
|
|
},
|
|
|
immediate: true
|
|
@@ -94,9 +93,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 +110,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 +157,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 +177,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 +210,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 +229,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)
|
|
|
}
|