|
@@ -20,12 +20,14 @@
|
|
</view>
|
|
</view>
|
|
<view class="ss-m-l-20 label-text">{{ item?.hrName }}</view>
|
|
<view class="ss-m-l-20 label-text">{{ item?.hrName }}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="list-shape">
|
|
|
|
|
|
+ <view class="list-shape" :style="{'border-radius': item?.hrName ? '0 0 12px 12px' : '12px'}">
|
|
<view>
|
|
<view>
|
|
<view class="titleBox">
|
|
<view class="titleBox">
|
|
- <view style="display: flex;align-items: center;">
|
|
|
|
|
|
+ <view style="display: flex; align-items: center;">
|
|
|
|
+ <image v-if="item.jobFairId" src="/static/svg/jobFair.svg" class=" ss-m-r-10" style="width: 20px; height: 20px;"></image>
|
|
<rich-text v-if="item.name?.indexOf('style') !== -1" class="job-name" :nodes="item.name"></rich-text>
|
|
<rich-text v-if="item.name?.indexOf('style') !== -1" class="job-name" :nodes="item.name"></rich-text>
|
|
<view v-else class="job-name">{{ formatName(item.name) }}</view>
|
|
<view v-else class="job-name">{{ formatName(item.name) }}</view>
|
|
|
|
+ <span v-if="item.status === '1'" class="color-error">(已关闭)</span>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="d-flex align-center justify-space-between ss-m-t-20">
|
|
<view class="d-flex align-center justify-space-between ss-m-t-20">
|
|
@@ -41,9 +43,12 @@
|
|
</span>
|
|
</span>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-if="item.jobFairName" class="color-primary font-size-13 ss-m-t-10">
|
|
|
|
+ 招聘会:{{ item.jobFairName }}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="sub-li-bottom">
|
|
<view class="sub-li-bottom">
|
|
- <view class="sub-li-bottom-item" @tap.stop="handleJoin(item)">添加至招聘会</view>
|
|
|
|
|
|
+ <view class="sub-li-bottom-item" @tap.stop="handleJoin(item)">克隆加入</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -56,15 +61,14 @@
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import { formatName } from '@/utils/getText.js'
|
|
import { formatName } from '@/utils/getText.js'
|
|
-import { joinJobFairPosition, getJobFairPositionList } from '@/api/jobFair.js'
|
|
|
|
|
|
+import { getJobAdvertisedList } from '@/api/new/position'
|
|
import { dealDictArrayData } from '@/utils/position'
|
|
import { dealDictArrayData } from '@/utils/position'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
|
|
|
|
const query = ref({
|
|
const query = ref({
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
- name: null,
|
|
|
|
- jobFairId: null
|
|
|
|
|
|
+ name: null
|
|
})
|
|
})
|
|
const items = ref([])
|
|
const items = ref([])
|
|
const more = ref('more')
|
|
const more = ref('more')
|
|
@@ -73,7 +77,7 @@ const total = ref(0)
|
|
const getData = async () => {
|
|
const getData = async () => {
|
|
try {
|
|
try {
|
|
more.value = 'loading'
|
|
more.value = 'loading'
|
|
- const { data } = await getJobFairPositionList(query.value)
|
|
|
|
|
|
+ const { data } = await getJobAdvertisedList(query.value)
|
|
|
|
|
|
if (!data.list.length) {
|
|
if (!data.list.length) {
|
|
more.value = 'noMore'
|
|
more.value = 'noMore'
|
|
@@ -113,27 +117,21 @@ const loadingMore = () => {
|
|
getData()
|
|
getData()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const jobFairId = ref('')
|
|
onLoad(async (options) => {
|
|
onLoad(async (options) => {
|
|
- query.value.jobFairId = options.jobFairId
|
|
|
|
|
|
+ jobFairId.value = options.jobFairId
|
|
|
|
|
|
query.value.pageNo = 1
|
|
query.value.pageNo = 1
|
|
await getData()
|
|
await getData()
|
|
})
|
|
})
|
|
|
|
|
|
-// 加入职位
|
|
|
|
|
|
+// 克隆职位-跳转招聘会职位编辑
|
|
const handleJoin = async (item) => {
|
|
const handleJoin = async (item) => {
|
|
- uni.showLoading({ title: '加载中' })
|
|
|
|
- try {
|
|
|
|
- await joinJobFairPosition({ jobId: item.id, jobFairId: query.value.jobFairId })
|
|
|
|
- uni.hideLoading()
|
|
|
|
- uni.showToast({ title: '加入成功', icon: 'success' })
|
|
|
|
-
|
|
|
|
- setTimeout(() => {
|
|
|
|
- uni.navigateBack({ delta: 1 })
|
|
|
|
- }, 1000)
|
|
|
|
- } catch (e) {
|
|
|
|
- uni.hideLoading()
|
|
|
|
- }
|
|
|
|
|
|
+ if (!item.id) return uni.showToast({ title: '缺少职位ID', icon: 'none' })
|
|
|
|
+
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pagesB/jobFair/editJob?jobId=${item.id}&jobFairId=${jobFairId.value}&isClone=1`
|
|
|
|
+ })
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -210,7 +208,6 @@ const handleJoin = async (item) => {
|
|
|
|
|
|
.list-shape {
|
|
.list-shape {
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
- border-radius: 0 0 12px 12px;
|
|
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
.titleBox {
|
|
.titleBox {
|
|
display: flex;
|
|
display: flex;
|