Commit e2f0fc6e authored by xxx's avatar xxx

1

parent b99fd2d9
......@@ -14,8 +14,9 @@ export const manualSchedulingQuery = '/api/Manmade'; //获取人工调度信息
export const vehicleInformationQuery = '/api/CarPeop'; //获取车辆信息
export const vehicleInformationUpdate = '/api/CarPeop'; //修改车辆信息
export const apiCarClassQuery = '/api/CarClass'; //获取车辆类型
export const vehicleRealTimeQuery = '/api/CarReal'; //获取车辆信息实时数据
export const vehicleRealTimeQuery2 = '/api/CarPeop/realtime'; //获取车辆信息实时数据
export const vehicleRealTimeQuery = '/api/CarReal'; //获取车辆信息实时数据(不用)
export const vehicleRealTimeQuery2 = '/api/CarPeop/realtime'; //获取车辆信息实时数据(不用)
export const apiManmadesRealQuery = '/api/Manmades/Real'; //获取车辆信息实时数据(使用)
export const personalCenterInforQuery = '/api/Drivers'; //获取个人信息
export const failureDeclarationAdd = '/api/Hitch'; //故障申报提交
export const achievementStatisticsQuery = '/api/DispatchReal'; //获取绩效统计——司机考核
......
......@@ -69,7 +69,7 @@
<script>
import { httpGet, httpPostForJson, putForJson, httpDelForJson} from "@/common/httpBean.js"
import {vehicleInformationQuery,vehicleRealTimeQuery2} from "@/axios/api.js"
import {vehicleInformationQuery,apiManmadesRealQuery} from "@/axios/api.js"
export default {
data() {
......@@ -86,7 +86,6 @@ export default {
},
}
},
mounted() {},
methods: {
loadData(value) {
let byValue = value;
......@@ -100,9 +99,9 @@ export default {
}
}
});
httpGet(vehicleRealTimeQuery2,{number:byValue}).then((res) => {
if(res.code == 200){
this.realTimeData = res.data;
httpGet(apiManmadesRealQuery,{number:byValue}).then((res) => {
if(res.length != 0){
this.realTimeData = res[0];
}
});
},
......
......@@ -29,7 +29,7 @@
<script>
import { httpGet, httpPostForJson, putForJson, httpDelForJson} from "@/common/httpBean.js"
import {vehicleRealTimeQuery2} from "@/axios/api.js"
import {apiManmadesRealQuery} from "@/axios/api.js"
export default {
data() {
......@@ -40,15 +40,14 @@ export default {
personalName:'',
}
},
mounted() { },
methods: {
loadData(carnumber) {
this.showDecide = true;
this.carnumber = carnumber;
//获取实时数据
httpGet(vehicleRealTimeQuery2,{number:this.carnumber}).then((res) => {
if(res.code == 200){
this.carInformationData2 = res.data.content[0];
httpGet(apiManmadesRealQuery,{number:this.carnumber}).then((res) => {
if(res.length != 0){
this.carInformationData2 = res[0];
}
});
},
......
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