|
@@ -67,7 +67,7 @@
|
|
|
<template slot-scope="scope"><a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView('2')">{{ scope.row.rollbackNum }}</a></template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
+ prop="noTestRollback"
|
|
|
label="免提测回滚数"
|
|
|
style="width:20%;"
|
|
|
align="center"
|
|
@@ -84,7 +84,7 @@
|
|
|
style="width:20%;"
|
|
|
align="center"
|
|
|
>
|
|
|
- <template slot-scope="scope"><a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView('4')">{{ scope.row.preLess5Min }}</a></template>
|
|
|
+ <template slot-scope="scope"><a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView('4')">{{ scope.row.smallRollbackNum }}</a></template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="全量回滚数"
|
|
@@ -103,23 +103,26 @@
|
|
|
size="mini"
|
|
|
>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
label="预发具备率"
|
|
|
align="center"
|
|
|
width="calc(10/9)%"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">{{ scope.row.isHavePrePercent | toPercent }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
label="有预发不走预发占比"
|
|
|
align="center"
|
|
|
width="110"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">{{ scope.row.skipPreIfHavaPercent | toPercent }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
label="被动免提测率"
|
|
|
align="center"
|
|
|
width="calc(10/9)%"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">{{ scope.row.passiveNoTestPercent | toPercent }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="免提测上线占比"
|
|
|
align="center"
|
|
@@ -135,11 +138,12 @@
|
|
|
<template slot-scope="scope">{{ scope.row.rollbackPercent | toPercent }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
label="免提测回滚占比"
|
|
|
align="center"
|
|
|
width="calc(10/9)%"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">{{ scope.row.noTestRollbackPercent | toPercent }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="预发回滚率"
|
|
|
align="center"
|
|
@@ -152,7 +156,7 @@
|
|
|
align="center"
|
|
|
width="75"
|
|
|
>
|
|
|
- <template slot-scope="scope">{{ scope.row.preLess5MinPercent | toPercent }}</template>
|
|
|
+ <template slot-scope="scope">{{ scope.row.smallRollbackNumPercent | toPercent }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="全量回滚率"
|
|
@@ -174,14 +178,15 @@
|
|
|
style="width:25%;"
|
|
|
align="center"
|
|
|
>
|
|
|
- <template slot-scope="scope">{{ scope.row.name | toPercent }}</template>
|
|
|
+ <template slot-scope="scope">{{ scope.row.preLess5MinPercent | toPercent }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
label="小流量停留<5min占比"
|
|
|
style="width:25%;"
|
|
|
align="center"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">{{ scope.row.smallLess5MinPercent | toPercent }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="name"
|
|
|
label="裸奔上线占比"
|
|
@@ -313,7 +318,7 @@
|
|
|
width="40"
|
|
|
align="center"
|
|
|
>
|
|
|
- <template slot-scope="scope">{{ scope.row.totalP0 | toFull }}</template>
|
|
|
+ <template slot-scope="scope">{{ scope.row.totalP0 | toPercent }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="totalP1"
|
|
@@ -462,17 +467,12 @@ import { getBusiness, getDepartment, getOnlineProblem, getOnlineAllCount, getOnl
|
|
|
export default {
|
|
|
filters: {
|
|
|
toPercent(value) {
|
|
|
- if (!value) {
|
|
|
- return '-'
|
|
|
- } else {
|
|
|
+ if (value) {
|
|
|
return Number(value * 100).toFixed(2) + '%'
|
|
|
- }
|
|
|
- },
|
|
|
- toFull(value) {
|
|
|
- if (value === null) {
|
|
|
- return '-'
|
|
|
+ } else if (value === 0) {
|
|
|
+ return 0
|
|
|
} else {
|
|
|
- return value
|
|
|
+ return '-'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -574,6 +574,7 @@ export default {
|
|
|
})
|
|
|
this.loadingOnlineProcess = false
|
|
|
} else if (this.activeIndexSecondary === 'first') {
|
|
|
+ this.loadingOnlineProcess = true
|
|
|
this.deleteAfter()
|
|
|
} else {
|
|
|
this.errorFun('获取数据失败')
|
|
@@ -591,6 +592,7 @@ export default {
|
|
|
handleSelect(key) {
|
|
|
if (key === '0') {
|
|
|
this.pauseKey = key
|
|
|
+ this.activeIndexSecondary = 'first'
|
|
|
this._initBusinessTreeAndBeginInfo()
|
|
|
} else if (key === '3') {
|
|
|
this.pauseKey = key
|
|
@@ -600,10 +602,24 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
toReportView(e) {
|
|
|
- this.$router.push({ name: '上线过程', query: { id: this.pauseTreeNode.id, type: this.pauseKey, dataType: e, startTime: this.timeInterval[0], endTime: this.timeInterval[1] }})
|
|
|
+ // 新页面跳转
|
|
|
+ const { href } = this.$router.resolve({
|
|
|
+ name: '上线过程',
|
|
|
+ query: {
|
|
|
+ id: this.pauseTreeNode.id, type: this.pauseKey, dataType: e, startTime: this.timeInterval[0], endTime: this.timeInterval[1]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(href, '_blank')
|
|
|
},
|
|
|
toDefectView() {
|
|
|
- this.$router.push({ name: '缺陷过程', query: { id: this.pauseTreeNode.id, type: this.pauseKey, startTime: this.timeInterval[0], endTime: this.timeInterval[1] }})
|
|
|
+ // 新页面跳转
|
|
|
+ const { href } = this.$router.resolve({
|
|
|
+ name: '缺陷过程',
|
|
|
+ query: {
|
|
|
+ id: this.pauseTreeNode.id, type: this.pauseKey, startTime: this.timeInterval[0], endTime: this.timeInterval[1]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(href, '_blank')
|
|
|
},
|
|
|
// 业务树
|
|
|
handleNodeClick(data) {
|