|
@@ -67,25 +67,26 @@ export default {
|
|
|
this.requireList = { toType: '缺陷', xaxis: this.bugPriority, title: title, yaxis: yaxis, dataIndex: index }
|
|
|
} else if (index > 3) {
|
|
|
let [one, tow, three] = [[], [], []]
|
|
|
+ const [a, s, d, f, g, h, j, k, l] = [[], [], [], [], [], [], [], [], []]
|
|
|
if (data.option[0]) {
|
|
|
data.option.map(item => {
|
|
|
if (item.isRepaired && item.repairTime < 24) { // 24小时内修复
|
|
|
this.setOption(item, one)
|
|
|
- q.push(item.id)
|
|
|
- if (item.priority < 2) { w.push(item.id) }
|
|
|
- if (item.priority > 1) { e.push(item.id) }
|
|
|
- one = [q, w, e]
|
|
|
- } else if (item.isRepaired) { // 全不修复
|
|
|
- q.push(item.id)
|
|
|
- if (item.priority < 2) { w.push(item.id) }
|
|
|
- if (item.priority > 1) { e.push(item.id) }
|
|
|
- tow = [q, w, e]
|
|
|
- } else if (!item.isRepaired && item.repairTime > 24) { // 24小时内未修复
|
|
|
- q.push(item.id)
|
|
|
- if (item.priority < 2) { w.push(item.id) }
|
|
|
- if (item.priority > 1) { e.push(item.id) }
|
|
|
- three = [q, w, e]
|
|
|
+ f.push(item.id) // 全部
|
|
|
+ if (item.priority < 2) { g.push(item.id) } // P0&P1
|
|
|
+ if (item.priority > 1) { h.push(item.id) } // P1以上
|
|
|
+ one = [f, g, h]
|
|
|
}
|
|
|
+ if (!item.isRepaired) { // 24小时内未修复
|
|
|
+ a.push(item.id)
|
|
|
+ if (item.priority < 2) { s.push(item.id) }
|
|
|
+ if (item.priority > 1) { d.push(item.id) }
|
|
|
+ three = [a, s, d]
|
|
|
+ }
|
|
|
+ j.push(item.id)
|
|
|
+ if (item.priority < 2) { k.push(item.id) }
|
|
|
+ if (item.priority > 1) { l.push(item.id) }
|
|
|
+ tow = [j, k, l]
|
|
|
})
|
|
|
}
|
|
|
if (index === 4 || index === 5) {
|