Jelajahi Sumber

学生注册:紧急联系人信息改为非必填项

Xiao_123 1 bulan lalu
induk
melakukan
9a76e19f3b

+ 15 - 17
src/plugins/dialogExtend/components/studentInfoForm.vue

@@ -185,23 +185,21 @@ const items = ref({
       outlined: true,
       rules: [v => !!v || '请填写学号']
     },
-    // {
-    //   type: 'text',
-    //   key: 'emergencyContactName',
-    //   value: '',
-    //   default: null,
-    //   label: '紧急联系人姓名 *',
-    //   outlined: true,
-    //   rules: [v => !!v || '请填写紧急联系人姓名']
-    // },
-    // {
-    //   type: 'phoneNumber',
-    //   key: 'emergencyContactPhone',
-    //   value: '',
-    //   clearable: true,
-    //   label: '紧急联系人手机号 *',
-    //   rules: [v => !!v || '请填写紧急联系人手机号']
-    // },
+    {
+      type: 'text',
+      key: 'emergencyContactName',
+      value: '',
+      default: null,
+      label: '紧急联系人姓名',
+      outlined: true
+    },
+    {
+      type: 'phoneNumber',
+      key: 'emergencyContactPhone',
+      value: '',
+      clearable: true,
+      label: '紧急联系人手机号'
+    },
   ]
 })
 

+ 14 - 16
src/views/recruit/personal/PersonalCenter/student/information/index.vue

@@ -104,22 +104,20 @@ const items = ref({
       outlined: true,
       rules: [v => !!v || '请填写学号']
     },
-    // {
-    //   type: 'text',
-    //   key: 'emergencyContactName',
-    //   value: '',
-    //   default: null,
-    //   label: '紧急联系人姓名 *',
-    //   outlined: true,
-    //   rules: [v => !!v || '请填写紧急联系人姓名']
-    // },
-    // {
-    //   type: 'phoneNumber',
-    //   key: 'emergencyContactPhone',
-    //   value: '',
-    //   label: '紧急联系人手机号 *',
-    //   rules: [v => !!v || '请填写紧急联系人手机号']
-    // }
+    {
+      type: 'text',
+      key: 'emergencyContactName',
+      value: '',
+      default: null,
+      label: '紧急联系人姓名',
+      outlined: true
+    },
+    {
+      type: 'phoneNumber',
+      key: 'emergencyContactPhone',
+      value: '',
+      label: '紧急联系人手机号'
+    }
   ]
 })
 

+ 15 - 17
src/views/recruit/personal/PersonalCenter/studentInformation/index.vue

@@ -80,23 +80,21 @@ const items = ref({
       outlined: true,
       rules: [v => !!v || '请填写学号']
     },
-    // {
-    //   type: 'text',
-    //   key: 'emergencyContactName',
-    //   value: '',
-    //   default: null,
-    //   label: '紧急联系人姓名 *',
-    //   outlined: true,
-    //   rules: [v => !!v || '请填写紧急联系人姓名']
-    // },
-    // {
-    //   type: 'phoneNumber',
-    //   key: 'emergencyContactPhone',
-    //   value: '',
-    //   clearable: true,
-    //   label: '紧急联系人手机号 *',
-    //   rules: [v => !!v || '请填写紧急联系人手机号']
-    // },
+    {
+      type: 'text',
+      key: 'emergencyContactName',
+      value: '',
+      default: null,
+      label: '紧急联系人姓名',
+      outlined: true
+    },
+    {
+      type: 'phoneNumber',
+      key: 'emergencyContactPhone',
+      value: '',
+      clearable: true,
+      label: '紧急联系人手机号'
+    },
   ]
 })
 

+ 2 - 2
src/views/recruit/teacher/studentList/components/other.vue

@@ -15,14 +15,14 @@
         <span>联系电话:</span>
         <span class="ml">{{ info?.person?.phone }}</span>
       </div>
-      <!-- <div class="my">
+      <div class="my">
         <span>紧急联系人:</span>
         <span class="ml">{{ info?.emergencyContactName }}</span>
       </div>
       <div class="my">
         <span>紧急联系人电话:</span>
         <span class="ml">{{ info?.emergencyContactPhone }}</span>
-      </div> -->
+      </div>
     </div>
 
   </div>

+ 2 - 2
src/views/recruit/teacher/studentList/index.vue

@@ -108,8 +108,8 @@ const headers = [
   { title: '所属专业', key: 'major.nameCn', sortable: false },
   { title: '所在班级', key: 'schoolClass.name', sortable: false },
   { title: '学号', key: 'studentNo', sortable: false },
-  // { title: '紧急联系人', key: 'emergencyContactName', sortable: false },
-  // { title: '紧急联系人电话', key: 'emergencyContactPhone', sortable: false },
+  { title: '紧急联系人', key: 'emergencyContactName', sortable: false },
+  { title: '紧急联系人电话', key: 'emergencyContactPhone', sortable: false },
   { title: '操作', key: 'actions', sortable: false }
 ]