|
@@ -208,7 +208,7 @@ export default {
|
|
|
},
|
|
|
init() {
|
|
|
this.headerTitle = this.drawerData.headerTitle
|
|
|
- this.title = this.headerTitle.search(/质量|效率/) > -1 ? this.drawerData.label || '' : this.drawerData.activeLabel || ''
|
|
|
+ this.title = this.headerTitle.search(/质量|效率/) > -1 ? this.drawerData.label || '' : this.drawerData.activeLabel
|
|
|
if (this.headerTitle && this.title) {
|
|
|
console.log(this.drawerData)
|
|
|
this.pagingInit()
|
|
@@ -461,16 +461,22 @@ export default {
|
|
|
this.tableList = []
|
|
|
if (this.headerTitle === '质量') {
|
|
|
if (this.title.search(/新增缺陷|reopen/) > -1) {
|
|
|
- this.loading = true
|
|
|
- this.getBugStatisticData()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.getBugStatisticData()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title.search(/新增问题/) > -1) {
|
|
|
- this.loading = true
|
|
|
- this.setStarFlowerList()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setStarFlowerList()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title.search(/提测报告|准出记录/) > -1) {
|
|
|
- this.loading = true
|
|
|
- this.setReportList()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setReportList()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (this.headerTitle === '吞吐量') {
|
|
@@ -495,32 +501,48 @@ export default {
|
|
|
}
|
|
|
if (this.headerTitle === '效率') {
|
|
|
if (this.title === '需求周期') {
|
|
|
- this.loading = true
|
|
|
- this.setRequireAvgData()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setRequireAvgData()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title === '任务周期') {
|
|
|
this.loading = true
|
|
|
this.setTaskData()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setTaskData()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title === '需求人力') {
|
|
|
- this.loading = true
|
|
|
- this.setRequirePeopleData()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setRequirePeopleData()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title === '缺陷修复时长') {
|
|
|
- this.loading = true
|
|
|
- this.setbugRepair2Data()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setbugRepair2Data()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title === '缺陷24小时修复率') {
|
|
|
- this.loading = true
|
|
|
- this.setbugRepairData()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setbugRepairData()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title === '延期提测率') {
|
|
|
- this.loading = true
|
|
|
- this.setDelayLaunchData()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setDelayLaunchData()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title === '延期准出率') {
|
|
|
- this.loading = true
|
|
|
- this.setDelayReleaseData()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setDelayReleaseData()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|