【web】 预警规则-触发条件修改

dev
Wangxin 9 months ago
parent 1d7e39fd14
commit 506f6632a6
  1. 10
      ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/rules/index.vue

@ -35,7 +35,12 @@
></el-table-column> ></el-table-column>
<el-table-column label="名称" align="center" key="ruleName" prop="ruleName" width="120"/> <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="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="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="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" /> <el-table-column label="预警邮箱" align="center" key="alertStation" prop="alertStation" width="200" :show-overflow-tooltip="true" />
@ -288,6 +293,9 @@ export default {
}, },
methods: { methods: {
findParamName(tableName) {
return this.byTableData.find(item => item.tableName == tableName).paramName
},
/** 查询设备列表 */ /** 查询设备列表 */
getList() { getList() {
this.loading = true this.loading = true

Loading…
Cancel
Save