123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <div>
- <a href="#" class="back-to-top">
- <i class="fa fa-chevron-up"></i>
- </a>
- <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">Status List</h2>
- </div>
- </div>
- </div>
- </div>
- </section>
- <div class="container">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>Id</th>
- <th>Code</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr v-for="(item, i) in statusList" :key="i">
- <td>{{item.id}}</td>
- <td>{{item.code}}</td>
- <td>{{item.description}}</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </template>
- <script>
- import { mapState, mapActions } from 'vuex';
-
- export default {
- name: 'StatusList',
- created() {
- this.getStatusList();
- },
- computed: {
- ...mapState('status', ['statusList']),
- },
- methods: {
- ...mapActions('status', ['getStatusList']),
- },
- };
- </script>
- <style>
- </style>
|