预警通知列表接口对接
This commit is contained in:
@@ -13,13 +13,23 @@
|
||||
<a @click="openWarningDetail(scope.row)">{{ scope.row.name }}</a>
|
||||
</template>
|
||||
</d-column>
|
||||
<d-column field="alertMsg" header="详情"></d-column>
|
||||
<d-column field="alertMsg" header="详情">
|
||||
<template #default="scope">
|
||||
<span>{{ JSON.parse(scope.row.alertMsg)?.overview || ''}}</span>
|
||||
</template>
|
||||
</d-column>
|
||||
<d-column field="level" header="级别">
|
||||
<template #default="scope, text">
|
||||
<d-status v-if="scope.row.level === 4" type="error">危险</d-status>
|
||||
<d-status v-if="scope.row.level === 3" type="warning">严重</d-status>
|
||||
<d-status v-if="scope.row.level === 2" class="yellow-status">一般</d-status>
|
||||
<d-status v-if="scope.row.level === 1" type="running">提示</d-status>
|
||||
<template #default="scope">
|
||||
<d-status v-if="JSON.parse(scope.row.alertMsg)?.importance === '高'" type="error">
|
||||
{{ JSON.parse(scope.row.alertMsg)?.importance || ''}}
|
||||
</d-status>
|
||||
<d-status v-if="JSON.parse(scope.row.alertMsg)?.importance === '中'" type="warning">
|
||||
{{ JSON.parse(scope.row.alertMsg)?.importance || ''}}
|
||||
</d-status>
|
||||
<d-status v-if="JSON.parse(scope.row.alertMsg)?.importance === '低'" class="yellow-status">
|
||||
{{ JSON.parse(scope.row.alertMsg)?.importance || ''}}
|
||||
</d-status>
|
||||
<!-- <d-status v-if="scope.row.importance === 1" type="running">提示</d-status>-->
|
||||
</template>
|
||||
</d-column>
|
||||
<d-column field="status" header="状态">
|
||||
|
||||
Reference in New Issue
Block a user