wuhongyu 4 jaren geleden
bovenliggende
commit
c9908e3d9a

+ 2 - 2
src/layout/class/classGroup.vue

@@ -76,6 +76,7 @@ export default {
 }
 .button_class {
   padding: 20px 0px;
+  text-align: center;
 }
 /deep/.el-dialog__body {
   padding: 15px 20px;
@@ -94,7 +95,6 @@ export default {
   font-size: 16px;
 }
 /deep/.van-button {
-  width: 186px;
-  height: 44px;
+  margin: 0 15px;
 }
 </style>

+ 8 - 7
src/layout/class/groupList.vue

@@ -36,14 +36,11 @@
                 </el-col>
               </el-col>
             </template>
-            <el-col :span="24" class="list" v-for="(itemStrudent, indexStudent) in item.students" :key="indexStudent">
-              <el-col :span="6"
-                ><el-col :span="24" @click.native="openClick(item, itemStrudent)"
-                  >{{ itemStrudent.stuname }} {{ itemStrudent.type == '1' ? ' 组长' : '组员' }}</el-col
-                ></el-col
-              >
+            <el-col :span="8" class="studentslist" v-for="(itemStrudent, indexStudent) in item.students" :key="indexStudent">
+              <el-col :span="24" @click.native="openClick(item, itemStrudent)">
+                {{ itemStrudent.stuname }}({{ itemStrudent.type == '1' ? ' 组长' : '组员' }})
+              </el-col>
             </el-col>
-
             <van-dialog v-model="show" title="选择组长" :showConfirmButton="false">
               <van-form @submit="onSubmit">
                 <van-field readonly clickable name="picker" :value="value" label="选择器" placeholder="点击选择组长" @click="showPicker = true" />
@@ -187,4 +184,8 @@ button {
 /deep/.van-dialog {
   height: 400px;
 }
+.studentslist {
+  text-align: center;
+  padding: 5px 0;
+}
 </style>

+ 4 - 1
src/layout/class/nameList/stuNameList.vue

@@ -149,7 +149,10 @@ p {
   margin: 0;
 }
 .list {
-  padding: 15px 0 0 0;
+  padding: 10px 0;
+  border-bottom: 1px dashed #ccc;
+  margin: 0 10px;
+  width: 44%;
 }
 .list .name {
   text-align: center;

+ 16 - 3
src/layout/class/noGroup.vue

@@ -1,8 +1,7 @@
 <template>
   <div id="noGroup">
     <el-row>
-      <el-col :span="24"><el-link type="primary" :underline="false">未分组学生</el-link></el-col>
-
+      <el-col :span="24" class="topTitle"><span>未分组学生</span></el-col>
       <el-col :span="6" class="list" v-for="(item, index) in noGroupStudentNames" :key="index">
         {{ item }}
       </el-col>
@@ -24,4 +23,18 @@ export default {
 };
 </script>
 
-<style lang="less" scoped></style>
+<style lang="less" scoped>
+.topTitle {
+  padding: 10px;
+  span {
+    background: #2c69fe;
+    padding: 5px;
+    color: #fff;
+    border-radius: 5px;
+  }
+}
+.list {
+  text-align: center;
+  padding: 5px 0;
+}
+</style>

+ 0 - 1
src/views/user/leave.vue

@@ -3,7 +3,6 @@
     <el-row>
       <el-col :span="24" class="style">
         <el-col :span="24" class="top">
-          <!-- <topInfo></topInfo> -->
           <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
         </el-col>
         <el-col :span="24" class="main">