|
@@ -1,9 +1,12 @@
|
|
|
<template>
|
|
|
<div class="default-width mb-5">
|
|
|
<div class="banner px-6">
|
|
|
- <div class="banner-title">
|
|
|
- <h1 class="ellipsis">{{ info.name }}</h1>
|
|
|
- <span class="salary">{{ info.payFrom }}-{{ info.payTo }}/{{ info.payName }}</span>
|
|
|
+ <div class="banner-title d-flex justify-space-between">
|
|
|
+ <div class="d-flex align-center">
|
|
|
+ <h1 class="ellipsis">{{ info.name }}</h1>
|
|
|
+ <span class="salary">{{ info.payFrom }}-{{ info.payTo }}/{{ info.payName }}</span>
|
|
|
+ <publicRecruitment v-if="info.hire" class="ml-5" width="50" height="50"></publicRecruitment>
|
|
|
+ </div>
|
|
|
<span class="refresh-time">{{ timesTampChange(info.updateTime) }} {{ $t('common.refresh') }} <v-icon color="warning" size="20">mdi-alert-outline</v-icon></span>
|
|
|
</div>
|
|
|
<div class="banner-tags mt-4">
|
|
@@ -15,7 +18,11 @@
|
|
|
<div class="banner-tools my-4">
|
|
|
<v-chip size="small" label v-for="(k, i) in info.tagList" :key="i" class="mr-1" color="primary">{{ k }}</v-chip>
|
|
|
</div>
|
|
|
- <div class="d-flex justify-end mb-5">
|
|
|
+ <div class="d-flex justify-space-between mb-5">
|
|
|
+ <div>
|
|
|
+ <v-chip v-if="info.hire && info.hirePrice && info.hirePrice > 0" label color="primary">赏金:{{ commissionCalculation(info.hirePrice, 1) }}元</v-chip>
|
|
|
+ <v-chip v-if="info.hire && info.hirePoint && info.hirePoint > 0" label color="primary" class="ml-1">积分:{{ commissionCalculation(info.hirePoint, 1) }}点</v-chip>
|
|
|
+ </div>
|
|
|
<div class="banner-tools-btns">
|
|
|
<v-btn class="button-item radius" color="primary" variant="outlined" @click="handleEdit">{{ $t('common.edit') }}</v-btn>
|
|
|
</div>
|
|
@@ -38,9 +45,6 @@
|
|
|
<div class="contact-info">{{ info.enterprise.name }} · {{ info.contact.postNameCn }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div class="float-right">
|
|
|
- <v-chip color="primary" label>{{ $t('position.currentOnline') }}</v-chip>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
<v-divider class="my-3"></v-divider>
|
|
|
<div>
|
|
@@ -77,6 +81,7 @@ import { useRouter } from 'vue-router'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { getJobDetails } from '@/api/position'
|
|
|
import { dealDictObjData } from '@/utils/position'
|
|
|
+import { commissionCalculation } from '@/utils/position'
|
|
|
|
|
|
const router = useRouter()
|
|
|
const { id } = router.currentRoute.value.params
|
|
@@ -100,8 +105,8 @@ const desc = [
|
|
|
]
|
|
|
|
|
|
const handleEdit = () => {
|
|
|
- if (!enterprise.value.id) return
|
|
|
- window.open(`/recruit/enterprise/position/edit?id=${enterprise.value.id}`)
|
|
|
+ if (!id) return
|
|
|
+ window.open(`/recruit/enterprise/position/edit?id=${id}`)
|
|
|
}
|
|
|
</script>
|
|
|
|