|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="globalBox">
|
|
|
|
|
<div class="setBox">
|
|
|
|
|
<el-card class="box-card globalDrawLine">
|
|
|
|
|
<!-- <el-card class="box-card globalDrawLine">
|
|
|
|
|
<div slot="header" class="clearfix">
|
|
|
|
|
<span>线缆开启关闭</span>
|
|
|
|
|
</div>
|
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
>
|
|
|
|
|
</el-switch>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-card> -->
|
|
|
|
|
<el-card class="box-card globalprob">
|
|
|
|
|
<div slot="header" class="clearfix">
|
|
|
|
|
<span>设置告警可信度</span>
|
|
|
|
@ -37,7 +37,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { getAlarmTypeList } from "@/utils/api/index";
|
|
|
|
|
import { getAlarmTypeList, updateAlarmTypeList } from "@/utils/api/index";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {},
|
|
|
|
@ -59,6 +59,20 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
setProb() {
|
|
|
|
|
console.log(this.probList);
|
|
|
|
|
updateAlarmTypeList({ list: this.probList })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: "告警可信度设置成功",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|