Commit 4f6e02dd authored by dupengyu's avatar dupengyu

告警值

parent abc46f41
...@@ -71,22 +71,16 @@ ...@@ -71,22 +71,16 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="alarmLevel" prop="alarmthreshold"
label="告警触发值" label="告警触发值"
width="150" width="150"
align="center" align="center"
> >
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<div> <div>
{{ {{ getAlarmLevelMenu(scope.row) }}
scope.row.alarmLevel == 0
? "1.5"
: scope.row.alarmLevel == 1
? "1.8"
: "2.0"
}}
</div> </div>
</template> </template> -->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="lateUploadTime" prop="lateUploadTime"
...@@ -264,6 +258,16 @@ export default { ...@@ -264,6 +258,16 @@ export default {
this.searchOption = this.$route.query; this.searchOption = this.$route.query;
}, },
methods: { 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) { eliminate(row) {
this.$confirm("是否将该项警告消除?", "提示", { this.$confirm("是否将该项警告消除?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
......
...@@ -10,7 +10,7 @@ const name = defaultSettings.title || '漏缆故障定位监测系统' // page t ...@@ -10,7 +10,7 @@ const name = defaultSettings.title || '漏缆故障定位监测系统' // page t
const port = process.env.port || process.env.npm_config_port || 8890 // dev port const port = process.env.port || process.env.npm_config_port || 8890 // dev port
// const href = 'http://101.126.159.207' // const href = 'http://101.126.159.207'
const href = 'http://127.0.0.1' const href = 'http://127.0.0.1'
// const href = 'http://192.168.0.120' // const href = 'http://192.168.0.115'
const rewriteDefaultConfig = { const rewriteDefaultConfig = {
changeOrigin: true, 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