Commit 6235b0b6 authored by caicaicai's avatar caicaicai

修改

parent d75d47e2
......@@ -29,8 +29,8 @@ export default {
},
mounted(){
this.sonTimer1 = setInterval(() => {
httpGet(getZhuangCheDingDanQuery,{sort:'createTime,desc',size:1,carNo:this.carnumber}).then((res) => {
if(res.length == 0){
httpGet(dingDanBiaoCaoZuo,{sort:'createTime,desc',size:1,carNo:this.carnumber}).then((res) => {
if(res.data.length == 0){
this.loadData2();
}else{
httpGet(vehicleInformationQuery,{number:this.carnumber,size:1}).then((resSon1) => {
......@@ -39,7 +39,7 @@ export default {
this.showDe = true;
this.btnShow1 = true;
this.btnShow2 = false;
this.carDestination = res[0].destination;
this.carDestination = res.data[0].destination;
}
}
});
......@@ -51,8 +51,8 @@ export default {
loadData(carnumber){
this.carnumber = carnumber;
this.$nextTick(()=>{
httpGet(getZhuangCheDingDanQuery,{sort:'createTime,desc',size:1,carNo:this.carnumber}).then((res) => {
if(res.length == 0){
httpGet(dingDanBiaoCaoZuo,{sort:'createTime,desc',size:1,carNo:this.carnumber}).then((res) => {
if(res.data.length == 0){
this.loadData2();
}else{
httpGet(vehicleInformationQuery,{number:this.carnumber,size:1}).then((resSon1) => {
......@@ -61,7 +61,7 @@ export default {
this.showDe = true;
this.btnShow1 = true;
this.btnShow2 = false;
this.carDestination = res[0].destination;
this.carDestination = res.data[0].destination;
}
}
});
......
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