|
@@ -67,7 +67,7 @@
|
|
|
<template slot-scope="scope"><a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView('0')">{{ scope.row.totalOnlineNum }}</a></template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="免提测上线数"
|
|
|
+ label="免提测全量上线数"
|
|
|
style="width:50%;"
|
|
|
align="center"
|
|
|
>
|
|
@@ -96,7 +96,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="noTestRollback"
|
|
|
- label="免提测回滚数"
|
|
|
+ label="免提测全量回滚数"
|
|
|
style="width:20%;"
|
|
|
align="center"
|
|
|
/>
|
|
@@ -144,13 +144,13 @@
|
|
|
<template slot-scope="scope">{{ scope.row.skipPreIfHavaPercent | toPercent }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="免提测上线占比"
|
|
|
+ label="免提测全量上线占比"
|
|
|
align="center"
|
|
|
>
|
|
|
<template slot-scope="scope">{{ scope.row.noTestPercent | toPercent }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="免提测回滚占比"
|
|
|
+ label="免提测全量回滚占比"
|
|
|
align="center"
|
|
|
>
|
|
|
<template slot-scope="scope">{{ scope.row.noTestRollbackPercent | toPercent }}</template>
|
|
@@ -197,11 +197,12 @@
|
|
|
<template slot-scope="scope">{{ scope.row.smallLess5MinPercent | toPercent }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
label="裸奔上线占比"
|
|
|
style="width:25%;"
|
|
|
align="center"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">{{ scope.row.skipOnlinePercent | toPercent }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="紧急上线占比"
|
|
|
style="width:25%;"
|
|
@@ -226,7 +227,7 @@
|
|
|
/>
|
|
|
<el-table-column
|
|
|
prop="name"
|
|
|
- label="免提测上线数"
|
|
|
+ label="免提测全量上线数"
|
|
|
align="center"
|
|
|
>
|
|
|
<el-table-column
|
|
@@ -372,22 +373,22 @@
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane v-if="pauseKey !== 5" label="数据视图" name="third">
|
|
|
- <h4>1. 上线次数<span v-show="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
- <div v-show="!isTotalShowMountOrRateOrTotal" id="totalShow" style="width: 100%; height: 400px" />
|
|
|
- <h4>2. 全量回滚数/裸奔上线数/小流量回滚数<span v-show="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
- <div v-show="!isTotalShowMountOrRateOrTotal" id="totalShowMount" style="width: 100%; height: 400px" />
|
|
|
- <h4>3. 全量回滚率/裸奔上线率/小流量回滚率<span v-show="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
- <div v-show="!isTotalShowMountOrRateOrTotal" id="totalShowRate" style="width: 100%; height: 400px" />
|
|
|
+ <h4>1. 上线次数<span v-if="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
+ <div v-if="!isTotalShowMountOrRateOrTotal" id="totalShow" style="width: 100%; height: 400px" />
|
|
|
+ <h4>2. 全量回滚数/裸奔上线数/小流量回滚数<span v-if="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
+ <div v-if="!isTotalShowMountOrRateOrTotal" id="totalShowMount" style="width: 100%; height: 400px" />
|
|
|
+ <h4>3. 全量回滚率/裸奔上线率/小流量回滚率<span v-if="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
+ <div v-if="!isTotalShowMountOrRateOrTotal" id="totalShowRate" style="width: 100%; height: 400px" />
|
|
|
<h4>4. 线上问题数<span v-if="isTotalShowOnline" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
<div v-if="!isTotalShowOnline" id="totalShowOnline" style="width: 100%; height: 400px" />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane v-if="pauseKey !== 5" label="数据比对" name="forth">
|
|
|
- <h4>1. 上线次数<span v-show="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
- <div v-show="!isTotalShowMountOrRateOrTotal" id="comparatorBetween" style="width: 100%; height: 400px" />
|
|
|
- <h4>2. 全量回滚数/裸奔上线数/小流量回滚数<span v-show="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
- <div v-show="!isTotalShowMountOrRateOrTotal" id="comparatorMountBetween" style="width: 100%; height: 400px" />
|
|
|
- <h4>3. 全量回滚率/裸奔上线率/小流量回滚率<span v-show="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
- <div v-show="!isTotalShowMountOrRateOrTotal" id="comparatorRateBetween" style="width: 100%; height: 400px" />
|
|
|
+ <h4>1. 上线次数<span v-if="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
+ <div v-if="!isTotalShowMountOrRateOrTotal" id="comparatorBetween" style="width: 100%; height: 400px" />
|
|
|
+ <h4>2. 全量回滚数/裸奔上线数/小流量回滚数<span v-if="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
+ <div v-if="!isTotalShowMountOrRateOrTotal" id="comparatorMountBetween" style="width: 100%; height: 400px" />
|
|
|
+ <h4>3. 全量回滚率/裸奔上线率/小流量回滚率<span v-if="isTotalShowMountOrRateOrTotal" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
+ <div v-if="!isTotalShowMountOrRateOrTotal" id="comparatorRateBetween" style="width: 100%; height: 400px" />
|
|
|
<h4>4. 线上问题数<span v-if="isTotalShowOnline" class="emptyEcharts">( 暂无数据~ )</span></h4>
|
|
|
<div v-if="!isTotalShowOnline" id="comparatorOnlineBetween" style="width: 100%; height: 400px" />
|
|
|
</el-tab-pane>
|
|
@@ -434,7 +435,7 @@
|
|
|
label="上线次数"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- label="免提测上线占比"
|
|
|
+ label="免提测全量上线占比"
|
|
|
align="center"
|
|
|
>
|
|
|
<template slot-scope="scope">{{ scope.row.processVO.noTestPer | toPercent }}</template>
|
|
@@ -509,10 +510,36 @@ export default {
|
|
|
curIndex: 1,
|
|
|
pageSize: 10,
|
|
|
total: 0,
|
|
|
+ totalOneEcharts: '',
|
|
|
+ totalOneEchartsMount: '',
|
|
|
+ totalOneEchartsRate: '',
|
|
|
+ totalOneEchartsOnline: '',
|
|
|
dealWithBusinessDate: [],
|
|
|
timeInterval: [new Date().getTime() - 7 * 24 * 60 * 60 * 1000, new Date().getTime()]
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ isClosed() {
|
|
|
+ return this.$store.state.app.sidebar.opened
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ isClosed(New, old) {
|
|
|
+ setTimeout(() => {
|
|
|
+ const myEvent = new Event('resize')
|
|
|
+ window.dispatchEvent(myEvent)
|
|
|
+ }, 230)
|
|
|
+ // // console.log(New)
|
|
|
+ // // console.log(this.totalOneEcharts, this.totalOneEchartsMount, this.totalOneEchartsRate, this.totalOneEchartsOnline)
|
|
|
+ // // window.addEventListener('resize', () => {
|
|
|
+ // this.totalOneEcharts.resize()
|
|
|
+ // this.totalOneEchartsMount.resize()
|
|
|
+ // console.log(1)
|
|
|
+ // this.totalOneEchartsRate.resize()
|
|
|
+ // this.totalOneEchartsOnline.resize()
|
|
|
+ // })
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this._initBusinessTreeAndBeginInfo()
|
|
|
},
|
|
@@ -523,6 +550,7 @@ export default {
|
|
|
// 点击头部导航栏显示默认数据
|
|
|
async _initBusinessTreeAndBeginInfo() {
|
|
|
this.loadingOnlineProcess = true
|
|
|
+ // console.log(this.$store.state.app.sidebar.opened)
|
|
|
await getBusiness().then(res => {
|
|
|
res.code === 0 ? this.businessData = res.data : this.errorFun(res.msg)
|
|
|
const processFunc = (arr) => { // modules和child
|
|
@@ -596,7 +624,7 @@ export default {
|
|
|
// 部门table数据不需要缺陷数据
|
|
|
deleteAfter() {
|
|
|
this.guild = this.treeGuide(this.dealWithBusinessDate, this.pauseTreeNode.id, this.pauseTreeNode.type).join('/')
|
|
|
- const pretermitSearch = { id: this.pauseTreeNode.id, type: this.pauseKey, startTime: this.timeInterval[0], endTime: this.timeInterval[1] }
|
|
|
+ const pretermitSearch = { id: this.pauseTreeNode.id, type: this.pauseTreeNode.type, startTime: this.timeInterval[0], endTime: this.timeInterval[1] }
|
|
|
axios.all([getOnlineAllCount(pretermitSearch), getOnlineProblem(pretermitSearch)]).then(axios.spread((resAllCount, resProblem) => {
|
|
|
this.onlineProcess = resAllCount.code === 0 ? resAllCount.data : ''
|
|
|
this.problemData = resProblem.code === 0 ? resProblem.data : ''
|
|
@@ -637,68 +665,69 @@ export default {
|
|
|
product: eachName,
|
|
|
[pauseArr[0]]: this.visualizationData[index].totalOnlineNum
|
|
|
}))
|
|
|
- const totalOneEcharts = echarts.init(document.getElementById('comparatorBetween'))
|
|
|
- const totalOneEchartsMount = echarts.init(document.getElementById('comparatorMountBetween'))
|
|
|
- const totalOneEchartsRate = echarts.init(document.getElementById('comparatorRateBetween'))
|
|
|
- // const totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
|
|
|
- totalOneEcharts.setOption({
|
|
|
- legend: {},
|
|
|
- tooltip: {},
|
|
|
- grid: { containLabel: true },
|
|
|
- dataset: {
|
|
|
- dimensions: ['product', ...pauseArr],
|
|
|
- source: this.seriesDeal
|
|
|
- },
|
|
|
- xAxis: { type: 'category', 'axisLabel': { interval: 0 }},
|
|
|
- yAxis: {},
|
|
|
- // Declare several bar series, each will be mapped
|
|
|
- // to a column of dataset.source by default.
|
|
|
- series: [
|
|
|
- { type: 'bar' }
|
|
|
- ]
|
|
|
- })
|
|
|
- totalOneEchartsMount.setOption({
|
|
|
- legend: {},
|
|
|
- tooltip: {},
|
|
|
- grid: { containLabel: true },
|
|
|
- dataset: {
|
|
|
- dimensions: ['product', ...pauseArrOthersMount],
|
|
|
- source: this.seriesDealOthersMount
|
|
|
- },
|
|
|
- xAxis: { type: 'category', 'axisLabel': { interval: 0 }},
|
|
|
- yAxis: {},
|
|
|
- // Declare several bar series, each will be mapped
|
|
|
- // to a column of dataset.source by default.
|
|
|
- series: [
|
|
|
- { type: 'bar' },
|
|
|
- { type: 'bar' },
|
|
|
- { type: 'bar' }
|
|
|
- ]
|
|
|
- })
|
|
|
- totalOneEchartsRate.setOption({
|
|
|
- legend: {},
|
|
|
- tooltip: {},
|
|
|
- grid: { containLabel: true },
|
|
|
- dataset: {
|
|
|
- dimensions: ['product', ...pauseArrOthersMountRate],
|
|
|
- source: this.seriesDealOthersRate
|
|
|
- },
|
|
|
- xAxis: { type: 'category', 'axisLabel': { interval: 0 }},
|
|
|
- yAxis: {},
|
|
|
- // Declare several bar series, each will be mapped
|
|
|
- // to a column of dataset.source by default.
|
|
|
- series: [
|
|
|
- { type: 'bar' },
|
|
|
- { type: 'bar' },
|
|
|
- { type: 'bar' }
|
|
|
- ]
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.totalOneEcharts = echarts.init(document.getElementById('comparatorBetween'))
|
|
|
+ this.totalOneEchartsMount = echarts.init(document.getElementById('comparatorMountBetween'))
|
|
|
+ this.totalOneEchartsRate = echarts.init(document.getElementById('comparatorRateBetween'))
|
|
|
+ // const totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
|
|
|
+ this.totalOneEcharts.setOption({
|
|
|
+ legend: {},
|
|
|
+ tooltip: {},
|
|
|
+ grid: { containLabel: true },
|
|
|
+ dataset: {
|
|
|
+ dimensions: ['product', ...pauseArr],
|
|
|
+ source: this.seriesDeal
|
|
|
+ },
|
|
|
+ xAxis: { type: 'category', 'axisLabel': { interval: 0, rotate: 40 }},
|
|
|
+ yAxis: {},
|
|
|
+ // Declare several bar series, each will be mapped
|
|
|
+ // to a column of dataset.source by default.
|
|
|
+ series: [
|
|
|
+ { type: 'bar' }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ this.totalOneEchartsMount.setOption({
|
|
|
+ legend: {},
|
|
|
+ tooltip: {},
|
|
|
+ grid: { containLabel: true },
|
|
|
+ dataset: {
|
|
|
+ dimensions: ['product', ...pauseArrOthersMount],
|
|
|
+ source: this.seriesDealOthersMount
|
|
|
+ },
|
|
|
+ xAxis: { type: 'category', 'axisLabel': { interval: 0, rotate: 40 }},
|
|
|
+ yAxis: {},
|
|
|
+ // Declare several bar series, each will be mapped
|
|
|
+ // to a column of dataset.source by default.
|
|
|
+ series: [
|
|
|
+ { type: 'bar' },
|
|
|
+ { type: 'bar' },
|
|
|
+ { type: 'bar' }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ this.totalOneEchartsRate.setOption({
|
|
|
+ legend: {},
|
|
|
+ tooltip: {},
|
|
|
+ grid: { containLabel: true },
|
|
|
+ dataset: {
|
|
|
+ dimensions: ['product', ...pauseArrOthersMountRate],
|
|
|
+ source: this.seriesDealOthersRate
|
|
|
+ },
|
|
|
+ xAxis: { type: 'category', 'axisLabel': { interval: 0, rotate: 40 }},
|
|
|
+ yAxis: {},
|
|
|
+ // Declare several bar series, each will be mapped
|
|
|
+ // to a column of dataset.source by default.
|
|
|
+ series: [
|
|
|
+ { type: 'bar' },
|
|
|
+ { type: 'bar' },
|
|
|
+ { type: 'bar' }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ window.addEventListener('resize', () => {
|
|
|
+ this.totalOneEcharts.resize()
|
|
|
+ this.totalOneEchartsMount.resize()
|
|
|
+ this.totalOneEchartsRate.resize()
|
|
|
+ })
|
|
|
})
|
|
|
- window.onresize = () => {
|
|
|
- totalOneEcharts.resize()
|
|
|
- totalOneEchartsMount.resize()
|
|
|
- totalOneEchartsRate.resize()
|
|
|
- // totalOneEchartsOnline.resize()
|
|
|
- }
|
|
|
}
|
|
|
if (resProblem.data === null || resProblem.data.length === 0) {
|
|
|
this.visualizationDataOnline = []
|
|
@@ -717,8 +746,8 @@ export default {
|
|
|
// this.seriesDeal[0].type = 'line'
|
|
|
// this.seriesDeal[0].data = pauseArr
|
|
|
this.$nextTick(() => {
|
|
|
- const totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
|
|
|
- totalOneEchartsOnline.setOption({
|
|
|
+ this.totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
|
|
|
+ this.totalOneEchartsOnline.setOption({
|
|
|
legend: {},
|
|
|
tooltip: {},
|
|
|
grid: { containLabel: true },
|
|
@@ -726,7 +755,7 @@ export default {
|
|
|
dimensions: ['product', ...pauseArrOnline],
|
|
|
source: this.seriesDealOthersOnline
|
|
|
},
|
|
|
- xAxis: { type: 'category', 'axisLabel': { interval: 0 }},
|
|
|
+ xAxis: { type: 'category', 'axisLabel': { interval: 0, rotate: 40 }},
|
|
|
yAxis: {},
|
|
|
// Declare several bar series, each will be mapped
|
|
|
// to a column of dataset.source by default.
|
|
@@ -734,9 +763,9 @@ export default {
|
|
|
{ type: 'bar' }
|
|
|
]
|
|
|
})
|
|
|
- window.onresize = () => {
|
|
|
- totalOneEchartsOnline.resize()
|
|
|
- }
|
|
|
+ window.addEventListener('resize', () => {
|
|
|
+ this.totalOneEchartsOnline.resize()
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
@@ -777,40 +806,41 @@ export default {
|
|
|
type: 'line',
|
|
|
data: this.visualizationData.map(eachData => eachData.totalOnlineNum)
|
|
|
}))
|
|
|
- const totalOneEcharts = echarts.init(document.getElementById('totalShow'))
|
|
|
- const totalOneEchartsMount = echarts.init(document.getElementById('totalShowMount'))
|
|
|
- const totalOneEchartsRate = echarts.init(document.getElementById('totalShowRate'))
|
|
|
- // const totalOneEchartsOnline = echarts.init(document.getElementById('totalShowOnline'))
|
|
|
- totalOneEcharts.setOption({
|
|
|
- tooltip: { trigger: 'axis' },
|
|
|
- legend: { data: pauseArr },
|
|
|
- grid: { containLabel: true },
|
|
|
- xAxis: { type: 'category', boundaryGap: false, data: this.xAxisDeal, 'axisLabel': { interval: 0 }},
|
|
|
- yAxis: { type: 'value' },
|
|
|
- series: this.seriesDeal
|
|
|
- })
|
|
|
- totalOneEchartsMount.setOption({
|
|
|
- tooltip: { trigger: 'axis' },
|
|
|
- legend: { data: pauseArrOthersMount },
|
|
|
- grid: { containLabel: true },
|
|
|
- xAxis: { type: 'category', boundaryGap: false, data: this.xAxisDeal, 'axisLabel': { interval: 0 }},
|
|
|
- yAxis: { type: 'value' },
|
|
|
- series: this.seriesDealOthersMount
|
|
|
- })
|
|
|
- totalOneEchartsRate.setOption({
|
|
|
- tooltip: { trigger: 'axis' },
|
|
|
- legend: { data: pauseArrOthersMountRate },
|
|
|
- grid: { containLabel: true },
|
|
|
- xAxis: { type: 'category', boundaryGap: false, data: this.xAxisDeal, 'axisLabel': { interval: 0 }},
|
|
|
- yAxis: { type: 'value' },
|
|
|
- series: this.seriesDealOthersRate
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.totalOneEcharts = echarts.init(document.getElementById('totalShow'))
|
|
|
+ this.totalOneEchartsMount = echarts.init(document.getElementById('totalShowMount'))
|
|
|
+ this.totalOneEchartsRate = echarts.init(document.getElementById('totalShowRate'))
|
|
|
+ // const totalOneEchartsOnline = echarts.init(document.getElementById('totalShowOnline'))
|
|
|
+ this.totalOneEcharts.setOption({
|
|
|
+ tooltip: { trigger: 'axis' },
|
|
|
+ legend: { data: pauseArr },
|
|
|
+ grid: { containLabel: true },
|
|
|
+ xAxis: { type: 'category', boundaryGap: false, data: this.xAxisDeal, 'axisLabel': { interval: 0 }},
|
|
|
+ yAxis: { type: 'value' },
|
|
|
+ series: this.seriesDeal
|
|
|
+ })
|
|
|
+ this.totalOneEchartsMount.setOption({
|
|
|
+ tooltip: { trigger: 'axis' },
|
|
|
+ legend: { data: pauseArrOthersMount },
|
|
|
+ grid: { containLabel: true },
|
|
|
+ xAxis: { type: 'category', boundaryGap: false, data: this.xAxisDeal, 'axisLabel': { interval: 0 }},
|
|
|
+ yAxis: { type: 'value' },
|
|
|
+ series: this.seriesDealOthersMount
|
|
|
+ })
|
|
|
+ this.totalOneEchartsRate.setOption({
|
|
|
+ tooltip: { trigger: 'axis' },
|
|
|
+ legend: { data: pauseArrOthersMountRate },
|
|
|
+ grid: { containLabel: true },
|
|
|
+ xAxis: { type: 'category', boundaryGap: false, data: this.xAxisDeal, 'axisLabel': { interval: 0 }},
|
|
|
+ yAxis: { type: 'value' },
|
|
|
+ series: this.seriesDealOthersRate
|
|
|
+ })
|
|
|
+ window.addEventListener('resize', () => {
|
|
|
+ this.totalOneEcharts.resize()
|
|
|
+ this.totalOneEchartsMount.resize()
|
|
|
+ this.totalOneEchartsRate.resize()
|
|
|
+ })
|
|
|
})
|
|
|
- window.onresize = () => {
|
|
|
- totalOneEcharts.resize()
|
|
|
- totalOneEchartsMount.resize()
|
|
|
- totalOneEchartsRate.resize()
|
|
|
- // totalOneEchartsOnline.resize()
|
|
|
- }
|
|
|
}
|
|
|
if (resProblem.data === null || resProblem.data.length === 0) {
|
|
|
this.visualizationDataOnline = []
|
|
@@ -830,8 +860,8 @@ export default {
|
|
|
// this.seriesDeal[0].type = 'line'
|
|
|
// this.seriesDeal[0].data = pauseArr
|
|
|
this.$nextTick(() => {
|
|
|
- const totalOneEchartsOnline = echarts.init(document.getElementById('totalShowOnline'))
|
|
|
- totalOneEchartsOnline.setOption({
|
|
|
+ this.totalOneEchartsOnline = echarts.init(document.getElementById('totalShowOnline'))
|
|
|
+ this.totalOneEchartsOnline.setOption({
|
|
|
tooltip: { trigger: 'axis' },
|
|
|
legend: { data: pauseArrOnline },
|
|
|
grid: { containLabel: true },
|
|
@@ -839,9 +869,9 @@ export default {
|
|
|
yAxis: { type: 'value' },
|
|
|
series: this.seriesDealOthersOnline
|
|
|
})
|
|
|
- window.onresize = () => {
|
|
|
- totalOneEchartsOnline.resize()
|
|
|
- }
|
|
|
+ window.addEventListener('resize', () => {
|
|
|
+ this.totalOneEchartsOnline.resize()
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
@@ -853,7 +883,7 @@ export default {
|
|
|
// 业务线table数据
|
|
|
allCountAndProlemGet() {
|
|
|
this.guild = this.treeGuide(this.dealWithBusinessDate, this.pauseTreeNode.id, this.pauseTreeNode.type).join('/')
|
|
|
- const pretermitSearch = { id: this.pauseTreeNode.id, type: this.pauseKey, startTime: this.timeInterval[0], endTime: this.timeInterval[1] }
|
|
|
+ const pretermitSearch = { id: this.pauseTreeNode.id, type: this.pauseTreeNode.type, startTime: this.timeInterval[0], endTime: this.timeInterval[1] }
|
|
|
axios.all([getOnlineAllCount(pretermitSearch), getOnlineProblem(pretermitSearch), getOnlineVitium(pretermitSearch)]).then(axios.spread((resAllCount, resProblem, resDefeat) => {
|
|
|
this.onlineProcess = resAllCount.code === 0 ? resAllCount.data : ''
|
|
|
this.problemData = resProblem.code === 0 ? resProblem.data : ''
|
|
@@ -922,7 +952,7 @@ export default {
|
|
|
const { href } = this.$router.resolve({
|
|
|
name: '上线过程',
|
|
|
query: {
|
|
|
- id: this.pauseTreeNode.id, type: this.pauseKey, dataType: e, startTime: this.timeInterval[0], endTime: this.timeInterval[1]
|
|
|
+ id: this.pauseTreeNode.id, type: this.pauseTreeNode.type, dataType: e, startTime: this.timeInterval[0], endTime: this.timeInterval[1]
|
|
|
}
|
|
|
})
|
|
|
window.open(href, '_blank')
|
|
@@ -942,7 +972,7 @@ export default {
|
|
|
const { href } = this.$router.resolve({
|
|
|
name: '缺陷过程',
|
|
|
query: {
|
|
|
- id: this.pauseTreeNode.id, type: this.pauseKey, startTime: this.timeInterval[0], endTime: this.timeInterval[1]
|
|
|
+ id: this.pauseTreeNode.id, type: this.pauseTreeNode.type, startTime: this.timeInterval[0], endTime: this.timeInterval[1]
|
|
|
}
|
|
|
})
|
|
|
window.open(href, '_blank')
|