index.vue 537 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div>
  3. <staff-list/>
  4. </div>
  5. </template>
  6. <script>
  7. import { StaffList } from '~components/mobile/staffManagement'
  8. export default {
  9. middleware: 'authenticated',
  10. layout: 'mobile',
  11. components: {
  12. StaffList
  13. },
  14. data () {
  15. return {
  16. step: 'showInfo'
  17. }
  18. },
  19. fetch ({ store }) {
  20. return Promise.all([
  21. store.dispatch('staff/loadStaffList', { count: 10, page: 1, enuu: store.state.option.user.data.enterprise.uu})
  22. ])
  23. },
  24. methods: {
  25. }
  26. }
  27. </script>