@@ -152,7 +152,7 @@ const dealRouteQuery = () => {
const arr = Object.keys(query).map(e => {
return `${e}=${query[e]}`
})
- const str = ['key=recruitmentPositions', ...arr].join('&')
+ const str = arr.join('&')
if (str) router.push(`${route.path}?${str}`)
}
@@ -109,7 +109,7 @@ const handleTabClick = () => {
const handleMorePosition = () => {
- window.open(`/enterprise/details/${props.id}?key=recruitmentPositions`)
+ window.open(`/company/details/${props.id}?key=recruitmentPositions`)
// 企业埋点
@@ -62,13 +62,13 @@ const handleClickPosition = (k) => {
// 企业详情
const handleClickEnterprise = (item) => {
- window.open(`/enterprise/details/${item.enterprise.id}?key=briefIntroduction`)
+ window.open(`/company/details/${item.enterprise.id}?key=briefIntroduction`)
// 查看更多职位
const handleMoreEnterprise = (item) => {
if (!item.enterprise.id) return
- window.open(`/enterprise/details/${item.enterprise.id}?key=recruitmentPositions`)
+ window.open(`/company/details/${item.enterprise.id}?key=recruitmentPositions`)
</script>
@@ -47,7 +47,7 @@ getData()
const handleEnterprise = (val) => {
const key = val ? 'recruitmentPositions' : 'briefIntroduction'
- window.open(`/enterprise/details/${props.info.enterprise.id}?key=${key}`)
+ window.open(`/company/details/${props.info.enterprise.id}?key=${key}`)
@@ -11,7 +11,7 @@
</div>
<div class="text-center more-btn">
- <v-btn color="primary" variant="outlined" class="buttons" :to="`/enterprise/details/${props.info.enterpriseId}?key=recruitmentPositions`">查看全部职位</v-btn>
+ <v-btn color="primary" variant="outlined" class="buttons" :to="`/company/details/${props.info.enterpriseId}?key=recruitmentPositions`">查看全部职位</v-btn>
</template>
@@ -74,7 +74,7 @@ const handlePosition = (item) => {
window.open(`/recruit/position/details/${item.job.positionId}`)
const handleEnterprise = (item) => {
- window.open(`/enterprise/details/${item.enterprise.enterpriseId}?key=briefIntroduction`)
+ window.open(`/company/details/${item.enterprise.enterpriseId}?key=briefIntroduction`)
@@ -34,16 +34,16 @@ const recruit = [
]
},
{
- path: '/enterprise/details/:id',
+ path: '/company/details/:id',
component: Layout,
- name: 'enterpriseDetails',
+ name: 'companyDetails',
meta: {
title: '企业详情'
children: [
- component: () => import('@/views/enterprise/components/enterpsieDetails.vue')
+ component: () => import('@/views/enterprise/components/enterpriseDetails.vue')
@@ -13,7 +13,8 @@ export const useUserStore = defineStore('user',
state: () => ({
accountInfo: {}, // 登录返回的信息
userInfo: {}, // 当前登录账号信息
- baseInfo: {} // 人才信息
+ baseInfo: {}, // 人才信息
+ isEnterpriseAdmin: false // 企业管理员
}),
actions: {
// 短信登录
@@ -44,6 +44,6 @@ const handlePosition = (item) => {
window.open(`/recruit/position/details/${item.positionId}`)
- window.open(`/enterprise/details/${item.enterpriseId}?key=briefIntroduction`)
+ window.open(`/company/details/${item.enterpriseId}?key=briefIntroduction`)
@@ -26,7 +26,7 @@ defineProps({
const welfareList = ['双休', '五险一金', '零食下午茶', '年终奖']
- window.open(`/enterprise/details/${item.id}?key=briefIntroduction`)
+ window.open(`/company/details/${item.id}?key=briefIntroduction`)
@@ -52,7 +52,7 @@ const handle = (val) => {
const obj = selectedItems.value.find(e => e === val)
if (props.isSingle) {
// 单选
- title.value = (obj || val === '2') ? '学历要求' : '学历要求(1)'
+ title.value = obj ? '学历要求' : '学历要求(1)'
selectedItems.value = obj ? [] : [val]
} else {
// 多选