From dbb375a24047e22f599d9dbbc5dbd1a89d7cf06c Mon Sep 17 00:00:00 2001 From: xusd Date: Tue, 8 Oct 2024 15:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=B7=A5=E5=8D=95=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E6=8A=A5=E8=AD=A6?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenance/maintenanceInfo/details.vue | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue b/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue index a871241..cc3111c 100644 --- a/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue +++ b/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue @@ -42,6 +42,11 @@ {{formData.patrolPlan}} + + + 查看报警详情 + + @@ -88,7 +93,7 @@ import {getEquipCascader} from "@/api/system/equip/equipInfo"; import {getComponentSelection} from "@/api/system/equip/componentInfo"; import {getCustomerSelection} from "@/api/system/baseData/customerInfo"; import {listSimpleUsers} from "@/api/system/user"; -import {getProcessInstance} from "@/api/bpm/processInstance"; +import {getEquipAlarmData} from "@/api/system/alarm/equipalarmdata"; export default { @@ -149,13 +154,18 @@ export default { this.initFromData(); }, methods: { - test(){ - this.disabled = true; - this.evaluateDisabled = true; - }, - test1(){ - this.disabled = false; - this.evaluateDisabled = false; + goAlarmDetails(alarmId){ + getEquipAlarmData(alarmId).then(res=>{ + console.log("res===》",res); + if (res.data == null){ + this.$message.error("未查询到报警数据"); + }else { + this.$router.push({ + path: '/alarm/alarmdata', + query: {equipAlarmId: alarmId, customerName: res.data.customerName, modelName: res.data.modelName, equipNo:res.data.equipNo, alarmLevel: res.data.alarmLevel,} + }); + } + }) }, updateDisabled(status){ console.log(status)