Some other stuff
This commit is contained in:
parent
a500ad19e9
commit
7a5a537cd4
3 changed files with 14 additions and 17 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="select-car">
|
<div class="select-car">
|
||||||
<div class="select-car-form rounded text-center">
|
<div class="select-car-form rounded text-center">
|
||||||
<!-- <Header :text="headerTextWidgetModel.HeaderText" class="Header" />
|
<Header :text="headerTextWidgets[0].HeaderText" class="Header" />
|
||||||
<yearQuestion :questionText="radioQuestionWidgetModel.QuestionText" /> -->
|
<yearQuestion :questionText="radioQuestionWidgets[0].QuestionText" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -20,15 +20,18 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
async mounted() {
|
created() {
|
||||||
|
let self = this;
|
||||||
|
|
||||||
|
this.GetContentFromCms().then(response => {
|
||||||
|
self.headerTextWidgets = response.HeaderTextWidget;
|
||||||
|
self.radioQuestionWidgets = response.RadioQuestionWidget;
|
||||||
|
});
|
||||||
|
|
||||||
const content = await this.GetContentFromCms();
|
|
||||||
this.headerTextWidgets = content.HeaderTextWidget;
|
|
||||||
console.log(content);
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
// yearQuestion,
|
yearQuestion,
|
||||||
// Header,
|
Header,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import radioQuestion from "@/commonComponents/radioQuestion/radioQuestion";
|
import radioQuestion from "@/commonComponents/radioQuestion/radioQuestion";
|
||||||
import store from "@/store";
|
|
||||||
import router from "@/router";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "year-question",
|
name: "year-question",
|
||||||
|
|
@ -17,9 +15,8 @@ export default {
|
||||||
years: [],
|
years: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
created() {
|
||||||
this.dispatchNonBlockingStoreAction(this.storeActions.GET_VEHICLE_YEARS, {}
|
this.dispatchNonBlockingStoreAction(this.storeActions.GET_VEHICLE_YEARS, {}).then((response) => {
|
||||||
).then((response) => {
|
|
||||||
this.years = response.data;
|
this.years = response.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
GetContentFromCms() {
|
GetContentFromCms() {
|
||||||
return this.dispatchNonBlockingStoreAction(
|
return this.dispatchNonBlockingStoreAction(this.storeActions.GET_PAGE_DATA,{ pageName: this.$route.query.fmgPage }).then((response) => {
|
||||||
this.storeActions.GET_PAGE_DATA,
|
|
||||||
{ pageName: this.$route.query.fmgPage }
|
|
||||||
).then((response) => {
|
|
||||||
const pageDataFromCms = {};
|
const pageDataFromCms = {};
|
||||||
|
|
||||||
response.data.Result.forEach((widget) => {
|
response.data.Result.forEach((widget) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue