Procházet zdrojové kódy

完成度展示: 非必填的算已完成

lifanagju_citu před 7 měsíci
rodič
revize
cb0ccc77ec

+ 1 - 1
src/views/recruit/enterprise/entInfoSetting/informationSettingsComponents/basicInfo.vue

@@ -215,7 +215,7 @@ const getBaseInfo = async () => {
       item.value = data[item.key] ? data[item.key] : item.default
     } else item.value = data[item.key]
     // 完成度展示
-    if (item.rules && item.value !== undefined && item.value !== null && item.value !== '') completeCount++
+    if (!item.rules || (item.value !== undefined && item.value !== null && item.value !== '')) completeCount++
   })
   // 完成度展示
   const totalCount = formItems.value.options?.length || 0

+ 1 - 3
src/views/recruit/enterprise/entInfoSetting/informationSettingsComponents/businessInformation.vue

@@ -177,9 +177,7 @@ const getBaseInfo = async () => {
     formItems.value.options.forEach(item => {
       item.value = data[item.key]
       // 完成度展示
-      if (item.key !== 'formerName') {
-        if (item.rules && item.value !== undefined && item.value !== null && item.value !== '') completeCount++
-      }
+      if (!item.rules || (item.value !== undefined && item.value !== null && item.value !== '')) completeCount++
     })
     // 完成度展示
     completeFun(completeCount)