|
@@ -3,12 +3,12 @@
|
|
<buttons :current="3" style="position: sticky;" class="mx-4"></buttons>
|
|
<buttons :current="3" style="position: sticky;" class="mx-4"></buttons>
|
|
<div class="px-4">
|
|
<div class="px-4">
|
|
<!-- 搜索框 -->
|
|
<!-- 搜索框 -->
|
|
- <div class="white-bgc py-5">
|
|
|
|
- <v-breadcrumbs :items="breadcrumbs" elevation="3">
|
|
|
|
- <template v-slot:item="{ item }">
|
|
|
|
- <span class="text" :class="{ active: !item.disabled }" >{{ item.text }}</span>
|
|
|
|
|
|
+ <div class="white-bgc py-5 pt-0">
|
|
|
|
+ <v-breadcrumbs :items="breadcrumbs">
|
|
|
|
+ <template v-slot:item="{ item }">
|
|
|
|
+ <span class="text" :class="{active: !item.disabled}" @click="toPath(item)">{{ item.title }}</span>
|
|
</template>
|
|
</template>
|
|
- </v-breadcrumbs>
|
|
|
|
|
|
+ </v-breadcrumbs>
|
|
<headSearch v-model="content" placeholder="搜索公司关键字" @handleSearch="handleSearch"></headSearch>
|
|
<headSearch v-model="content" placeholder="搜索公司关键字" @handleSearch="handleSearch"></headSearch>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -42,10 +42,16 @@ defineOptions({ name: 'jobFairDetails' })
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
import { formatName } from '@/utils/getText'
|
|
import { formatName } from '@/utils/getText'
|
|
import buttons from '@/views/recruit/personal/components/buttons.vue'
|
|
import buttons from '@/views/recruit/personal/components/buttons.vue'
|
|
|
|
+import { useRoute, useRouter } from 'vue-router'
|
|
|
|
+import { getJobFair } from '@/api/recruit/enterprise/jobFair'
|
|
|
|
+
|
|
|
|
+const route = useRoute()
|
|
|
|
+const router = useRouter()
|
|
|
|
|
|
const content = ref('')
|
|
const content = ref('')
|
|
const breadcrumbs = ref([
|
|
const breadcrumbs = ref([
|
|
- { text: '招聘会', href: '' }
|
|
|
|
|
|
+ { title: '招聘会', href: '/recruit/personal/jobFair', disabled: false },
|
|
|
|
+ { title: '江苏第二师范学院地理科学学院 2025届酒店管理本科毕业生 “实习”与“就业”双选会', href: '', disabled: true }
|
|
])
|
|
])
|
|
const list = ref([
|
|
const list = ref([
|
|
{
|
|
{
|
|
@@ -86,9 +92,21 @@ const list = ref([
|
|
},
|
|
},
|
|
])
|
|
])
|
|
|
|
|
|
|
|
+// 招聘会名称设置到面包屑中
|
|
|
|
+const getMsg = async () => {
|
|
|
|
+ // const res = await getJobFair(route.params.id)
|
|
|
|
+ // breadcrumbs.value[breadcrumbs.value.length - 1].title = res.title.replace(/<\/?p[^>]*>/gi, '')
|
|
|
|
+}
|
|
|
|
+getMsg()
|
|
|
|
+
|
|
const handleSearch = (val) => {
|
|
const handleSearch = (val) => {
|
|
console.log(val, 'handleSearch')
|
|
console.log(val, 'handleSearch')
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+const toPath = ({ href }) => {
|
|
|
|
+ if (!href) return
|
|
|
|
+ router.push(href)
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
@@ -113,4 +131,12 @@ const handleSearch = (val) => {
|
|
.enterprise-name:hover {
|
|
.enterprise-name:hover {
|
|
color: var(--v-primary-base);
|
|
color: var(--v-primary-base);
|
|
}
|
|
}
|
|
|
|
+.text {
|
|
|
|
+ color: var(--color-999);
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ &.active {
|
|
|
|
+ color: var(--v-primary-base);
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|