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)