Commit b384a68c authored by xxx's avatar xxx

1

parent 907e6c72
...@@ -23,8 +23,13 @@ Vue.prototype.mars3d = mars3d ...@@ -23,8 +23,13 @@ Vue.prototype.mars3d = mars3d
Vue.prototype.Cesium = mars3d.Cesium Vue.prototype.Cesium = mars3d.Cesium
var map; var map;
//画导航线
var graphicLayerZ; var graphicLayerZ;
var graphicZ; var graphicZ;
//路障展示
var graphicLayerR;
var graphicR;
export default { export default {
name: 'mars3dViewer', name: 'mars3dViewer',
...@@ -44,6 +49,8 @@ export default { ...@@ -44,6 +49,8 @@ export default {
realjd:140.71212, realjd:140.71212,
realwd:52.158, realwd:52.158,
carnumber:'', carnumber:'',
//装车点卸车点数据
mapControlPointData:[],
} }
}, },
...@@ -106,8 +113,16 @@ export default { ...@@ -106,8 +113,16 @@ export default {
}) })
}) })
this.allCarInforData = arr11; this.allCarInforData = arr11;
//获取所有关键控制点信息
httpGet(apiCpointQuery,{size:9999}).then((res) => {
if(res.code == 200){
this.mapControlPointData = res.data.content;
this.getCoordinate(); this.getCoordinate();
} }
})
}
}); });
} }
}); });
...@@ -271,7 +286,7 @@ export default { ...@@ -271,7 +286,7 @@ export default {
}, 2500) }, 2500)
}, },
// 装车箭头线 graphicLayer.removeGraphic(graphic); //装车箭头线 graphicLayer.removeGraphic(graphic);
addArrowGraphic3(boo,points) { addArrowGraphic3(boo,points) {
graphicLayerZ = new mars3d.layer.GraphicLayer(); graphicLayerZ = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayerZ); map.addLayer(graphicLayerZ);
...@@ -291,6 +306,10 @@ export default { ...@@ -291,6 +306,10 @@ export default {
}else{ }else{
graphicLayerZ.removeGraphic(graphicZ); graphicLayerZ.removeGraphic(graphicZ);
} }
},
//路障展示
roadblockShowFn(arr){
}, },
// 在图层绑定Popup弹窗 // 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer,number) { bindLayerPopup(graphicLayer,number) {
......
...@@ -169,6 +169,8 @@ export default { ...@@ -169,6 +169,8 @@ export default {
indexSituationPic1:indexSituationPic1, indexSituationPic1:indexSituationPic1,
//语音组件显示 //语音组件显示
audioTishiViewShow:false, audioTishiViewShow:false,
//路障申报数量
roadblockNum:0,
} }
}, },
mounted(){ mounted(){
...@@ -219,6 +221,10 @@ export default { ...@@ -219,6 +221,10 @@ export default {
} }
} }
}); });
//获取路障信息failureDeclarationAdd
httpGet(failureDeclarationAdd,{fault:'路障申报',createTime:this.currentTime()}).then((res) => {
console.log(res);
})
}, 8000) }, 8000)
...@@ -235,7 +241,7 @@ export default { ...@@ -235,7 +241,7 @@ export default {
this.carnumber = res.data.content[0].car; this.carnumber = res.data.content[0].car;
this.personalName = res.data.content[0].name; this.personalName = res.data.content[0].name;
//展示二维地图 //展示二维地图
this.$refs.mars3dViewerMapMethod.getCarInforFn(this.carnumber); //this.$refs.mars3dViewerMapMethod.getCarInforFn(this.carnumber);
//开启接受订单 //开启接受订单
this.$refs.startOrderReceivingMethod.loadData(this.carnumber); this.$refs.startOrderReceivingMethod.loadData(this.carnumber);
//开启语音接收 //开启语音接收
...@@ -664,7 +670,40 @@ export default { ...@@ -664,7 +670,40 @@ export default {
//删除语音 //删除语音
indexListeningDelFn(index){ indexListeningDelFn(index){
this.$refs.voiceApplicationMethod.selectDeleteSituation(index); this.$refs.voiceApplicationMethod.selectDeleteSituation(index);
} },
//获取当前时间
currentTime(){
var date = new Date();
var year = date.getFullYear(); //年 ,从 Date 对象以四位数字返回年份
var month = date.getMonth() + 1; //月 ,从 Date 对象返回月份 (0 ~ 11) ,date.getMonth()比实际月份少 1 个月
var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23)
var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式
if (month >= 1 && month <= 9) {
month = "0" + month;
}
//修改日期格式
if (day >= 0 && day <= 9) {
day = "0" + day;
}
//修改小时格式
if (hours >= 0 && hours <= 9) {
hours = "0" + hours;
}
//修改分钟格式
if (minutes >= 0 && minutes <= 9) {
minutes = "0" + minutes;
}
//修改秒格式
if (seconds >= 0 && seconds <= 9) {
seconds = "0" + seconds;
}
//获取当前系统时间 格式(yyyy-mm-dd hh:mm:ss)
let currentFormatDate = year + "-" + month + "-" + day;
return currentFormatDate;
},
}, },
beforeDestroy(){ beforeDestroy(){
this.$refs.voiceApplicationMethod.xintiaoCloseFn(); this.$refs.voiceApplicationMethod.xintiaoCloseFn();
......
...@@ -49,7 +49,7 @@ module.exports = { ...@@ -49,7 +49,7 @@ module.exports = {
// }, // },
}, },
https: true, //https: true,
}, },
configureWebpack: { configureWebpack: {
plugins: [ plugins: [
......
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