|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <!-- <div class="top">检索</div> -->
|
|
|
|
|
|
+ <div class="top">检索</div>
|
|
<div class="bottom">
|
|
<div class="bottom">
|
|
<div
|
|
<div
|
|
v-for="(val, i) in list"
|
|
v-for="(val, i) in list"
|
|
@@ -9,7 +9,7 @@
|
|
@mouseenter="val.active = true"
|
|
@mouseenter="val.active = true"
|
|
@mouseleave="val.active = false"
|
|
@mouseleave="val.active = false"
|
|
@click="handlePosition(val)"
|
|
@click="handlePosition(val)"
|
|
- >
|
|
|
|
|
|
+ >
|
|
<div>
|
|
<div>
|
|
<p :class="['name', {'default-active': val.active }]">{{ val.name }}</p>
|
|
<p :class="['name', {'default-active': val.active }]">{{ val.name }}</p>
|
|
<div style="line-height: 40px;">
|
|
<div style="line-height: 40px;">
|
|
@@ -45,8 +45,17 @@
|
|
defineOptions({ name: 'recruitment-positions'})
|
|
defineOptions({ name: 'recruitment-positions'})
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
|
+import { getDict } from '@/hooks/web/useDictionaries'
|
|
|
|
+import { getJobAdvertisedPositionCount } from '@/api/position'
|
|
import MPagination from '@/components/CtVuetify/CtPagination'
|
|
import MPagination from '@/components/CtVuetify/CtPagination'
|
|
|
|
|
|
|
|
+const props = defineProps({
|
|
|
|
+ info: {
|
|
|
|
+ type: Object,
|
|
|
|
+ default: () => {}
|
|
|
|
+ }
|
|
|
|
+})
|
|
|
|
+
|
|
const total = ref(12)
|
|
const total = ref(12)
|
|
const pageInfo = ref({
|
|
const pageInfo = ref({
|
|
size: 3,
|
|
size: 3,
|
|
@@ -61,6 +70,25 @@ const handlePosition = (val) => {
|
|
window.open(`/recruit/position/details/${val.positionId}`)
|
|
window.open(`/recruit/position/details/${val.positionId}`)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// 行业列表
|
|
|
|
+const industryList = ref([])
|
|
|
|
+const getDictData = async () => {
|
|
|
|
+ const { data } = await getDict('menduner_industry_type', {}, 'industryList')
|
|
|
|
+ industryList.value = data
|
|
|
|
+}
|
|
|
|
+getDictData()
|
|
|
|
+
|
|
|
|
+// 职位类别
|
|
|
|
+const positionCategory = ref([])
|
|
|
|
+const getData = async () => {
|
|
|
|
+ const data = await getJobAdvertisedPositionCount({ enterpriseId: props.info.enterprise.id })
|
|
|
|
+ positionCategory.value = data.map(val => {
|
|
|
|
+ const value = industryList.value.find(e => Number(e.id) === Number(val.key))
|
|
|
|
+ return { id: value.id, label: value.nameCn, number: val.value }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+getData()
|
|
|
|
+
|
|
const list = ref([
|
|
const list = ref([
|
|
{
|
|
{
|
|
name: '产品经理',
|
|
name: '产品经理',
|