Commit e4acf669 authored by xxx's avatar xxx

1

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