|
@@ -83,6 +83,18 @@
|
|
|
delta:1
|
|
|
})
|
|
|
},1000)
|
|
|
+ }else if(res.status==="0" || res.status==="2"){
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ icon: false,
|
|
|
+ message: "该设备已经上报故障,即将返回上一页",
|
|
|
+ duration:1500
|
|
|
+ })
|
|
|
+ setTimeout(()=>{
|
|
|
+ uni.navigateBack({
|
|
|
+ delta:1
|
|
|
+ })
|
|
|
+ },1000)
|
|
|
}else{
|
|
|
this.model1.deviceName = res.name
|
|
|
this.model1.deviceNumber = res.barCode
|