Browse Source

岗位要求富文本判断

lifanagju_citu 3 months ago
parent
commit
e01197befd

+ 3 - 2
components/positionItem/components/baseInfo.vue

@@ -142,8 +142,8 @@ const soFar = ref(props.data?.expireTime === null ? [1] : [])
 const getQuery = async () => {
   const valid = await unref(form).validate()
   if (!valid) return
-  if (contentRef.value?.isExceedValidate(true, '岗位职责字数超出限制')) return
-  if (requirementValid.value?.isExceedValidate(true, '岗位要求字数超出限制')) return
+  contentRef.value?.isExceedValidate(true, true, '岗位职责字数超出限制')
+  requirementValid.value?.isExceedValidate(true, true, '岗位要求字数超出限制')
 
   const obj = {
     hirePrice: 0,
@@ -151,6 +151,7 @@ const getQuery = async () => {
     hire: false,
     ...formData.value
   }
+
   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

+ 1 - 3
components/positionItem/index.vue

@@ -54,7 +54,7 @@ let fairId = ''
 onLoad((options) => {
   jobId = options?.jobId || props.jobId || ''
   fairId = options?.fairId || ''
-  console.log('jobId:', jobId); console.log('fairId:', fairId)
+  // console.log('jobId:', jobId); console.log('fairId:', fairId)
   if (jobId) getPositionDetail(jobId)
   else {
     show.value = showExtend.value = true
@@ -69,7 +69,6 @@ const getPositionDetail = async (id) => {
   if (!res?.data && !Object.keys(res.data).length) return
   itemData.value = {...res.data, ...dealDictObjData({}, res.data)}
   show.value = true
-  console.log('itemData:', itemData.value)
   if (itemData.value?.type === '3') {
     isStudent.value = true
     getPositionExtendDetail(id)
@@ -84,7 +83,6 @@ const getPositionExtendDetail = async (jobId) => {
   const res = await getJobAdvertisedExtend(jobId)
   extendData.value = res?.data || {}
   showExtend.value = true
-  console.log('extendData:', extendData.value)
 }
 
 const baseInfoRef = ref(null)

+ 1 - 1
layout/components/authModal/login/index.vue

@@ -125,7 +125,7 @@ const state = ref({
     code: ''
   },
   account: {
-    phone: '1687284007@qq.com',
+    phone: '1687284007@qq.com', // 1687284007 18406571584 
     password: 'Citu123456'
   },
   rules: {