|
@@ -127,6 +127,7 @@ import {
|
|
|
getRequireAvgData, // 需求平均交付周期
|
|
|
getTaskData, // 任务平均交付周期
|
|
|
getRequirePeopleData, // 平均需求使用人力
|
|
|
+ getTaskPeopleData, // 平均任务使用人力
|
|
|
getDelayLaunchData, // 延期提测率
|
|
|
getDelayReleaseData, // 延期准出率
|
|
|
bugRepairData, // 缺陷24小时修复率
|
|
@@ -272,6 +273,9 @@ export default {
|
|
|
if (this.drawerData.label === '平均需求使用人力') {
|
|
|
this.title = '需求人力'
|
|
|
}
|
|
|
+ if (this.drawerData.label === '平均任务使用人力') {
|
|
|
+ this.title = '任务人力'
|
|
|
+ }
|
|
|
if (this.drawerData.label === '缺陷平均修复时长') {
|
|
|
this.title = '缺陷修复时长'
|
|
|
}
|
|
@@ -386,6 +390,9 @@ export default {
|
|
|
if (label === '平均需求使用人力') {
|
|
|
label = '需求使用人力'
|
|
|
}
|
|
|
+ if (label === '平均任务使用人力') {
|
|
|
+ label = '任务使用人力'
|
|
|
+ }
|
|
|
if (this.drawerData.label === '缺陷平均修复时长') {
|
|
|
label = '全部'
|
|
|
}
|
|
@@ -408,7 +415,7 @@ export default {
|
|
|
paging.pageSize = value
|
|
|
this.paging = _.cloneDeep(paging)
|
|
|
window.localStorage.setItem('pageSize', value)
|
|
|
- if (this.headerTitle === '效率' && this.title !== '需求人力') {
|
|
|
+ if (this.headerTitle === '效率' && this.title !== '需求人力' && this.title !== '任务人力') {
|
|
|
this.tableListPagination()
|
|
|
} else {
|
|
|
this.setTableList()
|
|
@@ -420,7 +427,7 @@ export default {
|
|
|
paging.curIndex = value
|
|
|
this.paging = _.cloneDeep(paging)
|
|
|
// console.log(this.title)
|
|
|
- if (this.headerTitle === '效率' && this.title !== '需求人力') {
|
|
|
+ if (this.headerTitle === '效率' && this.title !== '需求人力' && this.title !== '任务人力') {
|
|
|
this.tableListPagination()
|
|
|
} else {
|
|
|
this.setTableList()
|
|
@@ -471,6 +478,9 @@ export default {
|
|
|
if (this.title === '需求人力') {
|
|
|
columnsKey = 'requirementPeopleColumns'
|
|
|
}
|
|
|
+ if (this.title === '任务人力') {
|
|
|
+ columnsKey = 'taskPeopleColumns'
|
|
|
+ }
|
|
|
if (this.title === '延期提测率') {
|
|
|
columnsKey = 'delayLaunchDataColumns'
|
|
|
}
|
|
@@ -482,7 +492,7 @@ export default {
|
|
|
}
|
|
|
const columnsTipsKey = `${columnsKey}Tips`
|
|
|
this.column = columns.efficiency[columnsKey].map((elm, index) => {
|
|
|
- if (index === 2 && this.title.search(/任务周期|需求人力|需求周期/) > -1) {
|
|
|
+ if (index === 2 && this.title.search(/任务周期|需求人力|任务人力|需求周期/) > -1) {
|
|
|
return columns.efficiency[columnsTipsKey][this.timelineData.firstActive || 0]
|
|
|
}
|
|
|
return elm
|
|
@@ -607,6 +617,12 @@ export default {
|
|
|
this.setRequirePeopleData()
|
|
|
}
|
|
|
}
|
|
|
+ if (this.title === '任务人力') {
|
|
|
+ if (this.sourceData[0].IdList.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setTaskPeopleData()
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this.title === '缺陷修复时长') {
|
|
|
if (this.sourceData[0].IdList.length) {
|
|
|
this.loading = true
|
|
@@ -810,6 +826,26 @@ export default {
|
|
|
this.loading = false
|
|
|
}
|
|
|
},
|
|
|
+ // 平均任务使用人力
|
|
|
+ async setTaskPeopleData() {
|
|
|
+ const paging = this.paging
|
|
|
+ const params = {
|
|
|
+ ...paging,
|
|
|
+ title: this.timelineData.first[this.timelineData.firstActive],
|
|
|
+ ids: this.sourceData[0].IdList
|
|
|
+ }
|
|
|
+ delete params.pageTotal
|
|
|
+ const res = await getTaskPeopleData(params)
|
|
|
+ if (res.code === 200) {
|
|
|
+ // console.log(res.data)
|
|
|
+ this.tableList = res.data
|
|
|
+ // this.tableListOld = res.data.length && res.data.map(e => e)
|
|
|
+ // this.tableListPagination()
|
|
|
+ paging.pageTotal = this.sourceData[0].IdList.length
|
|
|
+ this.paging = { ...paging }
|
|
|
+ this.loading = false
|
|
|
+ }
|
|
|
+ },
|
|
|
// 缺陷平均修复时长
|
|
|
async setBugRepair2Data() {
|
|
|
const paging = this.paging
|
|
@@ -915,7 +951,7 @@ export default {
|
|
|
this.tableHeight = 'calc(100vh - 290px)'
|
|
|
} else if (this.title.search(/状态停留分布图数据|状态累积流量图数据/) > -1) {
|
|
|
this.tableHeight = 'calc(100vh - 363px)'
|
|
|
- } else if (this.title.search(/需求周期|新增项目|新增任务|reopen|新增缺陷|需求人力|任务周期|缺陷修复时长|延期准出率|延期提测率/) > -1) {
|
|
|
+ } else if (this.title.search(/需求周期|新增项目|新增任务|reopen|新增缺陷|需求人力|任务人力|任务周期|缺陷修复时长|延期准出率|延期提测率/) > -1) {
|
|
|
this.tableHeight = 'calc(100vh - 288px)'
|
|
|
} else if (this.title.search(/需求|任务|项目/) > -1) {
|
|
|
// 吞吐量: 需求
|