changes to load data back to page from store up on return
This commit is contained in:
parent
2c4f1ed790
commit
4ef0a83311
1 changed files with 13 additions and 10 deletions
|
|
@ -177,16 +177,7 @@
|
||||||
mixins: [BaseFormMixin],
|
mixins: [BaseFormMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
welcomePageModel: {
|
welcomePageModel: this.getWelcomePageModelFromStore()
|
||||||
policyNumber: "",
|
|
||||||
dateOfLoss: "",
|
|
||||||
damageCause: "",
|
|
||||||
damageState: "",
|
|
||||||
damageCity: "",
|
|
||||||
isDamageGlassOnly: "",
|
|
||||||
phoneNumber: "",
|
|
||||||
email: ""
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
|
|
@ -226,6 +217,18 @@
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
getWelcomePageModelFromStore() {
|
||||||
|
return {
|
||||||
|
policyNumber : this.mainStore.order.policy.policyNumber,
|
||||||
|
dateOfLoss : this.mainStore.order.policy.dateOfLoss,
|
||||||
|
damageCause : this.mainStore.order.policy.damageCause,
|
||||||
|
damageState : this.mainStore.order.policy.damageState,
|
||||||
|
damageCity : this.mainStore.order.policy.damageCity,
|
||||||
|
isDamageGlassOnly : this.mainStore.order.policy.isDamageGlassOnly,
|
||||||
|
phoneNumber : this.mainStore.order.policy.phoneNumber,
|
||||||
|
email : this.mainStore.order.policy.email,
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
DamageCauseOptions() {
|
DamageCauseOptions() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue