|
@@ -38,7 +38,7 @@ export default {
|
|
|
requireList: {},
|
|
|
bugPriority: ['全部', 'P0', 'P1', 'P1以上'],
|
|
|
bugPrioritys: ['全部', 'P0&P1', 'P1以上'],
|
|
|
- bugHour: ['全部修复', '24小时内修复', '修复时长超过24小时']
|
|
|
+ bugHour: ['全部修复', '24小时内修复', '修复时长超过24小时', '未修复']
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -75,8 +75,8 @@ export default {
|
|
|
const yaxis = data.reportBugs.map(item => { return item.id })
|
|
|
this.requireList = { toType: '缺陷', title: '累计reopen', yaxis: yaxis, idList: yaxis }
|
|
|
} else if (index === 4) {
|
|
|
- let [one, tow, three] = [[], [], []]
|
|
|
- const [a, s, d, f, g, h, j, k, l] = [[], [], [], [], [], [], [], [], []]
|
|
|
+ let [one, tow, three, four] = [[], [], [], []]
|
|
|
+ const [a, s, d, f, g, h, j, k, l, z, x, c] = [[], [], [], [], [], [], [], [], []]
|
|
|
if (data.reportBugs[0]) {
|
|
|
data.reportBugs.map(item => {
|
|
|
if (item.isRepaired && item.repairTime < 24) { // 24小时内修复
|
|
@@ -91,13 +91,19 @@ export default {
|
|
|
if (item.priority > 1) { d.push(item.id) }
|
|
|
three = [a, s, d]
|
|
|
}
|
|
|
+ if (item.isRepaired && item.status === 0) { // 未修复
|
|
|
+ z.push(item.id)
|
|
|
+ if (item.priority < 2) { x.push(item.id) }
|
|
|
+ if (item.priority > 1) { c.push(item.id) }
|
|
|
+ four = [z, x, c]
|
|
|
+ }
|
|
|
j.push(item.id)
|
|
|
if (item.priority < 2) { k.push(item.id) }
|
|
|
if (item.priority > 1) { l.push(item.id) }
|
|
|
tow = [j, k, l]
|
|
|
})
|
|
|
}
|
|
|
- const yaxis = [tow, one, three]
|
|
|
+ const yaxis = [tow, one, three, four]
|
|
|
this.requireList = { toType: '缺陷', xaxis: this.bugHour, towTimeLine: this.bugPrioritys, title: '缺陷24小时修复', yaxis: yaxis, dataIndex: 1 }
|
|
|
}
|
|
|
this.openDrawer = true
|