add.vue 510 B

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