Browse Source

6.4样式修改

name 6 years ago
parent
commit
cbacd6eae9

+ 4 - 0
src/App.vue

@@ -75,6 +75,10 @@ botton {
     padding: 0;
     font-size: 12px;
 }
+ul{
+  text-align: center;
+  margin: 10px 0 !important;
+}
 table {
     border-collapse: initial;
     border-spacing: 0;

BIN
src/assets/img/wu_fen_pei_zuo_ye.png


+ 6 - 0
src/pages/Super.vue

@@ -262,4 +262,10 @@
   .ativityTimeFrame .el-radio {
     margin-left: 15px;
   }
+  .el-table .table-head-th{
+    background-color:#F6F7FB;
+    font-size: 16px !important;
+    color: #393939;
+
+  }
 </style>

+ 113 - 52
src/pages/home/SchoolManager.vue

@@ -3,7 +3,7 @@
   <div>
     <!-- table 表格 -->
     <el-row :gutter="20" class="main-items">
-      <el-col class="aside" :span="4" :offset="1" style="padding: 0 !important;">
+      <el-col class="aside" :span="3" :offset="2" style="padding: 0 !important;">
         <div
           class="table-aside"
           v-for="(v, k) in ItemList"
@@ -13,7 +13,7 @@
         >{{v.text}}</div>
       </el-col>
       <!--数据监控-->
-      <el-col :span="18" class="main" v-if="modelindex == 0">
+      <el-col :span="17" class="main" v-if="modelindex == 0">
         <el-row :gutter="20" class="main-header">
           <el-col :span="2" :offset="1">
             <div class="main-header-item">在线:{{monitorTeacherList.onlineCount}}人</div>
@@ -21,13 +21,13 @@
           <el-col :span="2">
             <div class="main-header-item">离线:{{monitorTeacherList.offlineCount}}人</div>
           </el-col>
-          <el-col :span="4">
+          <el-col :span="5">
             <div class="main-header-item">
               <span>分配未批改作业:{{monitorTeacherList.unCorrectCount}}份</span>
-              <span @click="isShow(monitorTeacherList,2)" class="main-header-link">去分配</span>
+              <span @click="allocation()" class="main-header-link">去分配</span>
             </div>
           </el-col>
-          <el-col :span="8" :offset="6">
+          <el-col :span="8" :offset="5">
             <el-input placeholder="请输入老师名字" v-model="filters.inputValue" class="input-with-select">
               <el-select
                 v-model="filters.OptionsValue"
@@ -158,30 +158,30 @@
                     </div>
                   </div>
                      <!-- 分页显示 -->
-            <el-pagination
-            background
-            @size-change="handleSizeChange3"
-            @current-change="pageChange3"
-            :page-sizes="[10, 20]"
-             layout="total, sizes, prev, pager, next, jumper"
-             :total= parseInt(TeacherHomeworkList.pages)
-            ></el-pagination>
+                  <div v-if="parseInt(TeacherHomeworkList.pages) > 10">
+                    <el-pagination
+                      background
+                      @size-change="handleSizeChange3"
+                      @current-change="pageChange3"
+                      :page-sizes="[10]"
+                      layout="total, sizes, prev, pager, next, jumper"
+                      :total= parseInt(TeacherHomeworkList.pages)
+                    ></el-pagination>
+                  </div>
                 </div>
               </div>
             </div>
             <!-- 分页显示 -->
-            <el-pagination
-            background
-            @size-change="handleSizeChange"
-            @current-change="pageChange"
-            :page-sizes="[10, 20, 30, 40]"
-             layout="total, sizes, prev, pager, next, jumper"
-             :total= parseInt(monitorTeacherList.pages)
-            ></el-pagination>
-            <!-- <div style="float:right;margin-left:15px;">
-            <el-button @click="myVisible = false" size="small">取 消</el-button>
-            <el-button type="primary" size="small" @click="submit">确定</el-button>
-          </div> -->
+            <div v-if="parseInt(monitorTeacherList.pages) > 10">
+              <el-pagination
+                background
+                @size-change="handleSizeChange"
+                @current-change="pageChange"
+                :page-sizes="[10]"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total= parseInt(monitorTeacherList.pages)
+              ></el-pagination>
+            </div>
             <div style="clear:both;"></div>
           </el-col>
         </el-row>
@@ -266,14 +266,16 @@
               </div>
             </div>
             <!-- 分页显示 -->
-            <el-pagination
-            background
-            @size-change="handleSizeChange1"
-            @current-change="pageChange1"
-            :page-sizes="[10, 20, 30, 40]"
-             layout="total, sizes, prev, pager, next, jumper"
-              :total= parseInt(DayTeacherList.pages)
-            ></el-pagination>
+            <div v-if="parseInt(DayTeacherList.pages) > 10">
+              <el-pagination
+              background
+              @size-change="handleSizeChange1"
+              @current-change="pageChange1"
+              :page-sizes="[10]"
+               layout="total, sizes, prev, pager, next, jumper"
+                :total= parseInt(DayTeacherList.pages)
+              ></el-pagination>
+            </div>
             <!-- <div style="float:right;margin-left:15px;">
             <el-button @click="myVisible = false" size="small">取 消</el-button>
             <el-button type="primary" size="small" @click="submit">确定</el-button>
@@ -386,14 +388,16 @@
               </div>
             </div>
             <!-- 分页显示 -->
-            <el-pagination
-            background
-            @size-change="handleSizeChange2"
-            @current-change="pageChange2"
-            :page-sizes="[10, 20, 30, 40]"
-             layout="total, sizes, prev, pager, next, jumper"
-           :total= parseInt(MothTeacherList.pages)
-            ></el-pagination>
+            <div v-if="parseInt(MothTeacherList.pages) > 10">
+              <el-pagination
+              background
+              @size-change="handleSizeChange2"
+              @current-change="pageChange2"
+              :page-sizes="[10]"
+               layout="total, sizes, prev, pager, next, jumper"
+             :total= parseInt(MothTeacherList.pages)
+              ></el-pagination>
+            </div>
             <!-- <div style="float:right;margin-left:15px;">
             <el-button @click="myVisible = false" size="small">取 消</el-button>
             <el-button type="primary" size="small" @click="submit">确定</el-button>
@@ -419,7 +423,7 @@
               <div>
                  <img :src="BASE_URL + v.imgUrl" v-if="v.imgUrl" alt class="model-items-left-top-img">
                 <img src="../../assets/img/user.jpg" v-if="!v.imgUrl" alt class="model-items-left-top-img">
-                <div style="display: inline-block">
+                <div style="display: inline-block;text-align: left">
                   <div style="font-size: 24px">{{v.name}}</div>
                   <div class="model-items-left-top-number">等待学生:{{v.waitCount}}</div>
                 </div>
@@ -439,6 +443,8 @@
             </div>
           </div>
         </div>
+        <!-- 分页显示 -->
+        <div v-if="parseInt(TeacherAllotList.pages) > 10">
             <el-pagination
             background
             @size-change="handleSizeChange4"
@@ -447,8 +453,15 @@
              layout="total, sizes, prev, pager, next, jumper"
              :total= parseInt(TeacherAllotList.pages)
             ></el-pagination>
+        </div>
       </div>
     </div>
+
+    <!-- 无未批改作业 v-if="monitorTeacherList.unCorrectCount==0"-->
+    <div class="no-homework" v-if="isNocheck">
+        <div>无可分配作业</div>
+        <img src="../../assets/img/wu_fen_pei_zuo_ye.png" alt="">
+    </div>
     <!--所有未批改作业-->
     <div class="showModel" @click="allShowModel(2)" v-if="isPigai"></div>
     <div class="model" style="width:50%" v-if="isPigai">
@@ -474,6 +487,7 @@
               <el-button type="success">去分配</el-button>
             </div>
           </div>
+          <div v-if="parseInt(UnallotHomeworkInfo.pages) > 10">
             <el-pagination
             background
             @size-change="handleSizeChange3"
@@ -482,6 +496,7 @@
              layout="total, sizes, prev, pager, next, jumper"
              :total= parseInt(UnallotHomeworkInfo.pages)
             ></el-pagination>
+          </div>
         </div>
   
       </div>
@@ -525,7 +540,7 @@
     </div>
       <!-- 学生详情弹框 -->
     <div class="showModel" @click="allShowModel(4)" v-if="ModelStudet"></div>
-    <div class="model"  style="width:20%;" v-if="ModelStudet">
+    <div class="model"  style="width:35%;left: 32.5%" v-if="ModelStudet">
       <div class="model-text">
         <div class="model-manager">
           <div>学生详情</div>
@@ -544,7 +559,7 @@
             </div>
           </div>
           <div class="model-items-other model-active">所读年级 : {{GetStudentDetail.grade}}</div>
-          <div class="model-items-other">性别 : {{GetStudentDetail.sex}}</div>
+          <div class="model-items-other">性别 : {{GetStudentDetail.sex==1?'男':'女'}}</div>
           <div class="model-items-other model-active">联系方式 : {{GetStudentDetail.phone}}</div>
         </div>
       </div>
@@ -571,6 +586,7 @@ export default {
       isPigai: false,//未批改作业弹框
       ModelAppor:false,//批改老师详情信息弹框
       ModelStudet:false, //学生详情弹框
+      isNocheck:false,//没有未批改作业
       isDown: false,
       options: [
         {
@@ -741,8 +757,8 @@ export default {
     // 获取校区管理员监控数据
     async InfoWatch() {
       this.$store.dispatch("InfoWatch", {
-        grade: this.filters.gradesValue,
-        subject: this.filters.OptionsValue,
+        grade: this.filters.OptionsValue,
+        subject: this.filters.gradesValue,
         teacherName: this.filters.inputValue,
         maxCreateTime: this.filters.MaxtimeValue,
         pageNo: this.filters.pageNo,
@@ -753,8 +769,8 @@ export default {
     // 获取校区管理员当天数据
     async InfoWatchDay() {
       this.$store.dispatch("InfoWatchDay", {
-        grade: this.filters1.gradesValue,
-        subject: this.filters1.OptionsValue,
+        grade: this.filters.OptionsValue,
+        subject: this.filters.gradesValue,
         teacherName: this.filters1.inputValue,
         maxCreateTime: this.filters1.MaxtimeValue,
         pageNo: this.filters1.pageNo,
@@ -765,8 +781,8 @@ export default {
     // 获取校区管理员当月数据
     async InfoWatchMoth() {
       this.$store.dispatch("InfoWatchMoth", {
-        grade: this.filters2.gradesValue,
-        subject: this.filters2.OptionsValue,
+        grade: this.filters.OptionsValue,
+        subject: this.filters.gradesValue,
         teacherName: this.filters2.inputValue,
         maxCreateTime: this.filters2.MaxtimeValue,
         pageNo: this.filters2.pageNo,
@@ -891,6 +907,21 @@ export default {
         this.GetStudentInfo(v)
       }
     },
+    // 去分配
+    allocation(){
+      this.InfoWatch()
+      if (this.monitorTeacherList.unCorrectCount == 0){
+          this.isNocheck = true;
+        var time = setTimeout(function () {
+          console.log('2222')
+          this.isNocheck = true;
+          clearTimeout(time);
+        }, 1000);
+      } else {
+        this.isShow(this.monitorTeacherList,2)
+      }
+
+    },
     //关闭弹框
     allShowModel(str) {
       let _this = this;
@@ -1119,6 +1150,10 @@ el-table {
 .tr-first > div {
   width: 13.528%;
 }
+.tr-s{
+  display: flex;
+  justify-content: space-around;
+}
 .tr-set {
   background-color: #fbfbfb;
   display: flex;
@@ -1140,6 +1175,7 @@ el-table {
   justify-content: space-around;
   color: #393939;
   font-size: 20px;
+  word-wrap:break-word
 }
 .tr-seconds {
    text-align: center;
@@ -1180,10 +1216,10 @@ el-table {
   height: auto;
   position: fixed;
   top: 15%;
-  left: 25%;
+  left: 30%;
   margin: auto;
   background: #fff;
-  border-radius: 30px;
+  border-radius: 10px;
   text-align: center;
 }
 .model-text {
@@ -1192,6 +1228,7 @@ el-table {
 }
  .model-items-first{
     padding: 0 34px;
+    width: 100%;
     display: flex;
     justify-content: space-between;
   }
@@ -1249,6 +1286,7 @@ el-table {
   display: flex;
   justify-content: space-between;
   display: inline-block;
+  width: 45%;
 }
 .model-items-left-top-img {
   width: 68px;
@@ -1262,6 +1300,7 @@ el-table {
   font-size: 18px;
   margin-left: 10px;
 }
+
 .today-time {
   color: #7e7e7e;
   font-size: 18px;
@@ -1270,4 +1309,26 @@ el-table {
 .el-pagination{
 padding:30px;
 }
+  .no-homework{
+    width:16.5%;
+    height:328px;
+    background:rgba(255,255,255,1);
+    box-shadow:0px 0px 14px 0px rgba(228,228,228,1);
+    border-radius:10px;
+    margin: auto;
+    position: fixed;
+    top: 27%;
+    left: 41.75%;
+    text-align: center;
+    padding: 35px;
+    z-index: 1000;
+  }
+  .no-homework>div{
+    margin-bottom: 25px;
+    font-size: 24px;
+  }
+  .no-homework>img{
+    width: 226px;
+    height: 203px;
+  }
 </style>

+ 9 - 4
src/pages/super/CheckTeacherAudit.vue

@@ -10,6 +10,11 @@
         <el-table
           :data="list"
           :header-cell-class-name="tableheaderClassName"
+          :header-cell-style="{
+          'background-color': '#F6F7FB',
+          'color': '#393939',
+          'font-size': '16px'
+           }"
           size="medium"
           border
           stripe
@@ -18,7 +23,7 @@
             label="注册老师"
             header-align="center"
           >
-            <template scope="scope">
+            <template slot-scope="scope">
               <div class="scope-list">
                 <img :src='BASE_URL+scope.row.imgUrl' alt="" class="table-img" v-if="scope.row.imgUrl">
                 <img src="../../assets/img/user.jpg" alt="" v-if="!scope.row.imgUrl" class="table-img">
@@ -41,7 +46,7 @@
             prop=""
             label="批改年级"
             header-align="center">
-              <template scope="scope">
+              <template slot-scope="scope">
                 <div v-if="v">
                     <div v-for="(v, k) of scope.row.gradeList" :key=k>{{v}}</div>
                 </div>
@@ -52,7 +57,7 @@
             label="可批改时间"
             header-align="center"
           >
-            <template scope="scope">
+            <template slot-scope="scope">
                   <div v-if="v">
                     <el-button type="info" round v-for="(v, k) of scope.row.periodList" :key=k>{{v}}</el-button>
                 </div>
@@ -60,7 +65,7 @@
           </el-table-column>
 
           <el-table-column prop="status" label="" header-align="center" width="250">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-button type="danger" @click="isShow(2,scope.row.teacherId,scope.row.name)">不通过</el-button>
               <el-button type="primary" @click="isShow(1,scope.row.teacherId,scope.row.name)">通过</el-button>
             </template>

+ 17 - 5
src/pages/super/CheckTeacherPay.vue

@@ -26,6 +26,11 @@
         <el-table
           :data="getTeacherSalaryList.list"
           :header-cell-class-name="tableheaderClassName"
+          :header-cell-style="{
+          'background-color': '#F6F7FB',
+          'color': '#393939',
+          'font-size': '16px'
+           }"
           size="medium"
           border
           stripe
@@ -34,10 +39,12 @@
             label="注册老师"
             header-align="center"
           >
-            <template scope="scope">
-              <img :src='BASE_URL+scope.row.imgUrl' alt="" class="table-img" v-if="scope.row.imgUrl">
-              <img src="../../assets/img/user.jpg" alt="" v-if="!scope.row.imgUrl" class="table-img">
-              <span class="scope-name">{{scope.row.name}}</span>
+            <template slot-scope="scope">
+              <div class="scope-list">
+                <img :src='BASE_URL+scope.row.imgUrl' alt="" class="table-img" v-if="scope.row.imgUrl">
+                <img src="../../assets/img/user.jpg" alt="" v-if="!scope.row.imgUrl" class="table-img">
+                <span class="scope-name">{{scope.row.name}}</span>
+              </div>
             </template>
           </el-table-column>
           <el-table-column
@@ -178,7 +185,7 @@
             let arr = this.getTeacherSalaryList.list;
             let str = '注册老师,1~2年级0.6元/份,3~4年级0.8元/份,5~6年级1.2元/份,总计/元';
             for (let i = 0; i < arr.length; i++) {
-              str += "\n" + arr[i].name + ',' + arr[i].lowGradeCount + ',' + arr[i].middleGradeCount + ',' + arr[i].highGradeCount
+              str += "\n" + arr[i].name + ',' + arr[i].lowGradeCount + ',' + arr[i].middleGradeCount + ',' + arr[i].highGradeCount + ',' + arr[i].total
             }
             var uri = 'data:text/csv;charset=utf-8,' + encodeURIComponent(str);
             var downloadLink = document.createElement("a");
@@ -325,6 +332,7 @@
     line-height: 80px;
   }
   .main-header-item{
+    cursor: pointer;
     font-size: 16px;
     color: #7E7E7E;
   }
@@ -415,4 +423,8 @@
     text-align: center !important;
     margin-top: 15px;
   }
+  .scope-list{
+    margin-left: 18px;
+    text-align: left;
+  }
 </style>

+ 6 - 1
src/pages/super/HomeworkRecycle.vue

@@ -10,6 +10,11 @@
         <el-table
           :data="list"
           :header-cell-class-name="tableheaderClassName"
+          :header-cell-style="{
+          'background-color': '#F6F7FB',
+          'color': '#393939',
+          'font-size': '16px'
+           }"
           size="medium"
           stripe
         >
@@ -47,7 +52,7 @@
             header-align="center"
             width="450"
           >
-            <template scope="scope">
+            <template slot-scope="scope">
                 <span class="allocation">去分配</span>
             </template>
           </el-table-column>

+ 134 - 79
src/pages/super/SchoolManager.vue

@@ -3,7 +3,7 @@
   <div>
     <!-- table 表格 -->
     <el-row :gutter="20" class="main-items">
-      <el-col class="aside" :span="4" :offset="1" style="padding: 0 !important;">
+      <el-col class="aside" :span="3" :offset="2" style="padding: 0 !important;">
         <div
           class="table-aside"
           v-for="(v, k) in ItemList"
@@ -13,7 +13,7 @@
         >{{v.text}}</div>
       </el-col>
       <!--数据监控-->
-      <el-col :span="18" class="main" v-if="modelindex == 0">
+      <el-col :span="17" class="main" v-if="modelindex == 0">
         <el-row :gutter="20" class="main-header">
           <el-col :span="2" :offset="1">
             <div class="main-header-item">在线:{{monitorTeacherList.onlineCount}}人</div>
@@ -21,20 +21,20 @@
           <el-col :span="2">
             <div class="main-header-item">离线:{{monitorTeacherList.offlineCount}}人</div>
           </el-col>
-          <el-col :span="4">
+          <el-col :span="6">
             <div class="main-header-item">
               <span>分配未批改作业:{{monitorTeacherList.unCorrectCount}}份</span>
-              <span @click="isShow(monitorTeacherList,2)" class="main-header-link">去分配</span>
+              <span @click="allocation()" class="main-header-link">去分配</span>
             </div>
           </el-col>
-          <el-col :span="8" :offset="6">
+          <el-col :span="8" :offset="4">
             <el-input placeholder="请输入老师名字" v-model="filters.inputValue" class="input-with-select">
               <el-select
                 v-model="filters.OptionsValue"
                 @change="InfoWatch"
                 slot="prepend"
                 placeholder="选年级"
-                minlength="20"
+                maxlength="20"
               >
                 <el-option
                   v-for="(item, k) in options"
@@ -48,7 +48,7 @@
                 @change="InfoWatch"
                 slot="prepend"
                 placeholder="选科目"
-                minlength="20"
+                maxlength="20"
               >
                 <el-option
                   v-for="(item, k) in grades"
@@ -157,30 +157,31 @@
                     </div>
                   </div>
                   <!-- 分页显示 -->
-                  <el-pagination
-                    background
-                    @size-change="handleSizeChange3"
-                    @current-change="pageChange3"
-                    :page-sizes="[10, 20]"
-                    layout="total, sizes, prev, pager, next, jumper"
-                    :total="parseInt(TeacherHomeworkList.pages)"
-                  ></el-pagination>
+                  <div v-if="parseInt(TeacherHomeworkList.pages) > 10">
+                    <el-pagination
+                      background
+                      @size-change="handleSizeChange3"
+                      @current-change="pageChange3"
+                      :page-sizes="[10, 20]"
+                      layout="total, sizes, prev, pager, next, jumper"
+                      :total="parseInt(TeacherHomeworkList.pages)"
+                    ></el-pagination>
+                  </div>
                 </div>
               </div>
             </div>
             <!-- 分页显示 -->
-            <el-pagination
-              background
-              @size-change="handleSizeChange"
-              @current-change="pageChange"
-              :page-sizes="[10, 20, 30, 40]"
-              layout="total, sizes, prev, pager, next, jumper"
-              :total="parseInt(monitorTeacherList.pages)"
-            ></el-pagination>
-            <!-- <div style="float:right;margin-left:15px;">
-            <el-button @click="myVisible = false" size="small">取 消</el-button>
-            <el-button type="primary" size="small" @click="submit">确定</el-button>
-            </div>-->
+            <div v-if="parseInt(monitorTeacherList.pages) > 10">
+              <el-pagination
+                background
+                @size-change="handleSizeChange"
+                @current-change="pageChange"
+                :page-sizes="[10]"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="parseInt(monitorTeacherList.pages)"
+              ></el-pagination>
+            </div>
+
             <div style="clear:both;"></div>
              <div>  <el-button @click="routerback()" type="success" round>返回</el-button></div>
           </el-col>
@@ -266,14 +267,16 @@
               </div>
             </div>
             <!-- 分页显示 -->
-            <el-pagination
-              background
-              @size-change="handleSizeChange1"
-              @current-change="pageChange1"
-              :page-sizes="[10, 20, 30, 40]"
-              layout="total, sizes, prev, pager, next, jumper"
-              :total="parseInt(DayTeacherList.pages)"
-            ></el-pagination>
+            <div v-if="parseInt(DayTeacherList.pages) > 10">
+              <el-pagination
+                background
+                @size-change="handleSizeChange1"
+                @current-change="pageChange1"
+                :page-sizes="[10]"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="parseInt(DayTeacherList.pages)"
+              ></el-pagination>
+            </div>
             <!-- <div style="float:right;margin-left:15px;">
             <el-button @click="myVisible = false" size="small">取 消</el-button>
             <el-button type="primary" size="small" @click="submit">确定</el-button>
@@ -393,14 +396,16 @@
               </div>
             </div>
             <!-- 分页显示 -->
-            <el-pagination
-              background
-              @size-change="handleSizeChange2"
-              @current-change="pageChange2"
-              :page-sizes="[10, 20, 30, 40]"
-              layout="total, sizes, prev, pager, next, jumper"
-              :total="parseInt(MothTeacherList.pages)"
-            ></el-pagination>
+            <div v-if="parseInt(MothTeacherList.pages) > 10">
+              <el-pagination
+                background
+                @size-change="handleSizeChange2"
+                @current-change="pageChange2"
+                :page-sizes="[10]"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="parseInt(MothTeacherList.pages)"
+              ></el-pagination>
+            </div>
             <!-- <div style="float:right;margin-left:15px;">
             <el-button @click="myVisible = false" size="small">取 消</el-button>
             <el-button type="primary" size="small" @click="submit">确定</el-button>
@@ -452,16 +457,23 @@
             </div>
           </div>
         </div>
-        <el-pagination
-          background
-          @size-change="handleSizeChange4"
-          @current-change="pageChange4"
-          :page-sizes="[10]"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="parseInt(TeacherAllotList.pages)"
-        ></el-pagination>
+        <div v-if="parseInt(TeacherAllotList.pages) > 10">
+          <el-pagination
+            background
+            @size-change="handleSizeChange4"
+            @current-change="pageChange4"
+            :page-sizes="[10]"
+            layout="total, sizes, prev, pager, next, jumper"
+            :total="parseInt(TeacherAllotList.pages)"
+          ></el-pagination>
+        </div>
       </div>
     </div>
+    <!-- 无未批改作业 v-if="monitorTeacherList.unCorrectCount==0"-->
+    <div class="no-homework" v-if="isNocheck">
+      <div>无可分配作业</div>
+      <img src="../../assets/img/wu_fen_pei_zuo_ye.png" alt="">
+    </div>
     <!--所有未批改作业-->
     <div class="showModel" @click="allShowModel(2)" v-if="isPigai"></div>
     <div class="model" style="width:50%" v-if="isPigai">
@@ -487,14 +499,16 @@
               <el-button type="success">去分配</el-button>
             </div>
           </div>
-          <el-pagination
-            background
-            @size-change="handleSizeChange3"
-            @current-change="pageChange3"
-            :page-sizes="[10]"
-            layout="total, sizes, prev, pager, next, jumper"
-            :total="parseInt(UnallotHomeworkInfo.pages)"
-          ></el-pagination>
+          <div v-if="parseInt(UnallotHomeworkInfo.pages) > 10">
+            <el-pagination
+              background
+              @size-change="handleSizeChange3"
+              @current-change="pageChange3"
+              :page-sizes="[10]"
+              layout="total, sizes, prev, pager, next, jumper"
+              :total="parseInt(UnallotHomeworkInfo.pages)"
+            ></el-pagination>
+          </div>
         </div>
       </div>
     </div>
@@ -563,7 +577,7 @@
     </div>
     <!-- 学生详情弹框 -->
     <div class="showModel" @click="allShowModel(4)" v-if="ModelStudet"></div>
-    <div class="model" style="width:20%;" v-if="ModelStudet">
+    <div class="model" style="width:35%;left:32.5%" v-if="ModelStudet">
       <div class="model-text">
         <div class="model-manager">
           <div>学生详情</div>
@@ -574,7 +588,7 @@
         <div class="model-items">
           <div class="model-items-first">
             <div>
-              <!-- <img :src="BASE_URL + GetStudentDetail.imgUrl" alt class="model-items-first-img"> -->
+               <img :src="BASE_URL + GetStudentDetail.imgUrl" alt class="model-items-first-img">
               <div class="model-items-first-left">
                 <div class="Onlinename">{{GetStudentDetail.name}}</div>
                 <div class="model-items-first-left-down">{{GetStudentDetail.school}}</div>
@@ -582,7 +596,7 @@
             </div>
           </div>
           <div class="model-items-other model-active">所读年级 : {{GetStudentDetail.grade}}</div>
-          <div class="model-items-other">性别 : {{GetStudentDetail.sex}}</div>
+          <div class="model-items-other">性别 : {{GetStudentDetail.sex==1?'男':'女'}}</div>
           <div class="model-items-other model-active">联系方式 : {{GetStudentDetail.phone}}</div>
         </div>
       </div>
@@ -668,14 +682,16 @@
             </div>
           </div>
         </div>
-        <el-pagination
-          background
-          @size-change="handleSizeChange5"
-          @current-change="pageChange5"
-          :page-sizes="[10]"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="parseInt(getAllotManagerList.pages)"
-        ></el-pagination>
+        <div v-if="parseInt(getAllotManagerList.pages) > 10">
+          <el-pagination
+            background
+            @size-change="handleSizeChange5"
+            @current-change="pageChange5"
+            :page-sizes="[10]"
+            layout="total, sizes, prev, pager, next, jumper"
+            :total="parseInt(getAllotManagerList.pages)"
+          ></el-pagination>
+        </div>
       </div>
     </div>
   </div>
@@ -710,6 +726,7 @@ export default {
       ModelAppor: false, //批改老师详情信息弹框
       AllotManagerModel:false, //可分配小组管理员列表弹框
       ModelStudet: false, //学生详情弹框
+      isNocheck:false,//没有未批改作业
       isDown: false,
       options: [
         {
@@ -880,8 +897,8 @@ export default {
     // 获取校区管理员监控数据
     async InfoWatch() {
       this.$store.dispatch("InfoWatch", {
-        grade: this.filters.gradesValue,
-        subject: this.filters.OptionsValue,
+        grade: this.filters.OptionsValue,
+        subject: this.filters.gradesValue,
         teacherName: this.filters.inputValue,
         maxCreateTime: this.filters.MaxtimeValue,
         pageNo: this.filters.pageNo,
@@ -892,8 +909,8 @@ export default {
     // 获取校区管理员当天数据
     async InfoWatchDay() {
       this.$store.dispatch("InfoWatchDay", {
-        grade: this.filters1.gradesValue,
-        subject: this.filters1.OptionsValue,
+        grade: this.filters.OptionsValue,
+        subject: this.filters.gradesValue,
         teacherName: this.filters1.inputValue,
         maxCreateTime: this.filters1.MaxtimeValue,
         pageNo: this.filters1.pageNo,
@@ -904,8 +921,8 @@ export default {
     // 获取校区管理员当月数据
     async InfoWatchMoth() {
       this.$store.dispatch("InfoWatchMoth", {
-        grade: this.filters2.gradesValue,
-        subject: this.filters2.OptionsValue,
+        grade: this.filters.OptionsValue,
+        subject: this.filters.gradesValue,
         teacherName: this.filters2.inputValue,
         maxCreateTime: this.filters2.MaxtimeValue,
         pageNo: this.filters2.pageNo,
@@ -1089,6 +1106,21 @@ export default {
         this.GetAllotManagerInfo()
       }
     },
+    // 去分配
+    allocation(){
+      this.InfoWatch()
+      if (this.monitorTeacherList.unCorrectCount == 0){
+        this.isNocheck = true;
+        var time = setTimeout(function () {
+          console.log('2222')
+          this.isNocheck = true;
+          clearTimeout(time);
+        }, 1000);
+      } else {
+        this.isShow(this.monitorTeacherList,2)
+      }
+
+    },
     //关闭弹框
     allShowModel(str) {
       let _this = this;
@@ -1404,10 +1436,10 @@ el-table {
   height: auto;
   position: fixed;
   top: 15%;
-  left: 25%;
+  left: 30%;
   margin: auto;
   background: #fff;
-  border-radius: 30px;
+  border-radius: 10px;
   text-align: center;
 }
 .modelspec{
@@ -1481,10 +1513,11 @@ el-table {
   justify-content: space-between;
 }
 .model-items {
-  padding: 20px;
+  padding-bottom: 10px;
   display: flex;
   justify-content: space-between;
   display: inline-block;
+  width: 100%;
 }
 .model-items-left-top-img {
   width: 68px;
@@ -1540,4 +1573,26 @@ el-table {
 .el-pagination {
   padding: 30px;
 }
+.no-homework{
+  width:16.5%;
+  height:328px;
+  background:rgba(255,255,255,1);
+  box-shadow:0px 0px 14px 0px rgba(228,228,228,1);
+  border-radius:10px;
+  margin: auto;
+  position: fixed;
+  top: 27%;
+  left: 41.75%;
+  text-align: center;
+  padding: 35px;
+  z-index: 1000;
+}
+.no-homework>div{
+  margin-bottom: 25px;
+  font-size: 24px;
+}
+.no-homework>img{
+  width: 226px;
+  height: 203px;
+}
 </style>

+ 19 - 9
src/pages/super/SuperAdmin.vue

@@ -15,7 +15,11 @@
         <el-table
           :data="getManagerList.list"
           :header-cell-class-name="tableheaderClassName"
-          :cell-style="cellStyle"
+          :header-cell-style="{
+          'background-color': '#F6F7FB',
+          'color': '#393939',
+          'font-size': '16px'
+           }"
           size="medium"
           border
         >
@@ -23,7 +27,7 @@
             label="小组管理员"
             header-align="center"
           >
-            <template scope="scope">
+            <template slot-scope="scope">
               <div class="scope-list">
                 <img :src='BASE_URL+scope.row.imgUrl' alt="" class="table-img" v-if="scope.row.imgUrl">
                 <img src="../../assets/img/user.jpg" alt="" v-if="!scope.row.imgUrl" class="table-img">
@@ -65,14 +69,14 @@
             prop=""
             label="是否在线"
             header-align="center">
-            <template scope="scope">
+            <template slot-scope="scope">
                 <span v-if="scope.$index==0&&parseInt(getManagerList.pageNo)==1">自己</span>
                 <span v-if="scope.$index>0&&parseInt(getManagerList.pageNo)==1">{{scope.row.status}}</span>
                 <span v-if="parseInt(getManagerList.pageNo)>1">{{scope.row.status}}</span>
             </template>
           </el-table-column>
           <el-table-column prop="status" label="" header-align="center" width="250">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-button type="success"  @click="groupDetail(scope.row.managerId)" >小组详情</el-button>
               <el-button type="success" plain @click="isShow(1,scope.row.managerId)" v-if="scope.$index>0">管理员详情</el-button>
             </template>
@@ -113,16 +117,16 @@
               </div>
             </div>
             <div>
-              <el-button type="danger" plain round @click="isShow(2,getManagerDetail.name)"><i class="el-icon-bottom"></i><span>降级</span></el-button>
+              <el-button type="danger" plain round @click="isShow(2,getManagerDetail.name)" icon="el-icon-bottom"><span>降级</span></el-button>
             </div>
           </div>
           <div class="model-items-other model-active">批改科目 : {{getManagerDetail.subject}}</div> 
-          <div class="model-items-other">批改年级 :<div v-if="k>=0"> <span v-for="(v, k) of arrGrade" :key=k class="scope-name">{{v}}</span></div></div>
-          <div class="model-items-other model-active">可批改时间: <div v-if="k>=0"><span v-if="v"><el-button type="info" round v-for="(v, k) of arrPeriod" :key=k >{{v}}</el-button></span></div></div>
+          <div class="model-items-other">批改年级 :<span v-for="(v, k) of arrGrade" :key=k class="grade-name" v-if="k>=0">{{v}}</span></div>
+          <div class="model-items-other model-active"><span>可批改时间:</span> <span ><el-button type="info" round v-for="(v, k) of arrPeriod" :key=k v-if="k>=0">{{v}}</el-button></span></div>
           <div class="model-items-other">手机号 : {{getManagerDetail.phone}}</div>
           <div class="model-items-other model-active-last">上次登录时间 : {{getManagerDetail.lastOnlineTime}}</div>
         </div>
-k
+
       </div>
     </div>
     <!--所有未批改作业-->
@@ -238,6 +242,7 @@ k
           pageNo: this.filters.pageNo,
           pageSize: this.filters.pageSize
         });
+
       },
       // 查看校区管理员详情
       async GetManagerDetail(str) {
@@ -463,7 +468,7 @@ k
     background-color: #F6F7FB;
   }
   .model-active-last{
-    border-radius:0 0 30px 30px;
+    border-radius:0 0 10px 10px;
     background-color: #F6F7FB;
   }
 
@@ -510,7 +515,12 @@ k
   .scope-name{
     margin-left: 13px;
     color: #393939;
+    font-size: 13px;
+  }
+  .grade-name{
+    color: #393939;
     font-size: 16px;
+    margin:0 10px;
   }
   .page-block{
     text-align: center !important;