Commit ff4b80f5 authored by caicaicai's avatar caicaicai

修改

parent d4ac8971
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<div id="centerDiv" class="mapcontainer2"> <div id="centerDiv" class="mapcontainer2">
<mars3dViewerMap :url="configUrl" @onload="onMapload" ref="mars3dViewerMapMethod" :key="shuaxinTimer"/> <mars3dViewerMap :url="configUrl" @onload="onMapload" ref="mars3dViewerMapMethod" :key="shuaxinTimer"/>
</div> </div>
<div class="tishiTextStyle" v-if="tishiTextShow">请选择车辆查看轨迹</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -70,6 +71,7 @@ export default { ...@@ -70,6 +71,7 @@ export default {
areaInformationData:[], areaInformationData:[],
shuaxinTimer:null, shuaxinTimer:null,
playSpeedNum:5, playSpeedNum:5,
tishiTextShow:true,
} }
}, },
mounted() { mounted() {
...@@ -84,6 +86,7 @@ export default { ...@@ -84,6 +86,7 @@ export default {
let that = this; let that = this;
HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => { HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => {
if(res.code == 200){ if(res.code == 200){
this.tishiTextShow = false;
this.shuaxinTimer = new Date().getTime(); this.shuaxinTimer = new Date().getTime();
that.$refs.mars3dViewerMapMethod.getCoordinate(res.data.content[0].equipmentName,res.data.content[0].number,that.playSpeedNum,that.query.bTime,that.query.eTime); that.$refs.mars3dViewerMapMethod.getCoordinate(res.data.content[0].equipmentName,res.data.content[0].number,that.playSpeedNum,that.query.bTime,that.query.eTime);
} }
...@@ -91,7 +94,6 @@ export default { ...@@ -91,7 +94,6 @@ export default {
}, },
// 重置搜索 // 重置搜索
clearLimit(){ clearLimit(){
let that = this;
this.query = { this.query = {
number:'', number:'',
bTime:'', bTime:'',
...@@ -100,8 +102,9 @@ export default { ...@@ -100,8 +102,9 @@ export default {
}; };
this.playSpeedNum = 5; this.playSpeedNum = 5;
this.loadData(); this.loadData();
this.tishiTextShow = true;
this.shuaxinTimer = new Date().getTime(); this.shuaxinTimer = new Date().getTime();
that.$refs.mars3dViewerMapMethod.getCoordinate('','',5,'',''); this.$refs.mars3dViewerMapMethod.getCoordinate('','',5,'','');
}, },
//获取数据 //获取数据
loadData() { loadData() {
...@@ -132,6 +135,7 @@ export default { ...@@ -132,6 +135,7 @@ export default {
}else{ }else{
HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => { HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => {
if(res.code == 200){ if(res.code == 200){
this.tishiTextShow = false;
this.shuaxinTimer = new Date().getTime(); this.shuaxinTimer = new Date().getTime();
that.$refs.mars3dViewerMapMethod.getCoordinate(res.data.content[0].equipmentName,res.data.content[0].number,parseFloat(numSpeed1),that.query.bTime,that.query.eTime); that.$refs.mars3dViewerMapMethod.getCoordinate(res.data.content[0].equipmentName,res.data.content[0].number,parseFloat(numSpeed1),that.query.bTime,that.query.eTime);
} }
...@@ -187,7 +191,17 @@ export default { ...@@ -187,7 +191,17 @@ export default {
height: 65.5vh; height: 65.5vh;
overflow: hidden; overflow: hidden;
} }
.tishiTextStyle{
font-size: 30px;
color: rgb(24,144,255);
font-weight: 600;
letter-spacing: 3px;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%);
}
} }
</style> </style>
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