Commit 4f6e02dd authored by dupengyu's avatar dupengyu

告警值

parent abc46f41
......@@ -71,22 +71,16 @@
</template>
</el-table-column>
<el-table-column
prop="alarmLevel"
prop="alarmthreshold"
label="告警触发值"
width="150"
align="center"
>
<template slot-scope="scope">
<!-- <template slot-scope="scope">
<div>
{{
scope.row.alarmLevel == 0
? "1.5"
: scope.row.alarmLevel == 1
? "1.8"
: "2.0"
}}
{{ getAlarmLevelMenu(scope.row) }}
</div>
</template>
</template> -->
</el-table-column>
<el-table-column
prop="lateUploadTime"
......@@ -264,6 +258,16 @@ export default {
this.searchOption = this.$route.query;
},
methods: {
// getAlarmLevelMenu(e) {
// let num = "";
// if (e.alarmInfo && e.alarmInfo.length > 0) {
// num = e.alarmInfo.find((item) => item.level == e.alarmLevel).value;
// } else {
// num = e.alarmLevel == 0 ? "1.5" : e.alarmLevel == 1 ? "1.8" : "2.0";
// }
// return num;
// },
eliminate(row) {
this.$confirm("是否将该项警告消除?", "提示", {
confirmButtonText: "确定",
......
......@@ -10,7 +10,7 @@ const name = defaultSettings.title || '漏缆故障定位监测系统' // page t
const port = process.env.port || process.env.npm_config_port || 8890 // dev port
// const href = 'http://101.126.159.207'
const href = 'http://127.0.0.1'
// const href = 'http://192.168.0.120'
// const href = 'http://192.168.0.115'
const rewriteDefaultConfig = {
changeOrigin: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment