|
@@ -8,17 +8,35 @@
|
|
|
<div class="itemBox onlineProblem" style="height: 470px">
|
|
|
<div class="titleLevel3 mb10">线上问题</div>
|
|
|
<el-row :gutter="10">
|
|
|
+ <el-col :span="11">
|
|
|
+ <el-row
|
|
|
+ v-for="(item, index) in [...mainData.onlineProblemList || []].filter((item, itemIndex)=> itemIndex !== 2)"
|
|
|
+ :key="index"
|
|
|
+ :span="12"
|
|
|
+ class="mb10"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ :style="{ cursor: item.label === '新增问题' && 'pointer'}"
|
|
|
+ @click.stop="onDetial('线上问题', item)"
|
|
|
+ >
|
|
|
+ <dataItem :item="item" />
|
|
|
+ </div>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+ <!-- 20210712日常: http://wiki.intra.xiaojukeji.com/pages/viewpage.action?pageId=629812523 -->
|
|
|
<el-col
|
|
|
- v-for="(item, index) in mainData.onlineProblemList"
|
|
|
- :key="index"
|
|
|
- :span="12"
|
|
|
+ v-if="mainData.onlineProblemList && mainData.onlineProblemList[2]"
|
|
|
+ :span="13"
|
|
|
class="mb10"
|
|
|
>
|
|
|
- <div
|
|
|
- :style="{ cursor: item.label == '新增问题' && 'pointer'}"
|
|
|
- @click.stop="onDetial('线上问题', item)"
|
|
|
- >
|
|
|
- <dataItem :item="item" />
|
|
|
+ <div @click.stop="onDetial('线上问题', mainData.onlineProblemList[2])">
|
|
|
+ <dataItem
|
|
|
+ :item="mainData.onlineProblemList[2]"
|
|
|
+ @subCountListClick="(subCountItem) => onDetial('线上问题', {
|
|
|
+ ...mainData.onlineProblemList[2],
|
|
|
+ subCountItem
|
|
|
+ })"
|
|
|
+ />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -297,7 +315,8 @@ export default {
|
|
|
},
|
|
|
// 组织线上问题表数据
|
|
|
getOnlineProblemList() {
|
|
|
- const { ImprovementsOverRate, depleteUnavailableTime, newOnlineProblems, onlineBreakRate } = this.datas.onlineProblemList
|
|
|
+ const { ImprovementsOverRate, // depleteUnavailableTime,
|
|
|
+ newOnlineProblems, onlineBreakRate } = this.datas.onlineProblemList
|
|
|
return [
|
|
|
{
|
|
|
...this.redObj,
|
|
@@ -308,15 +327,15 @@ export default {
|
|
|
'subTitle': newOnlineProblems.chainRatio,
|
|
|
'IdList': newOnlineProblems.idList
|
|
|
},
|
|
|
- {
|
|
|
- ...this.yellowObj,
|
|
|
- 'label': depleteUnavailableTime.label,
|
|
|
- 'title': depleteUnavailableTime.countStr,
|
|
|
- 'titleUnit': '分',
|
|
|
- 'subTitleUnit': 'rate',
|
|
|
- 'subTitle': depleteUnavailableTime.chainRatio,
|
|
|
- 'IdList': depleteUnavailableTime.IdList
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // ...this.yellowObj,
|
|
|
+ // 'label': depleteUnavailableTime.label,
|
|
|
+ // 'title': depleteUnavailableTime.countStr,
|
|
|
+ // 'titleUnit': '分',
|
|
|
+ // 'subTitleUnit': 'rate',
|
|
|
+ // 'subTitle': depleteUnavailableTime.chainRatio,
|
|
|
+ // 'IdList': depleteUnavailableTime.IdList
|
|
|
+ // },
|
|
|
{
|
|
|
...this.purpleObj,
|
|
|
'label': onlineBreakRate.label,
|
|
@@ -327,13 +346,14 @@ export default {
|
|
|
'IdList': onlineBreakRate.IdList
|
|
|
},
|
|
|
{
|
|
|
- ...this.greenObj,
|
|
|
+ ...this.yellowObj,
|
|
|
'label': ImprovementsOverRate.label,
|
|
|
'title': ImprovementsOverRate.countStr,
|
|
|
'titleUnit': '%',
|
|
|
'subTitleUnit': 'rate',
|
|
|
'subTitle': ImprovementsOverRate.chainRatio,
|
|
|
- 'IdList': ImprovementsOverRate.IdList
|
|
|
+ 'IdList': ImprovementsOverRate.IdList,
|
|
|
+ 'subCountList': ImprovementsOverRate.subCountList
|
|
|
}
|
|
|
]
|
|
|
},
|