Commit 54b3b245 authored by xxx's avatar xxx

1

parent 064f4148
......@@ -44,3 +44,4 @@ export const apiCpointQuery = '/api/Cpoint'; //获取关键控制点坐标
export const apiPathmapNavigationQuery = '/api/Pathmap/navigation'; //获取关键控制点坐标
export const apiManmadesRealCarQuery = '/api/Manmades/RealCar'; //点击车辆小弹框
export const apiManmadesChanJxQuery = '/api/Manmades/ChanJx'; //铲车绩效上面
export const apiManmadesChanCheRealQuery = '/api/Manmades/ChanCheReal'; //铲车车辆信息实时数据
......@@ -69,7 +69,7 @@
<script>
import { httpGet, httpPostForJson, putForJson, httpDelForJson} from "@/common/httpBean.js"
import {vehicleInformationQuery,apiManmadesRealQuery} from "@/axios/api.js"
import {vehicleInformationQuery,apiManmadesRealQuery,apiManmadesChanCheRealQuery} from "@/axios/api.js"
export default {
data() {
......@@ -87,7 +87,7 @@ export default {
}
},
methods: {
loadData(value) {
loadData(value,carclass) {
let byValue = value;
this.showDecide = true;
httpGet(vehicleInformationQuery,{number:byValue}).then((res) => {
......@@ -99,11 +99,20 @@ export default {
}
}
});
httpGet(apiManmadesRealQuery,{number:byValue}).then((res) => {
if(res.length != 0){
this.realTimeData = res[0];
}
});
if(carclass == '铲车'){
httpGet(apiManmadesChanCheRealQuery,{number:byValue}).then((res) => {
if(res.code == 200 && res.data.length != 0){
this.realTimeData = res.data[0];
}
});
}else{
httpGet(apiManmadesRealQuery,{number:byValue}).then((res) => {
if(res.length != 0){
this.realTimeData = res[0];
}
});
}
},
carInCloseFn(){
this.showDecide = false;
......
......@@ -388,7 +388,7 @@ export default {
this.$refs.personalCenterMethod.personalCenCloseFn();
this.$refs.smallWindowMethod.carInCloseFn();
let byValue = this.carnumber;
this.$refs.carInformationMethod.loadData(byValue);
this.$refs.carInformationMethod.loadData(byValue,this.carclass);
}else{
this.selectFunction = 0;
this.$refs.voiceApplicationMethod.voiceAppCloseFn();
......
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