瀏覽代碼

电话号码和常用邮箱必填

lifanagju_citu 6 月之前
父節點
當前提交
e0b2a90f6a

+ 1 - 2
src/plugins/necessaryInfo/components/infoForm.vue

@@ -18,7 +18,6 @@ const props = defineProps({
   }
 })
 const setInfo = ref(props.option?.setInfo ? props.option.setInfo : {})
-// console.log(1, 'setInfo', setInfo)
 const formPageRef = ref()
 let query = reactive({})
 
@@ -74,7 +73,7 @@ const items = ref({
       key: 'email',
       value: null,
       default: null,
-      label: '常用邮箱',
+      label: '常用邮箱 *',
       outlined: true,
       rules: [
         value => {

+ 8 - 3
src/views/recruit/personal/PersonalCenter/resume/online/components/basicInfo.vue

@@ -251,19 +251,24 @@ const items = ref({
       key: 'phone',
       value: userInfo?.value?.phone || '',
       default: null,
-      label: '电话号码',
+      label: '电话号码 *',
       col: 6,
-      outlined: true
+      outlined: true,
+      rules: [v => !!v || '请填写联系手机号']
     },
     {
       type: 'text',
       key: 'email',
       value: null,
       default: null,
-      label: '常用邮箱',
+      label: '常用邮箱 *',
       col: 6,
       outlined: true,
       rules: [
+        value => {
+          if (value) return true
+          return '请输入联系邮箱'
+        },
         value => {
           if (value && !checkEmail(value)) return '请输入正确的电子邮箱'
           return true