You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

provincesPage.vue 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div>
  3. <section class="intro-single">
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-md-12 col-lg-8">
  7. <div class="title-single-box">
  8. <h2 class="title-single">Unit Configuration List</h2>
  9. </div>
  10. </div>
  11. </div>
  12. </div>
  13. </section>
  14. <div class="container">
  15. <table class="table table-bordered">
  16. <thead>
  17. <tr>
  18. <th>Id</th>
  19. <th>Code</th>
  20. <th>Bedrooms</th>
  21. <th>Adults</th>
  22. <th>Children</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <tr v-for="(item, i) in unitConfigurationList" :key="i">
  27. <td>{{item.id}}</td>
  28. <td>{{item.code}}</td>
  29. <td>{{item.bedrooms}}</td>
  30. <td>{{item.adults}}</td>
  31. <td>{{item.children}}</td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. import { mapState, mapActions } from 'vuex';
  40. export default {
  41. name: 'UnitConfiguration',
  42. created() {
  43. this.getUnitConfigurationList();
  44. },
  45. computed: {
  46. ...mapState('unitConfiguration', ['unitConfigurationList']),
  47. },
  48. methods: {
  49. ...mapActions('unitConfiguration', ['getUnitConfigurationList']),
  50. },
  51. };
  52. </script>
  53. <style>
  54. </style>