|
@@ -124,7 +124,8 @@ import {
|
|
bugRepairData, // 缺陷24小时修复率
|
|
bugRepairData, // 缺陷24小时修复率
|
|
bugRepair2Data, // 缺陷平均修复时长
|
|
bugRepair2Data, // 缺陷平均修复时长
|
|
getStarFlowerList, // 线上问题:半浮层 列表
|
|
getStarFlowerList, // 线上问题:半浮层 列表
|
|
- getProjectList // 需求任务项目列表: 半浮层
|
|
|
|
|
|
+ getProjectList, // 需求任务项目列表: 半浮层
|
|
|
|
+ getOdinJobList // 获取上线过程列表
|
|
} from '@/api/dataMarket'
|
|
} from '@/api/dataMarket'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -288,6 +289,9 @@ export default {
|
|
if (this.headerTitle === '质量') {
|
|
if (this.headerTitle === '质量') {
|
|
this.ids = this.drawerData.IdList.map(e => e)
|
|
this.ids = this.drawerData.IdList.map(e => e)
|
|
}
|
|
}
|
|
|
|
+ if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ this.ids = this.drawerData.IdList.map(e => e)
|
|
|
|
+ }
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
this.drawerData.list.forEach(elm => {
|
|
this.drawerData.list.forEach(elm => {
|
|
if (elm.label === this.drawerData.activeLabel && elm.idList) {
|
|
if (elm.label === this.drawerData.activeLabel && elm.idList) {
|
|
@@ -307,6 +311,10 @@ export default {
|
|
if (this.title.search(/新增缺陷|reopen/) > -1) {
|
|
if (this.title.search(/新增缺陷|reopen/) > -1) {
|
|
first = [...timelineList.newDefect]
|
|
first = [...timelineList.newDefect]
|
|
}
|
|
}
|
|
|
|
+ if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ first = [...timelineList.lineRate]
|
|
|
|
+ firstActive = this.drawerData.index
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
secondActive = 0
|
|
secondActive = 0
|
|
@@ -403,11 +411,18 @@ export default {
|
|
// 导出
|
|
// 导出
|
|
exportTable() {
|
|
exportTable() {
|
|
},
|
|
},
|
|
|
|
+ // 格式化时间
|
|
|
|
+ dateFomatter(date) {
|
|
|
|
+ return date.substring(0, 10) + ' ' + date.substring(11, 19)
|
|
|
|
+ },
|
|
// 设置表格头
|
|
// 设置表格头
|
|
setColumn() {
|
|
setColumn() {
|
|
if (this.title.search(/新增缺陷|reopen|缺陷24小时修复率/) > -1) {
|
|
if (this.title.search(/新增缺陷|reopen|缺陷24小时修复率/) > -1) {
|
|
this.column = columns.bugColumn.map(e => e)
|
|
this.column = columns.bugColumn.map(e => e)
|
|
}
|
|
}
|
|
|
|
+ if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ this.column = columns.test_freeOn_lineRateIdListColumns.map(e => e)
|
|
|
|
+ }
|
|
if (this.title.search(/新增问题/) > -1) {
|
|
if (this.title.search(/新增问题/) > -1) {
|
|
this.column = columns.newQuestionColumns.map(e => e)
|
|
this.column = columns.newQuestionColumns.map(e => e)
|
|
}
|
|
}
|
|
@@ -462,6 +477,10 @@ export default {
|
|
this.ids = this.drawerData.IdList.map(e => e)
|
|
this.ids = this.drawerData.IdList.map(e => e)
|
|
this.priorityList = value ? [value - 1] : []
|
|
this.priorityList = value ? [value - 1] : []
|
|
}
|
|
}
|
|
|
|
+ if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ // console.log(this.drawerData.parent.list[value])
|
|
|
|
+ this.ids = this.drawerData.parent.list[value].IdList.map(e => e)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
this.timelineData.firstActive = value || 0
|
|
this.timelineData.firstActive = value || 0
|
|
@@ -512,6 +531,12 @@ export default {
|
|
this.setReportList()
|
|
this.setReportList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ if (this.ids.length) {
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.getOdinJobListFn()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.title.search(/需求/) > -1) {
|
|
if (this.title.search(/需求/) > -1) {
|
|
@@ -683,6 +708,21 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 上线过程
|
|
|
|
+ async getOdinJobListFn() {
|
|
|
|
+ const paging = this.paging
|
|
|
|
+ const res = await getOdinJobList({
|
|
|
|
+ idList: this.ids,
|
|
|
|
+ curIndex: this.paging.curIndex,
|
|
|
|
+ pageSize: this.paging.pageSize
|
|
|
|
+ })
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.tableList = res.data.result
|
|
|
|
+ this.paging.pageTotal = res.data.total
|
|
|
|
+ this.paging = { ...paging }
|
|
|
|
+ this.loading = false
|
|
|
|
+ }
|
|
|
|
+ },
|
|
/* S 效率:半浮层数据接口 */
|
|
/* S 效率:半浮层数据接口 */
|
|
// 需求平均交付周期
|
|
// 需求平均交付周期
|
|
async setRequireAvgData() {
|
|
async setRequireAvgData() {
|
|
@@ -842,7 +882,9 @@ export default {
|
|
},
|
|
},
|
|
// 设置表格高度
|
|
// 设置表格高度
|
|
setTitleHeight() {
|
|
setTitleHeight() {
|
|
- if (this.title.search(/状态停留分布图数据|状态累积流量图数据/) > -1) {
|
|
|
|
|
|
+ if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ this.tableHeight = 'calc(100vh - 288px)'
|
|
|
|
+ } else if (this.title.search(/状态停留分布图数据|状态累积流量图数据/) > -1) {
|
|
this.tableHeight = 'calc(100vh - 363px)'
|
|
this.tableHeight = 'calc(100vh - 363px)'
|
|
} else if (this.title.search(/需求周期|新增项目|新增任务|reopen|新增缺陷|需求人力|任务周期|缺陷修复时长|延期准出率|延期提测率/) > -1) {
|
|
} else if (this.title.search(/需求周期|新增项目|新增任务|reopen|新增缺陷|需求人力|任务周期|缺陷修复时长|延期准出率|延期提测率/) > -1) {
|
|
this.tableHeight = 'calc(100vh - 288px)'
|
|
this.tableHeight = 'calc(100vh - 288px)'
|
|
@@ -854,7 +896,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.tableHeight = 'calc(100vh - 136px)'
|
|
this.tableHeight = 'calc(100vh - 136px)'
|
|
}
|
|
}
|
|
- if (this.headerTitle === '质量' && this.title.search(/新增缺陷|reopen/) < 0) {
|
|
|
|
|
|
+ if (this.headerTitle === '质量' && this.title.search(/新增缺陷|reopen/) < 0 && !this.drawerData.moduleName) {
|
|
this.tableHeight = 'calc(100vh - 136px)'
|
|
this.tableHeight = 'calc(100vh - 136px)'
|
|
}
|
|
}
|
|
if (this.headerTitle === '吞吐量') {
|
|
if (this.headerTitle === '吞吐量') {
|
|
@@ -867,6 +909,9 @@ export default {
|
|
if (this.headerTitle === '质量' && this.drawerData.label === '新增问题') {
|
|
if (this.headerTitle === '质量' && this.drawerData.label === '新增问题') {
|
|
const url = `http://odin.xiaojukeji.com/#/risk/starflower/casedetail?id=${row.id}&name=${row.title}`
|
|
const url = `http://odin.xiaojukeji.com/#/risk/starflower/casedetail?id=${row.id}&name=${row.title}`
|
|
window.open(url, '_blank')
|
|
window.open(url, '_blank')
|
|
|
|
+ } else if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ const url = `http://odin.v5.intra.xiaojukeji.com/#/deploy/job/status/?jobId=${row.id}`
|
|
|
|
+ window.open(url, '_blank')
|
|
} else if (this.headerTitle === '质量' && this.drawerData.label.search(/^(提测报告|准出记录)/) > -1) {
|
|
} else if (this.headerTitle === '质量' && this.drawerData.label.search(/^(提测报告|准出记录)/) > -1) {
|
|
this.jumper(row, '报告')
|
|
this.jumper(row, '报告')
|
|
} else if (this.headerTitle === '吞吐量') {
|
|
} else if (this.headerTitle === '吞吐量') {
|
|
@@ -930,6 +975,9 @@ export default {
|
|
if (this.headerTitle.search(/质量/) > -1 && this.title.search(/新增缺陷|reopen/) > -1) {
|
|
if (this.headerTitle.search(/质量/) > -1 && this.title.search(/新增缺陷|reopen/) > -1) {
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
return this.headerTitle.search(/吞吐量|效率/) > -1
|
|
return this.headerTitle.search(/吞吐量|效率/) > -1
|
|
}
|
|
}
|
|
// 是第二条
|
|
// 是第二条
|