12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <template>
- <div>
- <section class="intro-single">
- <div class="container">
- <div class="row">
- <div class="col-md-12 col-lg-8">
- <div class="title-single-box">
- <h2 class="title-single">Unit Configuration List</h2>
- </div>
- </div>
- </div>
- </div>
- </section>
- <div class="container">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>Id</th>
- <th>Code</th>
- <th>Bedrooms</th>
- <th>Adults</th>
- <th>Children</th>
- </tr>
- </thead>
- <tbody>
- <tr v-for="(item, i) in unitConfigurationList" :key="i">
- <td>{{item.id}}</td>
- <td>{{item.code}}</td>
- <td>{{item.bedrooms}}</td>
- <td>{{item.adults}}</td>
- <td>{{item.children}}</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </template>
- <script>
- import { mapState, mapActions } from 'vuex';
-
- export default {
- name: 'UnitConfiguration',
- created() {
- this.getUnitConfigurationList();
- },
- computed: {
- ...mapState('unitConfiguration', ['unitConfigurationList']),
- },
- methods: {
- ...mapActions('unitConfiguration', ['getUnitConfigurationList']),
- },
- };
- </script>
- <style>
- </style>
|