|
@@ -2,12 +2,15 @@
|
|
<v-card class="card-box pa-4" :style="`background-color: ${jobFairInfo?.backgroundColour}`">
|
|
<v-card class="card-box pa-4" :style="`background-color: ${jobFairInfo?.backgroundColour}`">
|
|
<div class="position-relative">
|
|
<div class="position-relative">
|
|
<div class="text-center mb-5 mt-2 font-weight-bold font-size-20" style="color: #fff">{{ jobFairInfo?.title?.replace(/<\/?p[^>]*>/gi, '') }}</div>
|
|
<div class="text-center mb-5 mt-2 font-weight-bold font-size-20" style="color: #fff">{{ jobFairInfo?.title?.replace(/<\/?p[^>]*>/gi, '') }}</div>
|
|
- <div class="text-end mb-3">
|
|
|
|
- <v-btn color="#fff" :style="`color: ${jobFairInfo?.backgroundColour || 'var(--v-primary-base)'}`" @click="handleAdd">新增职位</v-btn>
|
|
|
|
- <v-btn color="#fff" class="mx-3" variant="outlined" @click="handleJoin">选择已发布的职位加入招聘会</v-btn>
|
|
|
|
- <v-btn color="#fff" v-if="jobFairInfo?.contentImg" variant="outlined" prepend-icon="mdi-share-all" @click="handleShare">我的分享海报</v-btn>
|
|
|
|
|
|
+ <div class="d-flex justify-space-between mb-3 align-center">
|
|
|
|
+ <div style="color: #fff;">剩余可发布职位数:{{ jobNum }}个</div>
|
|
|
|
+ <div>
|
|
|
|
+ <v-btn color="#fff" :style="`color: ${jobFairInfo?.backgroundColour || 'var(--v-primary-base)'}`" @click="handleAdd">新增职位</v-btn>
|
|
|
|
+ <v-btn color="#fff" class="mx-3" variant="outlined" @click="handleJoin">选择已发布的职位加入招聘会</v-btn>
|
|
|
|
+ <v-btn color="#fff" v-if="jobFairInfo?.contentImg" variant="outlined" prepend-icon="mdi-share-all" @click="handleShare">我的分享海报</v-btn>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <JobItem :items="jobList" @refresh="getJobList"></JobItem>
|
|
|
|
|
|
+ <JobItem :items="jobList" @refresh="getJobList(), getJobNum()"></JobItem>
|
|
|
|
|
|
<v-navigation-drawer v-model="showDrawer" location="right" temporary width="600">
|
|
<v-navigation-drawer v-model="showDrawer" location="right" temporary width="600">
|
|
<Loading :visible="positionLoading" :contained="true"></Loading>
|
|
<Loading :visible="positionLoading" :contained="true"></Loading>
|
|
@@ -88,7 +91,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
defineOptions({ name: 'jobFairJob'})
|
|
defineOptions({ name: 'jobFairJob'})
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
-import { getJobFairPosition, getJobFair } from '@/api/recruit/enterprise/jobFair'
|
|
|
|
|
|
+import { getJobFairPosition, getJobFair, getJobFairRights } from '@/api/recruit/enterprise/jobFair'
|
|
import { dealDictArrayData } from '@/utils/position.js'
|
|
import { dealDictArrayData } from '@/utils/position.js'
|
|
import JobItem from './job/item.vue'
|
|
import JobItem from './job/item.vue'
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
@@ -178,6 +181,14 @@ const getPositionList = async () => {
|
|
}
|
|
}
|
|
getJobList()
|
|
getJobList()
|
|
|
|
|
|
|
|
+// 可发布职位数
|
|
|
|
+const jobNum = ref(0)
|
|
|
|
+const getJobNum = async () => {
|
|
|
|
+ const result = await getJobFairRights(id)
|
|
|
|
+ jobNum.value = result?.num || 0
|
|
|
|
+}
|
|
|
|
+getJobNum()
|
|
|
|
+
|
|
// 获取招聘会信息
|
|
// 获取招聘会信息
|
|
const jobFairInfo = ref({})
|
|
const jobFairInfo = ref({})
|
|
const getJobFairInfo = async () => {
|
|
const getJobFairInfo = async () => {
|