|
@@ -27,7 +27,7 @@
|
|
</div>
|
|
</div>
|
|
<v-divider></v-divider>
|
|
<v-divider></v-divider>
|
|
<div class="mt-3">
|
|
<div class="mt-3">
|
|
- <v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#f3f3f3">
|
|
|
|
|
|
+ <v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#f3f3f3" @update:model-value="handleTabClick">
|
|
<v-tab :value="1">公司简介</v-tab>
|
|
<v-tab :value="1">公司简介</v-tab>
|
|
<v-tab :value="2">在招职位({{ info.jobAdvertisedCount }})</v-tab>
|
|
<v-tab :value="2">在招职位({{ info.jobAdvertisedCount }})</v-tab>
|
|
</v-tabs>
|
|
</v-tabs>
|
|
@@ -86,6 +86,7 @@ import recruitmentPositions from './components/positions.vue'
|
|
import { getEnterpriseDetails, getEnterpriseSubscribeCheck, getEnterpriseSubscribe, getEnterpriseUnsubscribe } from '@/api/enterprise'
|
|
import { getEnterpriseDetails, getEnterpriseSubscribeCheck, getEnterpriseSubscribe, getEnterpriseUnsubscribe } from '@/api/enterprise'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { dealDictData } from '@/views/recruit/position/components/dict.js'
|
|
import { dealDictData } from '@/views/recruit/position/components/dict.js'
|
|
|
|
+import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
id: {
|
|
id: {
|
|
@@ -93,7 +94,17 @@ const props = defineProps({
|
|
default: ''
|
|
default: ''
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+const route = useRoute()
|
|
|
|
+const router = useRouter()
|
|
const tab = ref(1)
|
|
const tab = ref(1)
|
|
|
|
+const savedTab = new URLSearchParams(window.location.search).get('key')
|
|
|
|
+tab.value = savedTab ? (savedTab === 'briefIntroduction' ? 1 : 2) : 1
|
|
|
|
+// router.push(`${route.path}?key=${savedTab ? savedTab : 'briefIntroduction'}`)
|
|
|
|
+
|
|
|
|
+const handleTabClick = () => {
|
|
|
|
+ router.push(`${route.path}?key=${tab.value === 1 ? 'briefIntroduction' : 'recruitmentPositions'}`)
|
|
|
|
+}
|
|
|
|
|
|
// 企业详情
|
|
// 企业详情
|
|
const info = ref({})
|
|
const info = ref({})
|
|
@@ -139,10 +150,6 @@ const recruitmentSpecialist = [
|
|
{ name: '徐有道', position: '招聘专员', desc: '正在招聘“运营专员”等职位', avatar: 'https://cdn.vuetifyjs.com/images/john.jpg' },
|
|
{ name: '徐有道', position: '招聘专员', desc: '正在招聘“运营专员”等职位', avatar: 'https://cdn.vuetifyjs.com/images/john.jpg' },
|
|
{ name: '方晓', position: '人事经理', desc: '正在招聘“运营专员”等职位', avatar: 'https://avatars0.githubusercontent.com/u/9064066?v=4&s=460' }
|
|
{ name: '方晓', position: '人事经理', desc: '正在招聘“运营专员”等职位', avatar: 'https://avatars0.githubusercontent.com/u/9064066?v=4&s=460' }
|
|
]
|
|
]
|
|
-
|
|
|
|
-// 有tab的是首页中热门企业模块
|
|
|
|
-const savedTab = new URLSearchParams(window.location.search).get('tab')
|
|
|
|
-if (savedTab) tab.value = 2
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|