feat: 所有表格的 alert列调整

This commit is contained in:
zhangyu
2022-02-25 14:31:36 +08:00
parent 2bd1fe4df4
commit 95926fcf6f
10 changed files with 179 additions and 18 deletions

View File

@@ -248,7 +248,9 @@ export default {
disabled: false
}]
},
searchTime: bus.getTimezontDateRange()
searchTime: bus.getTimezontDateRange(),
needAlertDaysData: true,
trendKey: 'ruleId',
}
},
methods: {
@@ -282,6 +284,25 @@ export default {
}
item.receiverShow = temp
})
if (this.needAlertDaysData) {
response.data.list.forEach(item => {
item.trendLoading = true
item.alertDaysData = [
{
metric: { priority: 'P1' },
values: [[0, 0]]
},
{
metric: { priority: 'P2' },
values: [[0, 0]]
},
{
metric: { priority: 'P3' },
values: [[0, 0]]
}
]
})
}
this.tableData = response.data.list
const globalSearchId = this.$store.getters.getGlobalSearchId
let detailViewRightObj = ''