Commit 79f06c65 authored by xxx's avatar xxx

1

parent df74658f
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
<div class="carInFrom_content"> <div class="carInFrom_content">
<div>运行状态:</div> <div>运行状态:</div>
<div class="carInFrom_input">{{realTimeData.status == 0 ? '运行中' : realTimeData.status == 1 ? '空闲' : '暂无状态'}}</div> <div class="carInFrom_input">{{realTimeData.status == 0 ? '空闲' : realTimeData.status == 1 ? '运行中' : '暂无状态'}}</div>
</div> </div>
<div class="carInFrom_content"> <div class="carInFrom_content">
<div>运行时长:</div> <div>运行时长:</div>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<span>今日装车次数:</span><span style="color: rgb(24,228,240);">{{carInformationData2.carNum ? carInformationData2.carNum : ''}}</span> <span>今日装车次数:</span><span style="color: rgb(24,228,240);">{{carInformationData2.carNum ? carInformationData2.carNum : ''}}</span>
</div> </div>
<div> <div>
<span>运重状态:</span><span style="color: rgb(24,228,240);">{{carInformationData2.status == 0 ? '运行中' : carInformationData2.status == 1 ? '空闲' : '暂无状态'}}</span> <span>运重状态:</span><span style="color: rgb(24,228,240);">{{carInformationData2.status == 0 ? '空闲' : carInformationData2.status == 1 ? '运行中' : '暂无状态'}}</span>
</div> </div>
<div> <div>
<span>运载种类:</span><span style="color: rgb(24,228,240);">{{carInformationData2.carclass ? carInformationData2.carclass : ''}}</span> <span>运载种类:</span><span style="color: rgb(24,228,240);">{{carInformationData2.carclass ? carInformationData2.carclass : ''}}</span>
......
...@@ -164,12 +164,21 @@ export default { ...@@ -164,12 +164,21 @@ export default {
if(res1.code == 200){ if(res1.code == 200){
res1.data.forEach((item,index) => { res1.data.forEach((item,index) => {
this.notifyPromise = this.notifyPromise.then(this.$nextTick).then(()=>{ this.notifyPromise = this.notifyPromise.then(this.$nextTick).then(()=>{
this.$notify({ if(this.carclass == '铲车' && item.type != 3){
title: (item.type == 1 ? "限入" : item.type == 2 ? '限出' : (item.type == 3 && this.carclass != '铲车') ? '无故停车' : item.type == 4 ? '防碰撞' : '') + (item.areaName == undefined ? '' : item.areaName) + '报警', this.$notify({
type: 'warning', title: (item.type == 1 ? "限入" : item.type == 2 ? '限出' : item.type == 4 ? '防碰撞' : '') + (item.areaName == undefined ? '' : item.areaName) + '报警',
duration: 10000, type: 'warning',
dangerouslyUseHTMLString: true, duration: 10000,
}); dangerouslyUseHTMLString: true,
});
}else if(this.carclass != '铲车'){
this.$notify({
title: (item.type == 1 ? "限入" : item.type == 2 ? '限出' : (item.type == 3 && this.carclass != '铲车') ? '无故停车' : item.type == 4 ? '防碰撞' : '') + (item.areaName == undefined ? '' : item.areaName) + '报警',
type: 'warning',
duration: 10000,
dangerouslyUseHTMLString: true,
});
}
}); });
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment