liyongli 1 месяц назад
Родитель
Сommit
4ae991f775

+ 2 - 1
src/view/fenghui/form.vue

@@ -303,7 +303,8 @@
                 </van-field>
 
                 <!-- 拟参加的活动  -->
-                <van-field size="large" label-align="top" v-model="formData.activitiesAttended"
+                <van-field size="large" label-align="top" v-model="formData.activitiesAttended" required
+                    :rules="[{ required: true, trigger: 'onBlur', message: lang[langType].activitiesAttendedContent }]"
                     :placeholder="lang[langType].activitiesAttendedContent">
                     <template #label>
                         <span :class="langType === 'zh' ? 'label' : ''"

+ 2 - 1
src/view/fenghui/form1.vue

@@ -272,7 +272,8 @@
                 </van-field>
 
                 <!-- 拟参加的活动  -->
-                <!-- <van-field size="large" label-align="top" v-model="formData.activitiesAttended"
+                <!-- <van-field size="large" label-align="top" v-model="formData.activitiesAttended" required
+                    :rules="[{ required: true, trigger: 'onBlur', message: lang[langType].activitiesAttendedContent }]"
                     :placeholder="lang[langType].activitiesAttendedContent">
                     <template #label>
                         <span :class="langType === 'zh' ? 'label' : ''"

+ 2 - 1
src/view/fenghui/form1Recurrence.vue

@@ -273,7 +273,8 @@
                 </van-field>
 
                 <!-- 拟参加的活动  -->
-                <!-- <van-field size="large" label-align="top" v-model="formData.activitiesAttended"
+                <!-- <van-field size="large" label-align="top" v-model="formData.activitiesAttended" required
+                    :rules="[{ required: true, trigger: 'onBlur', message: lang[langType].activitiesAttendedContent }]"
                     :placeholder="lang[langType].activitiesAttendedContent">
                     <template #label>
                         <span :class="langType === 'zh' ? 'label' : ''"

+ 2 - 1
src/view/fenghui/formRecurrence.vue

@@ -301,7 +301,8 @@
                 </van-field>
 
                 <!-- 拟参加的活动  -->
-                <van-field size="large" label-align="top" v-model="formData.activitiesAttended"
+                <van-field size="large" label-align="top" v-model="formData.activitiesAttended" required
+                    :rules="[{ required: true, trigger: 'onBlur', message: lang[langType].activitiesAttendedContent }]"
                     :placeholder="lang[langType].activitiesAttendedContent">
                     <template #label>
                         <span :class="langType === 'zh' ? 'label' : ''"

+ 2 - 2
src/view/fenghui/lang.js

@@ -207,8 +207,8 @@ export default {
         "staff": "For Chinese staff",
         "volunteer": "For Chinese volunteer",
         "upRegistration": "Registration information updated successfully",
-        "active0": "Will you attend the opening ceremony on the morning of May 15th",
-        "active": "Which of the sub-forums on May 15th will you attend ?",
+        "active0": "Will you attend the opening ceremony on the morning of May 15th?",
+        "active": "Which of the sub-forums on May 15th will you attend?",
         "active0Content": "Will you attend the opening ceremony on the morning of May 15th",
         "active1": "Sharing Opportunities for the Digital Economy Development",
         "active2": "Jointly Maintaining Safety in Cyberspace ",