招聘网页
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.vue 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <template v-if="!seekerList || seekerList.length == 0">
  3. <a-empty style="height: 100vh;">
  4. <template #description>
  5. 无求职者信息
  6. </template>
  7. </a-empty>
  8. </template>
  9. <template v-else>
  10. <a-row :gutter="[20,20]">
  11. <a-col span="24" v-for="(item, index) in seekerList">
  12. <a-card>
  13. <div class="talent-box">
  14. <a-list>
  15. <a-list-item>
  16. <template #actions>
  17. <a-button @click="detail(item)">
  18. <StarOutlined />
  19. 预览
  20. </a-button>
  21. <a-button>
  22. <StarOutlined />
  23. 收藏
  24. </a-button>
  25. <a-button>
  26. 邀请面试
  27. </a-button>
  28. </template>
  29. <a-list-item-meta>
  30. <template #title>
  31. {{item.seekername}}
  32. </template>
  33. <template #description>
  34. <div>
  35. {{item.gender}}
  36. <a-divider type="vertical" />
  37. {{item.education_text}}
  38. <a-divider type="vertical" />
  39. {{item.now_level1_text}}{{item.now_level2_text}}
  40. </div>
  41. <div style="margin-top: 10px; overflow: hidden;
  42. display: -webkit-box;
  43. -webkit-line-clamp: 1;
  44. -webkit-box-orient: vertical;
  45. text-overflow: ellipsis;">
  46. <div v-html="item.introduction"></div>
  47. </div>
  48. </template>
  49. <template #avatar>
  50. <image-container
  51. :imgObj="{src: '/images/onlylogo.jpg',width: '48px',height:'48px'}"></image-container>
  52. </template>
  53. </a-list-item-meta>
  54. </a-list-item>
  55. </a-list>
  56. </div>
  57. </a-card>
  58. </a-col>
  59. <a-col span="24">
  60. <a-flex justify="center">
  61. <a-space>
  62. <a-pagination hideOnSinglePage :total="commomParams.page.total" @change="getPage" />
  63. </a-space>
  64. </a-flex>
  65. </a-col>
  66. </a-row>
  67. <resume-detail v-if="detail_record" :detail_record="detail_record"></resume-detail>
  68. </template>
  69. </template>
  70. <script setup lang="ts">
  71. import { ref, computed, onMounted, defineProps, watch } from 'vue';
  72. import ResumeDetail from '@/components/jobseeker/resume/detail/index.vue'
  73. import { PostJobseekerList } from '@/apis/models';
  74. import { useCommon } from '@/hooks/useCommon';
  75. let { store, commomParams, dayjs, richOption, ExclamationCircleOutlined, Modal, showOtherModal1 } = useCommon();
  76. let props = defineProps(['search']);
  77. let seekerList = ref<object[]>([])
  78. let loading = ref<Boolean>(true);
  79. const getPage = (data : object) => {
  80. commomParams.value.search.page = data.current;
  81. commomParams.value.search.pagesize = data.pageSize;
  82. getData();
  83. }
  84. const getData = async () => {
  85. try {
  86. loading.value = true;
  87. let res = await PostJobseekerList(commomParams.value.search);
  88. loading.value = false;
  89. seekerList.value = res.data.seekers;
  90. commomParams.value.page = {
  91. current: commomParams.value.search.page,
  92. pageSize: commomParams.value.search.pagesize,
  93. total: res.data.total,
  94. pageSizeOptions: ['10', '20', '30', '40'],
  95. hideOnSinglePage: false,
  96. showSizeChanger: true
  97. };
  98. } catch {
  99. loading.value = false;
  100. }
  101. }
  102. const onLoadMore = () => {
  103. commomParams.value.search.page = commomParams.value.search.page + 1;
  104. getData();
  105. }
  106. let detail_record = ref<Object>(null)
  107. const detail = (record) => {
  108. detail_record.value = record;
  109. showOtherModal1()
  110. }
  111. // onMounted(() => {
  112. // getData();
  113. // })
  114. watch(() => [props.search], (newVal) => {
  115. if (newVal[0] ) {
  116. commomParams.value.search = newVal[0];
  117. getData();
  118. }
  119. }, { immediate: true })
  120. </script>
  121. <style scoped lang="less">
  122. </style>