Jelajahi Sumber

调整学生信息详情页面布局,床位信息管理模块bug修改

hzj18279462576@163.com 1 tahun lalu
induk
melakukan
8de889101c
2 mengubah file dengan 19 tambahan dan 16 penghapusan
  1. 5 8
      src/views/bed/bed.vue
  2. 14 8
      src/views/studentInfo/studentInfo.vue

+ 5 - 8
src/views/bed/bed.vue

@@ -1309,7 +1309,7 @@ const schoolFormChange = async (val) => {
   ruleForm.dormitory = null;
   ruleForm.college = null;
 
-  ruleForm.college = null;
+  ruleForm.sex = null;
   ruleForm.major = null;
   ruleForm.classstr = null;
   majorFormData.value = null;
@@ -1343,6 +1343,7 @@ const buildFormChange = async (val) => {
   ruleForm.college = null;
   ruleForm.major = null;
   ruleForm.classstr = null;
+  ruleForm.sex = null;
   majorFormData.value = null;
   classstrFormData.value = null;
 
@@ -1356,24 +1357,20 @@ const buildFormChange = async (val) => {
     schoolId: ruleForm.school.split(",")[1],
     buildId: val.split(",")[1],
   });
-  // 选择楼栋时判断是性别
-  buildFormData.value.forEach((i) => {
-    if (i.id == val.split(",")[1]) {
-      ruleForm.sex = i.sex;
-    }
-  });
 };
 const dormitoryFormChange = (val) => {
-  // 选择寝室号 时判断是 所属学院
+  // 选择寝室号 时判断是 所属学院和性别
   if (val) {
     dormitoryFormData.value.forEach((i) => {
       if (i.id == val.split(",")[1]) {
         ruleForm.college = `${i.college},${i.collegeId}`;
         collegeFormChange(ruleForm.college);
+        ruleForm.sex = i.sex;
       }
     });
   } else {
     ruleForm.college = null;
+    ruleForm.sex = null;
     ruleForm.major = null;
     ruleForm.classstr = null;
     majorFormData.value = null;

+ 14 - 8
src/views/studentInfo/studentInfo.vue

@@ -982,7 +982,7 @@
           <h4>&nbsp;&nbsp;填报明细</h4>
         </div>
         <div class="filling_details">
-          <div class="el-form-item">
+          <div class="info_content">
             <div class="el-form-item">
               <span class="title">手机号码 :</span>
               <span class="title_content">{{ ruleForm.phone }}</span>
@@ -1016,7 +1016,7 @@
             </div>
           </div>
           <div class="native family">
-            <div class="email">
+            <div class="info_content">
               <div class="el-form-item">
                 <span class="title">按时报到 :</span>
                 <span class="title_content">{{
@@ -1027,8 +1027,6 @@
                 <span class="title">邮编 :</span>
                 <span class="title_content">{{ ruleForm.zipCode }}</span>
               </div>
-            </div>
-            <div class="traffic">
               <div class="el-form-item">
                 <span class="title">交通方式 :</span>
                 <span class="title_content">{{ ruleForm.trafficMethod }}</span>
@@ -1097,7 +1095,7 @@
               index="1"
             />
             <el-table-column align="center" prop="name" label="姓名" />
-            <el-table-column align="center" prop="name" label="联系电话" />
+            <el-table-column align="center" prop="phone" label="联系电话" />
           </el-table>
         </div>
 
@@ -3019,6 +3017,7 @@ onUnmounted(() => {
         .el-form-item {
           display: flex;
           align-items: center;
+          flex-wrap: wrap;
           .title {
             margin-right: 5px;
             font-size: 16px;
@@ -3077,13 +3076,20 @@ onUnmounted(() => {
         .filling_details {
           display: flex;
           flex-direction: column;
+          .info_content{
+            display: flex;
+            flex-wrap: wrap;
+            .el-form-item {
+              margin-bottom: 15px;
+            }
+          }
           .email {
             display: flex;
             flex-wrap: nowrap;
           }
-          .el-input {
-            width: 170px;
-          }
+          // .el-input {
+          //   width: 170px;
+          // }
 
           .el-form-item {
             margin-right: 50px;