Browse Source

在线简历-基本信息

Xiao_123 6 tháng trước cách đây
mục cha
commit
03bae1d74c

+ 2 - 2
src/components/Position/longCompany.vue

@@ -7,7 +7,7 @@
             <v-img :src="item.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'" :alt="item.anotherName" :width="40" style="height: 40px;border-radius: 4px;"/>
           </div>
           <h3 :class="{'default-active': item.active }" class="cursor-pointer" @click="handleClickEnterprise(item, 'briefIntroduction')">{{ item.anotherName }}</h3>
-          <p>{{ item.industryName }}<span v-if="item.scaleName" class="mx-2">|</span>{{ item.scaleName }}</p>
+          <p>{{ item.industryName }}<span v-if="item.industryName && item.scaleName" class="mx-2">|</span>{{ item.scaleName }}</p>
         </div>
         <div v-if="item.active">
           <v-btn class="half-button ml-3" color="primary" size="small" @click.stop="handleCancel(item)">取消收藏</v-btn>
@@ -17,7 +17,7 @@
         <div class="chipBox">
           <div class="d-inline-block" v-for="(val, i) in item.welfareList" :key="i">
             <span>{{ val }}</span>
-            <span class="mx-1" v-if="i !== item.welfareList.length - 1 && val && item.welfareList[i + 1]">|</span>
+            <span class="septal-line" v-if="i !== item.welfareList.length - 1 && val && item.welfareList[i + 1]"></span>
           </div>
         </div>
         <div class="position" @click="handleClickEnterprise(item, 'recruitmentPositions')">

+ 2 - 2
src/views/recruit/personal/PersonalCenter/jobFeedback/components/interview/item.vue

@@ -23,10 +23,10 @@
       </div>
     </div>
     <div class="info-content">
-        <div class="font-size-16 color-333 mr-5" style="width: 322px;">
+        <div class="font-size-16 color-333 mr-5" style="width: 470px;">
           <div v-if="tab === '1' || tab === '98'" class="font-size-13 mb-1" :style="{'color': tab === '1' ? 'var(--v-primary-base)' : 'var(--v-error-base)'}">您已于{{ timesTampChange(val.updateTime, 'Y-M-D h:m') }}{{ tab === '1' ? '接受' : '拒绝'}}了此面试邀请</div>
           <div>面试时间:{{ timesTampChange(val.time, 'Y-M-D h:m') }}</div>
-          <div class="mt-3 ellipsis" style="max-width: 322px;">面试地点:{{ val.address }}</div>
+          <div class="mt-3 ellipsis" style="max-width: 470px;">面试地点:{{ val.address }}</div>
         </div>
         <div class="job-info color-666">
           <div class="job-name ellipsis" style="max-width: 410px;">

+ 6 - 18
src/views/recruit/personal/PersonalCenter/resume/online/components/basicInfo.vue

@@ -115,7 +115,6 @@
 import CtForm from '@/components/CtForm'
 import Snackbar from '@/plugins/snackbar'
 import { getDict } from '@/hooks/web/useDictionaries'
-// import { timesTampChange } from '@/utils/date'
 import { updatePersonAvatar, saveResumeBasicInfo } from '@/api/recruit/personal/resume'
 import { useUserStore } from '@/store/user'
 import { uploadFile } from '@/api/common'
@@ -123,7 +122,7 @@ import { getUserAvatar } from '@/utils/avatar'
 import { useI18n } from '@/hooks/web/useI18n'
 import portrait from './portrait.vue'
 import { checkEmail } from '@/utils/validate'
-import { ref } from 'vue';
+import { ref } from 'vue'
 defineOptions({name: 'resume-components-basicInfo'})
 const emit = defineEmits(['complete'])
 
@@ -394,7 +393,6 @@ const handleSave = async () => {
   if (!valid) return
   const obj = {}
   items.value.options.forEach(e => {
-    // if (e.type === 'datepicker') obj[e.key] = getTimeStamp(e.value)
     obj[e.key] = e.value
   })
   if (!obj.sex) return Snackbar.warning('请先选择您的性别')
@@ -407,26 +405,16 @@ const handleSave = async () => {
 
 }
 
-// 获取字典内容
-const getDictData = async (dictTypeName) => {
-  const item = items.value.options.find(e => e.dictTypeName === dictTypeName)
-  if (item) {
-    const { data } = await getDict(dictTypeName)
-    item.items = data
-  }
-}
-
-items.value.options.forEach((e, index) => {
+items.value.options.forEach(async (e, index) => {
   if ((index + 2) % 2 === 0) e.flexStyle = 'mr-3'
-  if (e.dictTypeName) getDictData(e.dictTypeName) // 查字典set options
+  if (e.dictTypeName) {
+    const { data } = await getDict(e.dictTypeName)
+    e.items = data
+  }
   const infoExist = baseInfo.value && Object.keys(baseInfo.value).length
   if (infoExist && baseInfo.value[e.key]) e.value = baseInfo.value[e.key]
-  // 日期相关
-  // if (e.type === 'datepicker') e.value = timesTampChange(e.value, 'Y-M-D')
   if (e.value === undefined || e.value === null || e.value === '') completeStatus = false
 })
-// 完成度展示
-  
 getDict('areaTreeData', null, 'areaTreeData').then(({ data }) => {
   data = data?.length && data || []
   if (!data?.length) return console.error('areaTreeData获取失败!')

+ 3 - 3
src/views/recruit/personal/PersonalCenter/resume/online/index.vue

@@ -16,9 +16,9 @@
     </div>
     <div class="pt-3 contentBox px-1" id="contentBox" ref="scrollBox">
       <component
-        v-for="(val, index) in items"
-        :key="val.id"
-        :is="paths[index]"
+        v-for="(val, index) in paths"
+        :key="index"
+        :is="val"
         @complete="complete"
       />
     </div>