Commit 6235b0b6 authored by caicaicai's avatar caicaicai

修改

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