invite.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <v-card class="card-box pa-5">
  3. <div class="default-width">
  4. <div class="resume-header mb-5">
  5. <div class="resume-title">{{ inviteType ? $t('enterprise.userManagement.addBranchOffice') : $t('enterprise.userManagement.inviteNewColleagues') }}</div>
  6. </div>
  7. <v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#f7f8fa" @update:model-value="handleChangeTab">
  8. <v-tab v-for="val in tabList" :key="val.value" :value="val.value"> {{ val.label }}</v-tab>
  9. </v-tabs>
  10. <v-window v-model="tab" class="mt-3">
  11. <v-window-item :value="1">
  12. <linkPage :inviteType="inviteType" style="min-height: 500px;"></linkPage>
  13. </v-window-item>
  14. <v-window-item :value="2">
  15. <record :inviteType="inviteType" style="min-height: 500px;"></record>
  16. </v-window-item>
  17. </v-window>
  18. </div>
  19. </v-card>
  20. </template>
  21. <script setup>
  22. import linkPage from './components/link.vue'
  23. import record from './components/record.vue'
  24. import { useI18n } from '@/hooks/web/useI18n'; const { t } = useI18n()
  25. import { useRouter } from 'vue-router'; const router = useRouter()
  26. import { ref } from 'vue'
  27. defineOptions({name: 'groupAccount-invite'})
  28. const inviteType = ref(+router.currentRoute.value?.params?.type - 0 || 0) // 类型(0 邀请同事 | 1 邀请子公司)
  29. const tabList = [
  30. { label: t('enterprise.userManagement.initiateInvitation'), value: 1 },
  31. { label: t('enterprise.userManagement.invitationRecord'), value: 2 },
  32. ]
  33. const tab = ref(1)
  34. // 切换
  35. const handleChangeTab = () => {
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. </style>