jobIntention.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div v-if="interestList.length">
  3. <div
  4. :class="['position-item', 'mb-1']"
  5. v-for="(k, i) in interestList"
  6. :key="'jobIntention' + i"
  7. >
  8. <div class="d-flex">
  9. <div>{{ k.position }}</div>
  10. <div class="line">|</div>
  11. <div>{{k.payFrom}}-{{k.payTo}}</div>
  12. <div class="line">|</div>
  13. <div class="grey-text text-box">{{ k.industry.map(e => e.nameCn).join('、') }}</div>
  14. <div class="line">|</div>
  15. <div class="grey-text">{{ k.jobTypeName }}</div>
  16. <div class="line" v-if="k.jobTypeName && k.workArea">|</div>
  17. <div class="grey-text">{{ k.workArea }}</div>
  18. </div>
  19. </div>
  20. </div>
  21. </template>
  22. <script setup>
  23. import { ref } from 'vue'
  24. import { dealJobData } from './dict'
  25. defineOptions({name: 'enterprise-talentPool-details-jobIntention'})
  26. const props = defineProps({
  27. data: {
  28. type: Array,
  29. default: () => []
  30. }
  31. })
  32. // 获取求职意向
  33. const interestList = ref([])
  34. if (props.data?.length) interestList.value = dealJobData(props.data)
  35. </script>
  36. <style lang="scss" scoped>
  37. .position-item {
  38. display: flex;
  39. justify-content: space-between;
  40. border-radius: 6px;
  41. font-size: 15px;
  42. span {
  43. font-size: 15px;
  44. }
  45. .grey-text {
  46. color: var(--color-999);
  47. }
  48. .line {
  49. color: #e0e0e0;
  50. margin: 0 10px;
  51. }
  52. }
  53. </style>