From fb256ed938ec9d621de405607d3c87b709fe95ea Mon Sep 17 00:00:00 2001 From: Burtchen Date: Tue, 31 Aug 2021 13:39:15 +0200 Subject: [PATCH] Update SeatDemo.vue (#1409) vagon => wagon --- src/views/steps/SeatDemo.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/steps/SeatDemo.vue b/src/views/steps/SeatDemo.vue index 3d7573d7e..30e0cdb13 100755 --- a/src/views/steps/SeatDemo.vue +++ b/src/views/steps/SeatDemo.vue @@ -11,11 +11,11 @@
- +
- +
@@ -43,24 +43,24 @@ export default { {name: 'Second Class', code: 'B', factor: 2}, {name: 'Third Class', code: 'C', factor: 3} ], - vagons: [], - selectedVagon: '', + wagons: [], + selectedWagon: '', seats: [], selectedSeat: '' } }, methods: { - setVagons(event) { + setWagons(event) { if (this.selectedClass && event.value) { - this.vagons = []; + this.wagons = []; this.seats = []; for (let i = 1; i < 3 * event.value.factor; i++) { - this.vagons.push({vagon: i + event.value.code, type: event.value.name, factor: event.value.factor}); + this.wagons.push({wagon: i + event.value.code, type: event.value.name, factor: event.value.factor}); } } }, setSeats(event) { - if (this.selectedVagon && event.value) { + if (this.selectedWagon && event.value) { this.seats = []; for (let i = 1; i < 10 * event.value.factor; i++) { this.seats.push({seat: i, type: event.value.type}); @@ -68,11 +68,11 @@ export default { } }, nextPage() { - this.$emit('next-page', {formData: {class: this.selectedClass.name, vagon: this.selectedVagon.vagon, seat: this.selectedSeat.seat}, pageIndex: 1}); + this.$emit('next-page', {formData: {class: this.selectedClass.name, wagon: this.selectedWagon.wagon, seat: this.selectedSeat.seat}, pageIndex: 1}); }, prevPage() { this.$emit('prev-page', {pageIndex: 1}); } } } - \ No newline at end of file +