Browse Source

至少留有一个职业轨迹

lifanagju_citu 4 ngày trước cách đây
mục cha
commit
0e755ca810
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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) => {