维修工单审批页面添加报警详情跳转
This commit is contained in:
parent
e26a0d1daf
commit
dbb375a240
@ -42,6 +42,11 @@
|
|||||||
{{formData.patrolPlan}}
|
{{formData.patrolPlan}}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</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>
|
</el-form>
|
||||||
|
|
||||||
<!-- 维修报告 -->
|
<!-- 维修报告 -->
|
||||||
@ -88,7 +93,7 @@ import {getEquipCascader} from "@/api/system/equip/equipInfo";
|
|||||||
import {getComponentSelection} from "@/api/system/equip/componentInfo";
|
import {getComponentSelection} from "@/api/system/equip/componentInfo";
|
||||||
import {getCustomerSelection} from "@/api/system/baseData/customerInfo";
|
import {getCustomerSelection} from "@/api/system/baseData/customerInfo";
|
||||||
import {listSimpleUsers} from "@/api/system/user";
|
import {listSimpleUsers} from "@/api/system/user";
|
||||||
import {getProcessInstance} from "@/api/bpm/processInstance";
|
import {getEquipAlarmData} from "@/api/system/alarm/equipalarmdata";
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -149,13 +154,18 @@ export default {
|
|||||||
this.initFromData();
|
this.initFromData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
test(){
|
goAlarmDetails(alarmId){
|
||||||
this.disabled = true;
|
getEquipAlarmData(alarmId).then(res=>{
|
||||||
this.evaluateDisabled = true;
|
console.log("res===》",res);
|
||||||
},
|
if (res.data == null){
|
||||||
test1(){
|
this.$message.error("未查询到报警数据");
|
||||||
this.disabled = false;
|
}else {
|
||||||
this.evaluateDisabled = false;
|
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){
|
updateDisabled(status){
|
||||||
console.log(status)
|
console.log(status)
|
||||||
|
Loading…
Reference in New Issue
Block a user