interviewSchedule.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!-- 面试日程 -->
  2. <template>
  3. <div style="height: 100%; overflow: hidden;background-color: var(--default-bgc);">
  4. <div class="white-bgc px-3 py-5" style="font-size: 16px; display: flex; justify-content: space-between; border-bottom: 1px solid #e3e3e3;">
  5. <div>面试日程</div>
  6. <div class="defaultLink" @click="null">查看全部</div>
  7. </div>
  8. <!-- 滚动区域 -->
  9. <div class="" style="height: calc(100% - 86px); overflow-y: auto;">
  10. <div v-for="item in dataList" :key="'schedule' + item">
  11. <div class="color-666 px-8 py-3" style="">{{ timesTampChange(item?.time, 'M月D日') || '--' }}</div>
  12. <div class="white-bgc pa-6">
  13. <div class="d-flex justify-space-between">
  14. <div>{{ item?.enterprise?.anotherName || '--' }}</div>
  15. <div>{{ getText(item?.status+'', statusList) || '--' }}</div>
  16. </div>
  17. <div>
  18. <span>时间:</span>
  19. <span>{{ timesTampChange(item?.time, 'h:m') || '--' }}</span>
  20. </div>
  21. <div>
  22. <span>职位:</span>
  23. <span>{{ getText(item?.status+'', statusList) || '--' }}</span>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="text-center color-666 my-8" style="cursor: pointer;">{{ $t('common.more') }}</div>
  28. </div>
  29. </div>
  30. </template>
  31. <script setup>
  32. import { getUserInterviewInvitePage } from '@/api/recruit/personal/personalCenter'
  33. import { getDict } from '@/hooks/web/useDictionaries'
  34. import { getText } from '@/utils/getText'
  35. import { timesTampChange } from '@/utils/date'
  36. import { ref } from 'vue'
  37. defineOptions({name: 'PersonalCenter-interviewSchedule'})
  38. const dataList = ref([])
  39. const getSkillListFunc = async () => {
  40. const res = await getUserInterviewInvitePage()
  41. dataList.value = res?.list || []
  42. console.log('1', dataList.value[0])
  43. }
  44. getSkillListFunc()
  45. // 状态字典
  46. const statusList = ref()
  47. const getStatusList = async () => {
  48. const { data } = await getDict('menduner_interview_invite_status')
  49. statusList.value = data
  50. }
  51. getStatusList()
  52. </script>
  53. <style lang="scss" scoped>
  54. ::-webkit-scrollbar {
  55. width: 4px;
  56. height: 10px;
  57. display: none;
  58. }
  59. ::-webkit-scrollbar-thumb, .temporaryAdd ::-webkit-scrollbar-thumb, .details_edit ::-webkit-scrollbar-thumb {
  60. // 滚动条-颜色
  61. background: #c3c3c379;
  62. }
  63. ::-webkit-scrollbar-track, .temporaryAdd ::-webkit-scrollbar-track, .details_edit ::-webkit-scrollbar-track {
  64. // 滚动条-底色
  65. background: #e5e5e58f;
  66. }
  67. </style>