|
@@ -142,8 +142,6 @@ const soFar = ref(props.data?.expireTime === null ? [1] : [])
|
|
const getQuery = async () => {
|
|
const getQuery = async () => {
|
|
const valid = await unref(form).validate()
|
|
const valid = await unref(form).validate()
|
|
if (!valid) return
|
|
if (!valid) return
|
|
- contentRef.value?.isExceedValidate(true, true, '岗位职责字数超出限制')
|
|
|
|
- requirementValid.value?.isExceedValidate(true, true, '岗位要求字数超出限制')
|
|
|
|
|
|
|
|
const obj = {
|
|
const obj = {
|
|
hirePrice: 0,
|
|
hirePrice: 0,
|
|
@@ -152,6 +150,9 @@ const getQuery = async () => {
|
|
...formData.value
|
|
...formData.value
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // obj.contentLength = contentRef.value?.currentWordCount || 0
|
|
|
|
+ // obj.requirementLength = requirementValid.value?.currentWordCount || 0
|
|
|
|
+
|
|
obj.expireTime = obj.soFar ? null : dateToTimestamp(obj.expireTime)
|
|
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 })
|
|
obj && Object.keys(obj).length && Object.keys(obj).forEach(key => { if (['areaId', 'eduType', 'expType'].includes(key) && obj[key] === -1) obj[key] = null })
|
|
return obj
|
|
return obj
|