Commit e3d4cfe5 authored by xxx's avatar xxx

1

parent 29477bde
......@@ -27,6 +27,7 @@ export const carsInforQuery = '/api/CarBreak'; //获取语音申请车辆
export const faultInforQuery = '/api/BreakClass'; //获取车辆故障类型
export const carRealTimeLocationQuery1 = '/gps/all'; //获取车辆实时位置
export const carRealTimeLocationQuery2 = '/gps'; //获取一个车辆位置
export const gpsPhoneGpsQuery = '/gps/phoneGps'; //获取一个车辆位置
export const faultDayAdd = '/api/Fault'; //添加故障日报
export const faultMonthAdd = '/api/FaultMonth'; //添加故障月报
export const faultYearAdd = '/api/FaultYear'; //添加故障年报
......
......@@ -81,6 +81,7 @@ import {
dispatchFinishQuery,
carRealTimeLocationQuery2,
failureDeclarationAdd,
gpsPhoneGpsQuery,
} from "@/axios/api.js"
import startOrderReceiving from './components/startOrderReceiving/index.vue' //接受派单
import voiceApplication from './components/voiceApplication/index.vue' //语音申请
......@@ -271,8 +272,11 @@ export default {
LoaObj1.location = LoaObj1xy;
LoaObj1.name = that.equipmentName;
LoaObj1.time = new Date().getTime();
console.log(JSON.stringify(LoaObj1));
//httpPostForJson(carRealTimeLocationQuery2,JSON.stringify(LoaObj1)).then((res1) => {})
let zuizhong1 = {};
zuizhong1.name = that.equipmentName;
zuizhong1.jsonObject = JSON.stringify(LoaObj1);
httpPostForJson(gpsPhoneGpsQuery,zuizhong1).then((res1) => {})
httpPostForJson(carRealTimeLocationQuery2,JSON.stringify(LoaObj1)).then((res2) => {})
},
//locationError 获取失败的话
function(error) {
......
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