|
|
@@ -39,27 +39,35 @@ const durationList = [
|
|
|
const columns = [
|
|
|
{
|
|
|
title: '名称',
|
|
|
- dateIndex: ''
|
|
|
+ dataIndex: 'warnLabel'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '告警描述',
|
|
|
+ dataIndex: 'warnDescription'
|
|
|
},
|
|
|
{
|
|
|
title: '级别',
|
|
|
- dateIndex: ''
|
|
|
+ dataIndex: 'warnSeverity'
|
|
|
},
|
|
|
{
|
|
|
title: '资源类型',
|
|
|
- dateIndex: ''
|
|
|
+ dataIndex: 'warnType'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '资源id',
|
|
|
+ dataIndex: 'entityId'
|
|
|
},
|
|
|
{
|
|
|
- title: '资源名称',
|
|
|
- dateIndex: ''
|
|
|
+ title: '发生时间',
|
|
|
+ dataIndex: 'createAt'
|
|
|
},
|
|
|
{
|
|
|
- title: '告警详情',
|
|
|
- dateIndex: ''
|
|
|
+ title: '告警状态',
|
|
|
+ dataIndex: 'status'
|
|
|
},
|
|
|
{
|
|
|
- title: '发生时间',
|
|
|
- dateIndex: ''
|
|
|
+ title: '操作',
|
|
|
+ key: 'action'
|
|
|
}
|
|
|
]
|
|
|
|
|
|
@@ -92,7 +100,8 @@ const getWarnPage = async () => {
|
|
|
const { data, sum } = await DevOpsController.pageWarn(queryParams)
|
|
|
state.loading = false
|
|
|
state.dataSource = data
|
|
|
- state.dataSource = sum
|
|
|
+ queryParams.total = sum
|
|
|
+ console.log(state.dataSource)
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|