|
|
|
|
@ -35,7 +35,12 @@ |
|
|
|
|
></el-table-column> |
|
|
|
|
<el-table-column label="名称" align="center" key="ruleName" prop="ruleName" width="120"/> |
|
|
|
|
<el-table-column label="描述" align="center" key="description" prop="description" width="240" :show-overflow-tooltip="true" /> |
|
|
|
|
<el-table-column label="触发条件" align="center" key="alertTemplate" prop="alertTemplate" width="240" :show-overflow-tooltip="true" /> |
|
|
|
|
<el-table-column label="触发条件" align="center" key="alertTemplate" prop="alertTemplate" width="240" :show-overflow-tooltip="true" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span v-if="scope.row.paramName">{{ findParamName(scope.row.tableName) }} {{ scope.row.operator }} {{ scope.row.compareValue }}</span> |
|
|
|
|
<span v-else>无</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="预警级别" align="center" key="severity" prop="severity" width="120" /> |
|
|
|
|
<el-table-column label="预警方式" align="center" key="alertWay" prop="alertWay" width="120" :show-overflow-tooltip="true" /> |
|
|
|
|
<el-table-column label="预警邮箱" align="center" key="alertStation" prop="alertStation" width="200" :show-overflow-tooltip="true" /> |
|
|
|
|
@ -288,6 +293,9 @@ export default { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
findParamName(tableName) { |
|
|
|
|
return this.byTableData.find(item => item.tableName == tableName).paramName |
|
|
|
|
}, |
|
|
|
|
/** 查询设备列表 */ |
|
|
|
|
getList() { |
|
|
|
|
this.loading = true |
|
|
|
|
|