Steps refactor
parent
9418b97465
commit
73f3fa64a7
File diff suppressed because it is too large
Load Diff
|
@ -74,11 +74,6 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
formData: Object
|
formData: Object
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
prevPage() {
|
prevPage() {
|
||||||
this.$emit('prevPage', {pageIndex: 3});
|
this.$emit('prevPage', {pageIndex: 3});
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {required, minLength, integer} from 'vuelidate/lib/validators';
|
import {required, integer} from 'vuelidate/lib/validators';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
|
|
|
@ -54,8 +54,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {required, minLength, integer} from 'vuelidate/lib/validators';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
@ -76,15 +74,15 @@ export default {
|
||||||
if (this.selectedClass && event.value) {
|
if (this.selectedClass && event.value) {
|
||||||
this.vagons = [];
|
this.vagons = [];
|
||||||
this.seats = [];
|
this.seats = [];
|
||||||
for(let i = 1; i < 3 * event.value.factor; i++) {
|
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.vagons.push({vagon: i + event.value.code, type: event.value.name, factor: event.value.factor});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setSeats(event) {
|
setSeats(event) {
|
||||||
if (this.selectedVagon && event.value) {
|
if (this.selectedVagon && event.value) {
|
||||||
this.seats = [];
|
this.seats = [];
|
||||||
for(let i = 1; i < 10 * event.value.factor; i++) {
|
for (let i = 1; i < 10 * event.value.factor; i++) {
|
||||||
this.seats.push({seat: i, type: event.value.type});
|
this.seats.push({seat: i, type: event.value.type});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,8 +85,6 @@ export default {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.3);
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-header-message {
|
.card-header-message {
|
||||||
|
@ -126,6 +124,7 @@ export default {
|
||||||
|
|
||||||
&.wizard-confirmation {
|
&.wizard-confirmation {
|
||||||
box-shadow: 0 25px 0 -23px #ededed;
|
box-shadow: 0 25px 0 -23px #ededed;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #484848;
|
color: #484848;
|
||||||
|
|
Loading…
Reference in New Issue