Parcourir la source

企业注册:效验至少填写两个联系人

Xiao_123 il y a 5 jours
Parent
commit
08b401d8ba
1 fichiers modifiés avec 10 ajouts et 3 suppressions
  1. 10 3
      src/views/recruit/entRegister/register.vue

+ 10 - 3
src/views/recruit/entRegister/register.vue

@@ -74,7 +74,14 @@
 
     <Loading :visible="loading"></Loading>
     
-    <CtDialog :visible="showContactList" title="添加联系人" :footer="true" :widthType="isMobile ? 5 : 3" @close="showContactList = false" @submit="contactSubmit">
+    <CtDialog
+      :visible="showContactList"
+      title="添加联系人"
+      :footer="true"
+      :widthType="isMobile ? 5 : 3"
+      @close="showContactList = false"
+      @submit="contactSubmit"
+    >
       <div style="min-height: 50vh;">
         <div>
           <div class="color-warning mb-3">
@@ -299,7 +306,8 @@ const handleCommit = async () => {
 
   const businessLicenseUrl = licenseUrl.value;
   if (!prepareValue.value && !businessLicenseUrl) return Snackbar.warning('请上传营业执照图片')
-  if (!contactList || !contactList.length || !contactList[0].contactName) return Snackbar.warning('请添加联系人信息')
+  if (!contactList || !contactList.length || !contactList[0].contactName) return Snackbar.warning('请添加联系人')
+  if (contactList.length <= 1) return Snackbar.warning('请添加至少两个联系人')
   const params = {
     businessLicenseUrl,
     prepare: prepareValue.value,
@@ -503,7 +511,6 @@ const passwordConfirmObj = {
     },
   ],
 }
-
 </script>
 
 <style lang="scss" scoped>