您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

statusPage.vue 1.2KB

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