|
@@ -218,7 +218,7 @@ export default {
|
|
}
|
|
}
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
this.drawerData.list.forEach(elm => {
|
|
this.drawerData.list.forEach(elm => {
|
|
- if (elm.label === this.drawerData.activeLabel) {
|
|
|
|
|
|
+ if (elm.label === this.drawerData.activeLabel && elm.idList) {
|
|
this.ids = elm.idList.map(e => e)
|
|
this.ids = elm.idList.map(e => e)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -336,6 +336,9 @@ export default {
|
|
if (this.title.search(/任务/) > -1) {
|
|
if (this.title.search(/任务/) > -1) {
|
|
this.column = columns.taskListColumns.map(e => e)
|
|
this.column = columns.taskListColumns.map(e => e)
|
|
}
|
|
}
|
|
|
|
+ if (this.title.search(/项目/) > -1) {
|
|
|
|
+ this.column = columns.projectListColumns.map(e => e)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.headerTitle === '效率') {
|
|
if (this.headerTitle === '效率') {
|
|
let columnsKey = 'requirementColumns'
|
|
let columnsKey = 'requirementColumns'
|
|
@@ -370,8 +373,11 @@ export default {
|
|
if (index === 1) {
|
|
if (index === 1) {
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
this.timelineData.firstActive = value || 0
|
|
this.timelineData.firstActive = value || 0
|
|
- this.ids = this.sourceData[value || 0].IdList
|
|
|
|
- this.title = name
|
|
|
|
|
|
+ console.log(this.sourceData)
|
|
|
|
+ if (this.sourceData[value || 0] && this.sourceData[value || 0].idList) {
|
|
|
|
+ this.ids = this.sourceData[value || 0].idList
|
|
|
|
+ this.title = name
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.headerTitle === '效率') {
|
|
if (this.headerTitle === '效率') {
|
|
this.timelineData.firstActive = value || 0
|
|
this.timelineData.firstActive = value || 0
|
|
@@ -395,6 +401,7 @@ export default {
|
|
},
|
|
},
|
|
// 设置列表数据
|
|
// 设置列表数据
|
|
setTableList() {
|
|
setTableList() {
|
|
|
|
+ this.tableList = []
|
|
if (this.headerTitle === '质量') {
|
|
if (this.headerTitle === '质量') {
|
|
if (this.title.search(/新增缺陷|reopen/) > -1) {
|
|
if (this.title.search(/新增缺陷|reopen/) > -1) {
|
|
this.loading = true
|
|
this.loading = true
|
|
@@ -411,11 +418,17 @@ export default {
|
|
}
|
|
}
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.title.search(/需求/) > -1) {
|
|
if (this.title.search(/需求/) > -1) {
|
|
|
|
+ this.loading = true
|
|
this.ids.length && this.getRequirementList()
|
|
this.ids.length && this.getRequirementList()
|
|
}
|
|
}
|
|
if (this.title.search(/任务/) > -1) {
|
|
if (this.title.search(/任务/) > -1) {
|
|
|
|
+ this.loading = true
|
|
this.ids.length && this.getTaskList()
|
|
this.ids.length && this.getTaskList()
|
|
}
|
|
}
|
|
|
|
+ if (this.title.search(/项目/) > -1) {
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.ids.length && this.setProjectList()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.headerTitle === '效率') {
|
|
if (this.headerTitle === '效率') {
|
|
if (this.title === '需求周期') {
|
|
if (this.title === '需求周期') {
|
|
@@ -496,7 +509,7 @@ export default {
|
|
const paging = this.paging
|
|
const paging = this.paging
|
|
// {"ids":[14952,15453,15988,16182,17445,17447,17735,18062,18064,18067,18134,18137,18138,18140],"curIndex":2,"pageSize":10}
|
|
// {"ids":[14952,15453,15988,16182,17445,17447,17735,18062,18064,18067,18134,18137,18138,18140],"curIndex":2,"pageSize":10}
|
|
const res = await getProjectList({
|
|
const res = await getProjectList({
|
|
- ids: this.ids,
|
|
|
|
|
|
+ idList: this.ids,
|
|
curIndex: this.paging.curIndex,
|
|
curIndex: this.paging.curIndex,
|
|
pageSize: 15
|
|
pageSize: 15
|
|
})
|
|
})
|