index.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!-- 检索列表页 - 职位检索 -->
  2. <template>
  3. <div class="default-width">
  4. <div style="width: 100%; height: 20px;"></div>
  5. <v-card style="z-index: 998">
  6. <div class="stickyBox my-3">
  7. <headSearch></headSearch>
  8. </div>
  9. <cityFilter class="mx-5 mb-3"></cityFilter>
  10. <conditionFilter class="mx-5 mb-3"></conditionFilter>
  11. </v-card>
  12. <div class="d-flex mt-3">
  13. <div class="mr-3">
  14. <PositionLongStrip :items="items"></PositionLongStrip>
  15. </div>
  16. <rightRecommend></rightRecommend>
  17. </div>
  18. <CtPagination
  19. v-if="total > 0"
  20. :total="total"
  21. :page="pageInfo.pageNo"
  22. :limit="pageInfo.pageSize"
  23. @handleChange="handleChangePage"
  24. ></CtPagination>
  25. </div>
  26. </template>
  27. <script setup>
  28. import rightRecommend from './components/rightRecommend'
  29. import cityFilter from './components/cityFilter'
  30. import conditionFilter from './components/conditionFilter'
  31. import headSearch from '@/components/headSearch'
  32. import PositionLongStrip from '@/components/PositionLongStrip/item.vue'
  33. import { getJobAdvertisedSearch } from '@/api/position'
  34. import CtPagination from '@/components/CtPagination'
  35. // import { dealDictData } from '@/views/recruit/position/components/dict'
  36. import { ref } from 'vue'
  37. import { useRoute } from 'vue-router'
  38. defineOptions({name: 'retrieval-position-page'})
  39. const route = useRoute()
  40. console.log('to:/recruit/position-> query', route.query)
  41. const pageInfo = { pageNo: 1, pageSize: 20}
  42. const items = ref([])
  43. const total = ref(0)
  44. // 测试数据
  45. const test = {
  46. job: {
  47. id: 1,
  48. pos: "广州",
  49. name: "测试数据",
  50. positionId: 1,
  51. payFrom: 5000,
  52. payTo: 12000,
  53. payUnit: 1,
  54. areaId: 110000,
  55. expType: 0,
  56. eduType: 0,
  57. tagList: [
  58. "无经验要求",
  59. "金融产品",
  60. ]
  61. },
  62. enterprise: {
  63. id: 1,
  64. name: "广州门墩儿科技有限公司",
  65. anotherName: "门墩儿科技",
  66. industryId: 1,
  67. scale: 0,
  68. financingStatus: 0,
  69. logoUrl: "https://img.bosszhipin.com/beijin/mcs/chatphoto/20171009/8b09998594701c82c6d9932c6f5d3ea293cf1c0a52480018916865cbf3ed2c2f.jpg?x-oss-process=image/resize,w_120,limit_0",
  70. tags: [ "培训/辅导机构", "天使轮", "100-499人"],
  71. tags1: [ '就近分配', '室内清洁', '系统接单', '无需坐班', '日常保洁', '简单易上手', '日常保洁', '简单易上手'],
  72. welfareList: ['周末双休', '五险一金', '包餐', '节日福利', '员工旅游', '定期体检', '全勤奖', '带薪年假,年底双薪等福利多多']
  73. },
  74. contact: {
  75. enterpriseId: 1,
  76. userId: 1,
  77. avatar: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F5bbef4cc-6268-46d9-87b3-3aa7d2168aad%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1718339519&t=6ff0d47abd90d209ca81b671e898deb8",
  78. name: "ces女士",
  79. status: 1,
  80. postNameCn: "人事经理",
  81. postNameEn: "uman resources",
  82. postCode: "HR"
  83. }
  84. }
  85. // 测试数据
  86. // 职位搜索
  87. const getPositionList = async () => {
  88. const pageReqVO = {
  89. ...pageInfo,
  90. content: '', // 搜索内容,示例值(xx科技/xx经理)
  91. areaIds: [], //工作地区id集合,示例值([])
  92. expType: 0, // 工作经验(menduner_exp_type),示例值(1)
  93. eduType: 0, // 学历要求(menduner_education_type),示例值(1)
  94. payType: 0, // 薪酬待遇范围(menduner_pay_scope),示例值(12)
  95. jobType: 0, // 求职类型(menduner_job_type),示例值(2)
  96. positionId: 0, // 职位类型,示例值(2)
  97. enterpriseType: 0, // 企业类型(menduner_enterprise_type)
  98. industryIds: [], // 行业信息id集合,示例值([])
  99. scale: 0, // 人员规模(0-20人,20-99人)示例值(1)
  100. financingStatus: 0 // 融资阶段(未融资,天使轮,A轮,不需要融资),示例值(1)
  101. }
  102. const res = await getJobAdvertisedSearch({ pageReqVO })
  103. // items.value = res.list
  104. items.value = [...res.list, test]
  105. total.value = res.total
  106. }
  107. getPositionList()
  108. const handleChangePage = (index) => {
  109. pageInfo.pageNo = index
  110. getPositionList()
  111. }
  112. </script>