维修工单审批页面添加报警详情跳转

This commit is contained in:
xusd 2024-10-08 15:17:08 +08:00
parent e26a0d1daf
commit dbb375a240

View File

@ -42,6 +42,11 @@
{{formData.patrolPlan}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-if="formData.alarmId" label="报警详情:" prop="alarmId">
<el-button type="text" @click="goAlarmDetails(formData.alarmId)">查看报警详情</el-button>
</el-form-item>
</el-col>
</el-form>
<!-- 维修报告 -->
@ -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)