diff --git a/src/api/garden/monitoring.js b/src/api/garden/monitoring.js index 4bb5f8f..55c6989 100644 --- a/src/api/garden/monitoring.js +++ b/src/api/garden/monitoring.js @@ -793,13 +793,19 @@ export const getdoorData = (area, modelId) => { }; //取消报警 - 20221011 +// export const getCancelWarn = (id) => { +// return request({ +// url: "/api/blade-desk/equipment/warn-his/hideHomepage-warn", +// method: "get", +// params: { +// id, +// }, +// }); +// }; export const getCancelWarn = (id) => { return request({ - url: "/api/blade-desk/equipment/warn-his/hideHomepage-warn", + url: "/api/blade-desk/equipment/warn-his/confirm-warn?id="+id, method: "get", - params: { - id, - }, }); }; //报警记录 - 电 @@ -881,4 +887,11 @@ export const getCameraWarnList = (param) => { method: "get", params: param, }); +}; +//报警记录 - 恢复 +export const recoveryWarn = (id) => { + return request({ + url: "/api/blade-desk/equipment/warn-his/recovery-warn?id="+id, + method: "get", + }); }; \ No newline at end of file diff --git a/src/api/source/total.js b/src/api/source/total.js index 5897e6d..eb32d23 100644 --- a/src/api/source/total.js +++ b/src/api/source/total.js @@ -286,12 +286,13 @@ export const getCar = () => { }); }; // 安防态势 -export const getSecurityStatus = (area) => { +export const getSecurityStatus = (area, type) => { return request({ url: "/api/blade-desk/analysis/overview/security-status", method: "get", params: { area, + type, }, }); }; diff --git a/src/components/monitoring/conditioner.vue b/src/components/monitoring/conditioner.vue index 0c2681b..4dcf4cc 100644 --- a/src/components/monitoring/conditioner.vue +++ b/src/components/monitoring/conditioner.vue @@ -52,12 +52,17 @@
确认告警
+ + 告警恢复 +
+ | +
确认告警
- + | +
告警恢复
@@ -154,14 +153,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -374,6 +372,7 @@ import { getDoorSbList, getDoorWarnList, //报警列表 getCancelWarn, //确认告警 + recoveryWarn,//恢复告警 } from "@/api/garden/monitoring"; import backHome from "./backHome"; export default { @@ -656,11 +655,19 @@ export default { }, methods: { //确认告警 - 重新查询告警列表 - doCancelWarn(id) { - getCancelWarn(id).then((res) => { - this.getDoorWarnList2(); + doCancelWarn(item) { + getCancelWarn(item.id).then((res) => { + // this.getDoorWarnList2(); + item.confirmStatus = 1; }); }, + //恢复告警 + doRecoveryWarn(item) { + recoveryWarn(item.id).then((res) => { + // this.getFiredWarnList(); + item.warnStatus = 2; + }) + }, //跳转历史告警列表 goMoreWarnList() { const routerUrl = this.$router.resolve({ diff --git a/src/components/monitoring/electricity.vue b/src/components/monitoring/electricity.vue index c22388f..70ef29d 100644 --- a/src/components/monitoring/electricity.vue +++ b/src/components/monitoring/electricity.vue @@ -57,14 +57,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -375,6 +374,7 @@ import { mapUpdate, mapViewerCamera, setCameraStatus, + recoveryWarn,//恢复告警 } from "../../util/bfHelper"; import * as commonValue from "../../util/commonValue"; import echarts from "./echarts1"; @@ -642,9 +642,17 @@ export default { }, methods: { //确认告警 - 重新查询告警列表 - doCancelWarn(id) { - getCancelWarn(id).then((res) => { - this.getElectricWarnList(); + doCancelWarn(item) { + getCancelWarn(item.id).then((res) => { + // this.getElectricWarnList(); + item.confirmStatus = 1; + }) + }, + //恢复告警 + doRecoveryWarn(item) { + recoveryWarn(item.id).then((res) => { + // this.getFiredWarnList(); + item.warnStatus = 2; }) }, //跳转历史告警列表 diff --git a/src/components/monitoring/firefighting.vue b/src/components/monitoring/firefighting.vue index 58e5176..1c2c2fd 100644 --- a/src/components/monitoring/firefighting.vue +++ b/src/components/monitoring/firefighting.vue @@ -80,14 +80,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -116,14 +115,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -252,6 +250,7 @@ import { getFightWarn, getFiredWarnList, //告警列表 getCancelWarn, //确认告警 + recoveryWarn,//恢复告警 } from "@/api/garden/monitoring"; import backHome from "./backHome"; export default { @@ -511,11 +510,18 @@ export default { }, methods: { //确认告警 - 重新查询告警列表 - doCancelWarn(id) { - getCancelWarn(id).then((res) => { - this.getFiredWarnList(); + doCancelWarn(item) { + getCancelWarn(item.id).then((res) => { + // this.getFiredWarnList(); + item.confirmStatus = 1; }); }, + //恢复告警 + doRecoveryWarn(item) { + recoveryWarn(item.id).then((res) => { + item.warnStatus = 2; + }) + }, //跳转历史告警列表 goMoreWarnList() { // this.$router.push({ path: '/equipment/warnHistory' }); diff --git a/src/components/monitoring/lift.vue b/src/components/monitoring/lift.vue index 61292c6..bd07003 100644 --- a/src/components/monitoring/lift.vue +++ b/src/components/monitoring/lift.vue @@ -48,10 +48,15 @@+
确认告警
+ + 告警恢复 +
+ | +
确认告警
- + | +
告警恢复
@@ -112,11 +111,16 @@+ | +
确认告警
+ + 告警恢复 +
+ | +
确认告警
- - - 告警恢复 -
+ | ++ + 告警恢复 +
+ | +
确认告警
- + | +
告警恢复
@@ -123,14 +122,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -266,6 +264,7 @@ import { getWallGK, getFenceWarnList, //报警列表 getCancelWarn, //确认告警 + recoveryWarn,//恢复告警 } from "@/api/garden/monitoring"; export default { props: { @@ -800,11 +799,18 @@ export default { }, methods: { //确认告警 - 重新查询告警列表 - doCancelWarn(id) { - getCancelWarn(id).then((res) => { - this.getFenceWarnList(); + doCancelWarn(item) { + getCancelWarn(item.id).then((res) => { + // this.getFenceWarnList(); + item.confirmStatus = 1; }); }, + //恢复告警 + doRecoveryWarn(item) { + recoveryWarn(item.id).then((res) => { + item.warnStatus = 2; + }) + }, //跳转历史告警列表 goMoreWarnList() { const routerUrl = this.$router.resolve({ diff --git a/src/components/monitoring/warm.vue b/src/components/monitoring/warm.vue index b6ca66c..aae0943 100644 --- a/src/components/monitoring/warm.vue +++ b/src/components/monitoring/warm.vue @@ -189,14 +189,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -225,14 +224,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -362,6 +360,7 @@ import { getWarmMeterData, getHeatWarnList, //告警列表 getCancelWarn, //关闭报警 + recoveryWarn,//恢复告警 } from "@/api/garden/monitoring"; import backHome from "./backHome"; export default { @@ -588,11 +587,18 @@ export default { }, methods: { //确认告警 - 重新查询告警列表 - doCancelWarn(id) { - getCancelWarn(id).then((res) => { - this.getHeatWarnList(); + doCancelWarn(item) { + getCancelWarn(item.id).then((res) => { + // this.getHeatWarnList(); + item.confirmStatus = 1; }); }, + //恢复告警 + doRecoveryWarn(item) { + recoveryWarn(item.id).then((res) => { + item.warnStatus = 2; + }) + }, //跳转历史告警列表 goMoreWarnList() { // this.$router.push({ path: '/equipment/warnHistory' }); diff --git a/src/components/monitoring/water.vue b/src/components/monitoring/water.vue index c3445dd..addaffe 100644 --- a/src/components/monitoring/water.vue +++ b/src/components/monitoring/water.vue @@ -186,14 +186,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -220,14 +219,13 @@+ | +
确认告警
- + | +
告警恢复
@@ -351,6 +349,7 @@ import { getWaterMeterData, getWaterWarnList, //报警列表 getCancelWarn, //关闭报警 + recoveryWarn,//恢复告警 } from "@/api/garden/monitoring"; import backHome from "./backHome"; export default { @@ -566,11 +565,18 @@ export default { beforeDestroy() { }, methods: { //确认告警 - 重新查询告警列表 - doCancelWarn(id) { - getCancelWarn(id).then((res) => { - this.getWaterWarnList(); + doCancelWarn(item) { + getCancelWarn(item.id).then((res) => { + // this.getWaterWarnList(); + item.confirmStatus = 1; }); }, + //恢复告警 + doRecoveryWarn(item) { + recoveryWarn(item.id).then((res) => { + item.warnStatus = 2; + }) + }, //跳转历史告警列表 goMoreWarnList() { // this.$router.push({ path: '/equipment/warnHistory' }); diff --git a/src/views/equipment/warnHistory.vue b/src/views/equipment/warnHistory.vue index 7ef3539..e43a7a8 100644 --- a/src/views/equipment/warnHistory.vue +++ b/src/views/equipment/warnHistory.vue @@ -65,11 +65,14 @@ var DIC = { alarmType: [{ - label: '安全报警', - value: '1' + label: '无报警', + value: 0 + },{ + label: '事件报警', + value: 1 }, { - label: '系统报警', - value: '2' + label: '设备报警', + value: 2 }], aereaType:[{ label:'业务区', @@ -78,12 +81,12 @@ label:'塔台', value:'2' }], - recoveryMethod:[{ + recoveryType:[{ label: '手动', - value: '1' + value: 1 }, { label: '自动', - value: '2' + value: 0 }] } export default { @@ -141,10 +144,12 @@ searchslot:true, search:true, type:"select", - hide:true, + dicData: DIC.aereaType, + // hide:true, row: false, display: false, - viewDisplay:false + viewDisplay:false, + align:'center', }, { label: "报警类型", @@ -187,19 +192,20 @@ }, { label: "恢复方式", - prop: "recoveryMethod", + prop: "recoveryType", + dicData: DIC.recoveryType, type:"select", - dicData: DIC.recoveryMethod, - align:'center', + align:'center', }, { - label: "操作人", - prop: "user", + label: "恢复人", + prop: "recoveryPerson", align:'center', }, { - label: "操作时间", - prop: "time", + label: "恢复时间", + prop: "recoveryDate", + type:'datetime', align:'center', }, ] diff --git a/src/views/garden/generalizePattern.vue b/src/views/garden/generalizePattern.vue index a10a47a..3022fea 100644 --- a/src/views/garden/generalizePattern.vue +++ b/src/views/garden/generalizePattern.vue @@ -185,24 +185,24 @@ /> 安防态势
-
-