Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <div>
  3. <!-- <section class="intro-single"> -->
  4. <div class="container">
  5. <br />
  6. <br />
  7. <br />
  8. <br />
  9. <div class="row">
  10. <div class="col-md-12 col-lg-8">
  11. <!-- <div class="title-single-box"> -->
  12. <!-- <h2 class="title-single">Status List</h2> -->
  13. <!-- </div> -->
  14. <div class="title-box-d">
  15. <h1 class="title-d" style="text-align:left; font-size: 250%">Status List</h1>
  16. </div>
  17. <br />
  18. </div>
  19. </div>
  20. </div>
  21. <!-- </section> -->
  22. <div class="container">
  23. <table class="table table-bordered">
  24. <thead>
  25. <tr>
  26. <th>Id</th>
  27. <th>Code</th>
  28. <th>Description</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <tr v-for="(item, i) in statusList" :key="i">
  33. <td>{{item.id}}</td>
  34. <td>{{item.code}}</td>
  35. <td>{{item.description}}</td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. import { mapState, mapActions } from 'vuex';
  44. export default {
  45. name: 'StatusList',
  46. created() {
  47. this.getStatusList();
  48. },
  49. computed: {
  50. ...mapState('status', ['statusList']),
  51. },
  52. methods: {
  53. ...mapActions('status', ['getStatusList']),
  54. },
  55. };
  56. </script>
  57. <style>
  58. </style>