index.vue 4.0 KB

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