Commit e4acf669 authored by xxx's avatar xxx

1

parent 271d1b1c
......@@ -159,6 +159,11 @@ export default {
that.addGraphic_01(graphicLayer,item,that.weilanName[index],that.areaColorData[index]);
})
//webgl渲染失败后,刷新页面
map.on(mars3d.EventType.renderError,function(event){
window.location.reload();
});
//实时位置1
// that.allCarInforData.forEach((item,index)=>{
// var graphicLayer4 = new mars3d.layer.GraphicLayer();
......
......@@ -262,6 +262,11 @@ export default {
that.addDemoGraphic1(graphicLayer2,item.lon,item.lat,item.alarmTime,item.time);
})
//webgl渲染失败后,刷新页面
map.on(mars3d.EventType.renderError,function(event){
window.location.reload();
});
//画测距
//graphicLayerPolyline = new mars3d.layer.GraphicLayer();
//that.bindLayerContextMenu(graphicLayerPolyline);
......
......@@ -238,6 +238,11 @@ export default {
// initGraphicManager(graphicLayer1,item);
//this.addGraphic_02(graphicLayer1,this.persons);
//webgl渲染失败后,刷新页面
map.on(mars3d.EventType.renderError,function(event){
window.location.reload();
});
// 抛出事件
this.$emit('onload', map)
},
......
......@@ -317,6 +317,11 @@
initLayerManager(graphicLayer);
that.addDemoGraphic2(graphicLayer,item);
})
//webgl渲染失败后,刷新页面
map.on(mars3d.EventType.renderError,function(event){
window.location.reload();
});
// 抛出事件
this.$emit('onload', map)
......
......@@ -25,11 +25,11 @@
<div>今日效率</div>
<div class="ForkliftDynamicContent1_son1">
{{
forkliftkDynamicListData.workTime ?
forkliftkDynamicListData.workTime != 0 ?
(forkliftkDynamicListData.rate ?
(parseFloat(forkliftkDynamicListData.rate) / parseFloat(forkliftkDynamicListData.workTime)).toFixed(0)
: 0)
: 0
: (forkliftkDynamicListData.rate == 0) ? 0 : 100
}}%
</div>
</div>
......
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