Commit e90645d0 authored by zhanglw's avatar zhanglw

调整

parent ae85b291
...@@ -87,27 +87,27 @@ export default { ...@@ -87,27 +87,27 @@ export default {
} }
}, },
methods: { methods: {
loadData(value,carclass) { loadData(value, carclass) {
let byValue = value; let byValue = value;
this.showDecide = true; this.showDecide = true;
httpGet(vehicleInformationQuery,{number:byValue}).then((res) => { httpGet(vehicleInformationQuery, {number: byValue}).then((res) => {
if(res.code == 200){ if (res.code == 200) {
if(res.data.totalElements == 0){ if (res.data.totalElements == 0) {
return return
}else{ } else {
this.vehicleInformationData = res.data.content[0]; this.vehicleInformationData = res.data.content[0];
} }
} }
}); });
if(carclass == '铲车'){ if (carclass == '铲车') {
httpGet(apiManmadesChanCheRealQuery,{number:byValue}).then((res) => { httpGet(apiManmadesChanCheRealQuery, {number: byValue}).then((res) => {
if(res.code == 200 && res.data.length != 0){ if (res.code == 200 && res.data.length != 0) {
this.realTimeData = res.data[0]; this.realTimeData = res.data[0];
} }
}); });
}else{ } else {
httpGet(apiManmadesRealQuery,{number:byValue}).then((res) => { httpGet(apiManmadesRealQuery, {number: byValue}).then((res) => {
if(res.length != 0){ if (res.length != 0) {
this.realTimeData = res[0]; this.realTimeData = 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