Update vehicle.vue

This commit is contained in:
Sneha 2023-09-26 17:50:03 +05:30
parent 7d365962d4
commit 2fc7c57d40

View file

@ -278,7 +278,7 @@ export default {
}, },
async selectedStyle(style) { async selectedStyle(style) {
if (style) { if (style) {
this.getCarID(); this.getCarID();
} else { } else {
this.imageUrl = null; this.imageUrl = null;
} }
@ -312,19 +312,19 @@ export default {
arePagePrerequisitesValid() { arePagePrerequisitesValid() {
return true; return true;
}, },
async getCarID(){ async getCarID() {
this.carId = null; this.carId = null;
const result = await this.getVehicle( const result = await this.getVehicle(
this.selectedYear, this.selectedYear,
this.selectedMake, this.selectedMake,
this.selectedModel, this.selectedModel,
this.selectedStyle this.selectedStyle
); );
this.carId = result?.data.carId; this.carId = result?.data.carId;
this.category = result?.data.category; this.category = result?.data.category;
this.imageUrl = result?.data.imageUrl; this.imageUrl = result?.data.imageUrl;
this.imageVifNumber = result?.data.imageVifNumber; this.imageVifNumber = result?.data.imageVifNumber;
this.imageVifColor = result?.data.imageVifColor; this.imageVifColor = result?.data.imageVifColor;
}, },
async forwardButtonAction() { async forwardButtonAction() {