|
@@ -102,7 +102,7 @@ export default {
|
|
|
requireList: {},
|
|
|
bugPriority: ['全部', 'P0', 'P1', 'P1以上'],
|
|
|
bugPrioritys: ['全部', 'P0&P1', 'P1以上'],
|
|
|
- bugHour: ['全部修复', '24小时内修复', '修复时长超过24小时']
|
|
|
+ bugHour: ['全部修复', '24小时内修复', '修复时长超过24小时', '未修复']
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -205,8 +205,9 @@ export default {
|
|
|
return false
|
|
|
},
|
|
|
// 半浮层逻辑
|
|
|
- query({ row, column }, index) {
|
|
|
- // console.log(row, column.property, itemIndex)
|
|
|
+ query({ row, column }, lIndex) {
|
|
|
+ const index = lIndex - 1 || 0
|
|
|
+ console.log(row, column, index)
|
|
|
const data = row[column.property]
|
|
|
// return
|
|
|
if (index <= 2) {
|
|
@@ -221,8 +222,8 @@ export default {
|
|
|
})
|
|
|
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小时内修复
|
|
@@ -245,6 +246,12 @@ export default {
|
|
|
}
|
|
|
three = [a, s, d]
|
|
|
}
|
|
|
+ if (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)
|
|
@@ -255,7 +262,7 @@ export default {
|
|
|
tow = [j, k, l]
|
|
|
})
|
|
|
}
|
|
|
- const yaxis = [tow, one, three]
|
|
|
+ const yaxis = [tow, one, three, four]
|
|
|
this.requireList = {
|
|
|
toType: '缺陷',
|
|
|
xaxis: this.bugHour,
|