|
@@ -5,7 +5,7 @@
|
|
|
<view class="decoration decoration1">1</view>
|
|
|
</template>
|
|
|
<!-- 基本信息 -->
|
|
|
- <baseInfo ref="baseInfoRef" :isFair="Boolean(fairId)" :data="itemData"></baseInfo>
|
|
|
+ <baseInfo ref="baseInfoRef" :data="itemData"></baseInfo>
|
|
|
</uni-section>
|
|
|
<uni-section class="ss-m-y-20" title="岗位要求">
|
|
|
<template v-slot:decoration>
|
|
@@ -33,16 +33,16 @@
|
|
|
<script setup>
|
|
|
import baseInfo from './components/baseInfo.vue'
|
|
|
import requirement from './components/requirement.vue'
|
|
|
-import extendInfo from './components/extend.vue'
|
|
|
+// import extendInfo from './components/extend.vue'
|
|
|
import { ref, nextTick } from 'vue'
|
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
|
import payPopup from '@/components/payPopup'
|
|
|
import { dealDictObjData } from '@/utils/position'
|
|
|
import {
|
|
|
saveJobAdvertised,
|
|
|
- saveJobAdvertisedExtend,
|
|
|
+ // saveJobAdvertisedExtend,
|
|
|
getJobDetails,
|
|
|
- getJobAdvertisedExtend,
|
|
|
+ // getJobAdvertisedExtend,
|
|
|
} from '@/api/new/position'
|
|
|
const props = defineProps({
|
|
|
jobId: String,
|
|
@@ -50,10 +50,8 @@ const props = defineProps({
|
|
|
})
|
|
|
|
|
|
const jobId = ref('')
|
|
|
-const fairId = ref('')
|
|
|
onLoad((options) => {
|
|
|
jobId.value = options?.jobId || props.jobId || ''
|
|
|
- fairId.value = options?.fairId || props.fairId || ''
|
|
|
if (jobId.value) getPositionDetail(jobId.value)
|
|
|
else {
|
|
|
show.value = true
|
|
@@ -110,11 +108,11 @@ const getSubmitParams = async() => {
|
|
|
submitParams = {
|
|
|
...baseInfo,
|
|
|
...requirement,
|
|
|
- fair: Boolean(fairId.value), // fair:是否为招聘会职位编辑-必填
|
|
|
+ fair: props.fairId ? true : false, // fair:是否为招聘会职位编辑-必填
|
|
|
currency_type: 0, // currency_type: 写死0(人民币)
|
|
|
- source: fairId.value || baseInfo.bizId ? '2' : '0', // source: 0职位管理|1招聘会
|
|
|
- bizId: fairId.value || baseInfo.bizId || null,
|
|
|
+ source: props.fairId ? '2' : '0', // source: 职位来源(0职位管理|1众聘职位|2招聘会)
|
|
|
}
|
|
|
+ if (props.fairId) submitParams.bizId = props.fairId // 招聘会职位添加招聘会id
|
|
|
|
|
|
if (!submitParams.salary) {
|
|
|
if (!submitParams.payFrom) return uni.showToast({ title: '请填写最低薪资', icon: 'none', duration: 2000 })
|
|
@@ -143,7 +141,12 @@ const saveEmit = async (retry) => {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- uni.switchTab({ url: '/pages/index/position' })
|
|
|
+ if (!props.fairId) uni.switchTab({ url: '/pages/index/position' })
|
|
|
+ else {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: `/pagesB/jobFair/details?id=${props.fairId}`
|
|
|
+ })
|
|
|
+ }
|
|
|
// const title = itemData.value?.status === '99' '编辑成功,请前往支付' : jobId.value ? '编辑成功' : '发布成功'
|
|
|
setTimeout(() => { uni.showToast({ title: jobId.value ? '编辑成功' : '发布成功', icon: 'success' }) }, 1000)
|
|
|
|