|
@@ -70,7 +70,7 @@ const props = defineProps({
|
|
|
const formData = ref({
|
|
|
bizId: props.data?.bizId || '',
|
|
|
positionId: props.data?.positionId || '',
|
|
|
- name: props.data?.name || '', // + new Date().getTime().toString()
|
|
|
+ name: props.data?.name || '', // + '测试' + new Date().getTime().toString()
|
|
|
expireTime: props.data?.expireTime || getNextDate(15, 'YYYY-MM-DD', 'day'),
|
|
|
content: props.data?.content || '',
|
|
|
requirement: props.data?.requirement || ''
|
|
@@ -167,7 +167,6 @@ const contentRef = ref()
|
|
|
const requirementRef = ref()
|
|
|
const soFar = ref(props.data?.expireTime === null ? [1] : [])
|
|
|
const getQuery = async () => {
|
|
|
- console.log('基本信息:', formData.value)
|
|
|
const valid = await unref(form).validate()
|
|
|
if (!valid) return
|
|
|
|
|
@@ -181,6 +180,7 @@ const getQuery = async () => {
|
|
|
obj.source = obj.bizId ? '2' : '0' // 职位来源(0职位管理|1众聘职位|2招聘会)
|
|
|
obj.expireTime = obj.soFar ? null : dateToTimestamp(obj.expireTime)
|
|
|
obj && Object.keys(obj).length && Object.keys(obj).forEach(key => { if (['areaId', 'eduType', 'expType'].includes(key) && obj[key] === -1) obj[key] = null })
|
|
|
+
|
|
|
return obj
|
|
|
}
|
|
|
|