From ad5f5310e34d0839858b26af6c92c31568f25205 Mon Sep 17 00:00:00 2001 From: Sneha Date: Mon, 15 May 2023 20:04:15 +0530 Subject: [PATCH] SLT-418 --- .../vehicle-question/vehicle-question.vue | 68 +++++++++++ .../vehicle-selection/vehicle-selection.vue | 114 ++++++++++-------- 2 files changed, 134 insertions(+), 48 deletions(-) create mode 100644 src/iss-components/vehicle-question/vehicle-question.vue diff --git a/src/iss-components/vehicle-question/vehicle-question.vue b/src/iss-components/vehicle-question/vehicle-question.vue new file mode 100644 index 00000000..201e0282 --- /dev/null +++ b/src/iss-components/vehicle-question/vehicle-question.vue @@ -0,0 +1,68 @@ + + + diff --git a/src/layouts/vehicle-selection/vehicle-selection.vue b/src/layouts/vehicle-selection/vehicle-selection.vue index cb53c2ea..8796e7fb 100644 --- a/src/layouts/vehicle-selection/vehicle-selection.vue +++ b/src/layouts/vehicle-selection/vehicle-selection.vue @@ -8,12 +8,16 @@
- - + + + + + + + { vm.years = resultMap.yearQuestionInitialData; vm.setCmsContent(resultMap.cmsContent); - vm.$refs.yearQuestion.initializeComponent( - resultMap.yearQuestionInitialData - ); - vm.$refs.makeQuestion.initializeComponent( - resultMap.makeQuestionInitialData - ); + // vm.$refs.VehicleQuestion.initializeComponent( + // resultMap.yearQuestionInitialData + // ); + // vm.$refs.makeQuestion.initializeComponent( + // resultMap.makeQuestionInitialData + // ); - vm.$refs.modelQuestion.initializeComponent( - resultMap.modelQuestionInitialData - ); - vm.$refs.styleQuestion.initializeComponent( - resultMap.styleQuestionInitialData - ); + // vm.$refs.modelQuestion.initializeComponent( + // resultMap.modelQuestionInitialData + // ); + // vm.$refs.styleQuestion.initializeComponent( + // resultMap.styleQuestionInitialData + // ); }); }, @@ -121,16 +137,18 @@ export default { const parsedYearIndex = parseInt(yearIndex); this.mainStore.updateVehicleYear( this.years[parsedYearIndex] ); - this.$refs["makeQuestion"].getNewValues(); + this.$refs["VehicleQuestion"].getNewValues(); }, selectedMake(make) { this.mainStore.updateVehicleMake( make ); - this.$refs["modelQuestion"].getNewValues(); + this.$refs["VehicleQuestion"].getNewValues(); + //this.$refs["modelQuestion"].getNewValues(); }, selectedModel(model) { this.mainStore.updateVehicleModel( model ); - this.$refs["styleQuestion"].getNewValues(); + this.$refs["VehicleQuestion"].getNewValues(); + //this.$refs["styleQuestion"].getNewValues(); }, selectedStyle(style) { this.mainStore.updateVehicleStyle( style ); @@ -165,19 +183,19 @@ export default { }, async updateStyleValues() { return await this.mainStore.getVehicleStyles(); - } - }, - + }, + }, components: { - yearQuestion, - makeQuestion, - modelQuestion, + // yearQuestion, + // makeQuestion, + // modelQuestion, siteHeader, siteSubHeader, vehicleBanner, siteFooter, Form, - styleQuestion, + VehicleQuestion + //styleQuestion, }, };