|
@@ -74,7 +74,9 @@ import {
|
|
|
getDelayLaunchData, // 延期提测率
|
|
|
getDelayReleaseData, // 延期准出率
|
|
|
bugRepairData, // 缺陷24小时修复率
|
|
|
- bugRepair2Data // 缺陷平均修复时长
|
|
|
+ bugRepair2Datam, // 缺陷平均修复时长
|
|
|
+ getStarFlowerList, // 线上问题:半浮层 列表
|
|
|
+ getProjectList // 需求任务项目列表: 半浮层
|
|
|
} from '@/api/dataMarket'
|
|
|
|
|
|
export default {
|
|
@@ -210,6 +212,8 @@ export default {
|
|
|
// 设置ids
|
|
|
setIds() {
|
|
|
if (this.headerTitle === '质量') {
|
|
|
+ // console.log(this.drawerData)
|
|
|
+ // console.log(this.drawerData.IdList)
|
|
|
this.ids = this.drawerData.IdList.map(e => e)
|
|
|
}
|
|
|
if (this.headerTitle === '吞吐量') {
|
|
@@ -319,6 +323,9 @@ export default {
|
|
|
if (this.title.search(/新增缺陷|reopen|缺陷24小时修复率/) > -1) {
|
|
|
this.column = columns.bugColumn.map(e => e)
|
|
|
}
|
|
|
+ if (this.title.search(/新增问题/) > -1) {
|
|
|
+ this.column = columns.newQuestionColumns.map(e => e)
|
|
|
+ }
|
|
|
if (this.title.search(/提测打回率|准出不通过/) > -1) {
|
|
|
this.column = columns.deliverTestReportIdListColumns.map(e => e)
|
|
|
}
|
|
@@ -393,6 +400,10 @@ export default {
|
|
|
this.loading = true
|
|
|
this.getBugStatisticData()
|
|
|
}
|
|
|
+ if (this.title.search(/新增问题/) > -1) {
|
|
|
+ this.loading = true
|
|
|
+ this.setStarFlowerList()
|
|
|
+ }
|
|
|
if (this.title.search(/提测打回率|准出不通过/) > -1) {
|
|
|
this.loading = true
|
|
|
this.setReportList()
|
|
@@ -463,6 +474,39 @@ export default {
|
|
|
this.loading = false
|
|
|
}
|
|
|
},
|
|
|
+ // getStarFlowerList, // 线上问题:半浮层 列表
|
|
|
+ async setStarFlowerList() {
|
|
|
+ const paging = this.paging
|
|
|
+ // {"ids":[14952,15453,15988,16182,17445,17447,17735,18062,18064,18067,18134,18137,18138,18140],"curIndex":2,"pageSize":10}
|
|
|
+ const res = await getStarFlowerList({
|
|
|
+ idList: this.ids,
|
|
|
+ curIndex: this.paging.curIndex,
|
|
|
+ pageSize: this.paging.pageSize
|
|
|
+ })
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.tableList = res.data
|
|
|
+ this.paging.pageTotal = this.ids.length
|
|
|
+ this.paging = { ...paging }
|
|
|
+ this.loading = false
|
|
|
+ console.log(491, this.tableList)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // getProjectList // 需求任务项目列表: 半浮层
|
|
|
+ async setProjectList() {
|
|
|
+ const paging = this.paging
|
|
|
+ // {"ids":[14952,15453,15988,16182,17445,17447,17735,18062,18064,18067,18134,18137,18138,18140],"curIndex":2,"pageSize":10}
|
|
|
+ const res = await getProjectList({
|
|
|
+ ids: this.ids,
|
|
|
+ curIndex: this.paging.curIndex,
|
|
|
+ pageSize: 15
|
|
|
+ })
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.tableList = res.data
|
|
|
+ this.paging.pageTotal = res.total
|
|
|
+ this.paging = { ...paging }
|
|
|
+ this.loading = false
|
|
|
+ }
|
|
|
+ },
|
|
|
// 累计新增缺陷
|
|
|
async getBugStatisticData() {
|
|
|
const paging = this.paging
|
|
@@ -563,7 +607,7 @@ export default {
|
|
|
ids: this.ids
|
|
|
}
|
|
|
delete params.pageTotal
|
|
|
- const res = await bugRepair2Data(params)
|
|
|
+ const res = await bugRepair2Datam(params)
|
|
|
if (res.code === 200) {
|
|
|
this.tableList = res.data.list
|
|
|
this.tableListOld = this.tableList.map(e => e)
|
|
@@ -647,10 +691,9 @@ export default {
|
|
|
},
|
|
|
// 设置表格高度
|
|
|
setTitleHeight() {
|
|
|
- console.log(this.title)
|
|
|
if (this.title.search(/状态停留分布图数据|状态累积流量图数据/) > -1) {
|
|
|
this.tableHeight = 'calc(100vh - 363px)'
|
|
|
- } else if (this.title.search(/需求周期|需求人力|任务周期|缺陷修复时长|延期准出率|延期提测率/) > -1) {
|
|
|
+ } else if (this.title.search(/需求周期|新增项目|新增任务|需求人力|任务周期|缺陷修复时长|延期准出率|延期提测率/) > -1) {
|
|
|
this.tableHeight = 'calc(100vh - 288px)'
|
|
|
} else if (this.title.search(/需求方向分布图数据|模块分布图数据/) > -1) {
|
|
|
this.tableHeight = 'calc(100vh - 200px)'
|
|
@@ -667,6 +710,9 @@ export default {
|
|
|
this.tableHeight = 'calc(100vh - 136px)'
|
|
|
// this.tableHeight = 'calc(100vh - 10px)'
|
|
|
}
|
|
|
+ if (this.headerTitle === '吞吐量') {
|
|
|
+ this.tableHeight = 'calc(100vh - 288px)'
|
|
|
+ }
|
|
|
},
|
|
|
// 设置表头
|
|
|
// 表格跳转
|