Commit e90645d0 authored by zhanglw's avatar zhanglw

调整

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