소스 검색

至少留有一个职业轨迹

lifanagju_citu 4 일 전
부모
커밋
0e755ca810
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/menduner/system/talentMap/components/card.vue

+ 2 - 1
src/views/menduner/system/talentMap/components/card.vue

@@ -286,6 +286,7 @@ const resetQuery = () => {
 const dealData = (item) => {
   itemData.value = { ...item }
   careerTrajectory.value = item?.career_path ? JSON.parse(JSON.stringify(item.career_path)) : []
+  if (!careerTrajectory.value?.length) careerTrajectory.value = [{ company_name: null,  position: null, current_date: null }]
   Object.keys(formQuery.value).forEach(key => {
     formQuery.value[key] = item[key] || null
   })
@@ -354,7 +355,7 @@ const formQuery = ref({
   postal_code_zh: undefined,
   postal_code_en: undefined,
 })
-const careerTrajectory = ref([])
+const careerTrajectory = ref([{ company_name: null,  position: null, current_date: null }])
 
 const file = ref(null)
 const uploadChange = (raw) => {