<!-- 活动解析 -->
<template>
  <div>
    <!-- table 表格 -->
    <el-row :gutter="20" class="main-items">
      <!--数据监控-->
      <el-col :span="20" class="main" :offset="2">
        <el-row :gutter="20" class="main-header">
          <el-col :span="8" :offset="1">
            <div
              @click="handApor()"
              :class="{Apporvalactive:Activeindex == false,ApporStyles:true}"
            >批改老师</div>
            <div
              @click="AutoApor()"
              :class="{Apporvalactive:Activeindex == true,ApporStyles:true}"
            >匹配知识点老师</div>
          </el-col>
          <el-col :span="10" :offset="2">
            <div class="selectBox">
              <div
                class="Ageclass"
                @click="choiceclass()"
                @mouseover="selectStyle()"
                @mouseout="outStyle()"
              >
                <span class="age-tip">{{selecttitlepag}}</span>
                <span :class="[gardeListDown ?'el-icon-caret-top':'el-icon-caret-bottom']"></span>
              </div>
              <div
                class="class-download"
                v-show="gardeListDown"
                @mouseover="selectStyle()"
                @mouseout="outStyle()"
              >
                <ul v-for="(item, k) in options" :key="k">
                  <li @click="selectTip(item)">{{item.label}}</li>
                </ul>
              </div>
            </div>
            <div class="selectBox">
              <div
                class="Ageclass"
                @click="choiceclass()"
                @mouseover="selectStyle1()"
                @mouseout="outStyle1()"
              >
                <span class="age-tip">{{selecttitleage}}</span>
                <span :class="[gardeListDownage ?'el-icon-caret-top':'el-icon-caret-bottom']"></span>
              </div>
              <div
                class="class-download"
                v-show="gardeListDownage"
                @mouseover="selectStyle1()"
                @mouseout="outStyle1()"
              >
                <ul v-for="(item, k) in grades" :key="k">
                  <li @click="selectTipage(item)">{{item.label}}</li>
                </ul>
              </div>
            </div>
            <div class="teach-block">
              <div class="miniorteach-Allot">
                <input
                  type="text"
                  placeholder="请输入老师"
                  v-model="filters.inputValue"
                  class="miniorinput-with-Allot"
                />
                <span @click="InfoWatch()" class="miinorSeachIcon el-icon-search"></span>
                <!-- <span v-if="this.Activeindex == true" @click="InfoKonwTeacherWatchList()" class="miinorSeachIcon el-icon-search"></span> -->
              </div>
            </div>
          </el-col>
          <el-col :span="22" :offset="1">
            <div class="main-header-item displayBox">在线：{{TeacherListForChecker.onlineCount}}人</div>
            <div class="main-header-item displayBox">离线：{{TeacherListForChecker.offlineCount}}人</div>
          </el-col>
        </el-row>
        <el-row :gutter="20" class="main-header">
          <el-col :span="24">
            <div
              class="table"
              v-if="TeacherListForChecker.list !== undefined && TeacherListForChecker.list.length ==0"
            >暂无数据！</div>
            <div
              class="table"
              v-if="TeacherListForChecker.list !== undefined && TeacherListForChecker.list.length >0"
            >
              <div class="table-head">
                <div>头像</div>
                <div>姓名</div>
                <div v-if="this.Activeindex == false">批改作业数</div>
                <div v-if="this.Activeindex == true">匹配作业数</div>
                <div>已质检作业数</div>
                <div>状态</div>
              </div>
              <div class="tr" v-for="(v, k) of TeacherListForChecker.list" :key="k">
                <!-- 在线 -->
                <div v-if="v.status == '1'" class="tr-first" :class="{BgcColor:k%2 !== 1}">
                  <div>
                    <i
                      style="cursor:pointer;"
                      :class="[isDown&&isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
                      @click="dropDown(v,k)"
                    ></i>
                    <img
                      :src="BASE_URL + v.imgUrl"
                      alt
                      class="table-img"
                      v-if="v.imgUrl"
                      @click="isShow(v,3)"
                    />
                    <img
                      src="../../assets/img/attt.png"
                      alt
                      v-if="v.imgUrl ==''"
                      @click="isShow(v,3)"
                      class="table-img"
                    />
                  </div>
                  <div>{{v.name}}</div>
                  <div>{{v.feedbackCount}}张</div>
                  <div>{{v.checkCount}}张</div>
                  <div>在线</div>
                </div>
                <!-- 离线 -->
                <div
                  v-if="v.status == '2'"
                  style="color:#BEBEBE"
                  class="tr-first"
                  :class="{BgcColor:k%2 !== 1}"
                >
                  <div>
                    <i
                      style="cursor:pointer;"
                      :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
                      @click="dropDown(v,k)"
                    ></i>
                    <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)" />
                    <img
                      src="../../assets/img/attt.png"
                      alt
                      v-if="v.imgUrl ==''"
                      @click="isShow(v,3)"
                      class="table-img"
                    />
                  </div>
                  <div>{{v.name}}</div>
                  <div>{{v.feedbackCount}}张</div>
                  <div>{{v.checkCount}}张</div>
                  <div>离线</div>
                </div>
                <!-- 封号 -->
                <div
                  v-if="v.status == '3'"
                  style="color:#FF6767"
                  class="tr-first"
                  :class="{BgcColor:k%2 !== 1}"
                >
                  <div>
                    <i
                      style="cursor:pointer;"
                      :class="[isDown && isDownindex === k?'el-icon-caret-bottom':'el-icon-caret-right']"
                      @click="dropDown(v,k)"
                    ></i>
                    <img :src="BASE_URL + v.imgUrl" alt class="table-img" @click="isShow(v,3)" />
                    <img
                      src="../../assets/img/attt.png"
                      alt
                      v-if="v.imgUrl ==''"
                      @click="isShow(v,3)"
                      class="table-img"
                    />
                  </div>
                  <div>{{v.name}}</div>
                  <div>{{v.feedbackCount}}张</div>
                  <div>{{v.checkCount}}张</div>
                  <div>已封号</div>
                </div>
                <div
                  class="tr-setNo"
                  v-if="isDownindex === k && isDown && TeacherHomeworkListForChecker.list.length == 0"
                >暂无数据!</div>
                <!--&& isDownindex === k && isDown-->
                <div v-if="isDownindex === k && isDown">
                  <div
                    class="tr-second"
                    v-for="(v, k) of TeacherHomeworkListForChecker.list"
                    :key="k"
                  >
                    <div class="tr-seconds" style="width:6%;">{{k+1}}</div>
                    <div class="tr-seconds tr-w120" style="width:14%;">
                      <span>{{v.name}}</span>
                    </div>
                    <div class="tr-seconds widthSu" style="width: 10%">{{v.subject}}</div>
                    <div class="tr-seconds widthSu" style="width: 10%">{{v.grade}}</div>
                    <div class="tr-seconds width40" style="width: 10%">
                      <span>已质检</span>
                      (
                      <span>{{v.checkCount}}/{{v.feedbackCount}}</span>)
                    </div>

                    <div class="ApporTeacher" style="width: 25%">
                      <el-button type="warning" @click="CheackHomeworkStatus(v)">
                        <span href style="text-decoration:none;color:#ffffff;">去质检</span>
                      </el-button>
                      <span
                        v-if="v.wrongCount > 0"
                        style="color:red;font-size:12px;"
                      >报错{{v.wrongCount}}</span>
                      <span
                        v-if="v.wrongCount == 0"
                        style="color:#fbfbfb;font-size:12px;"
                      >报错{{v.wrongCount}}</span>
                    </div>
                  </div>
                  <!-- 分页显示 -->

                  <el-pagination
                    background
                    @size-change="WatchHomrworkleSizeChange"
                    @current-change="WatchHomeWorkpageChange"
                    :page-sizes="[10, 20]"
                    layout="total, prev, pager, next"
                    :total="parseInt(TeacherHomeworkListForChecker.pages)"
                    :hide-on-single-page="true"
                  ></el-pagination>
                </div>
              </div>
            </div>
            <!-- 分页显示 -->
            <!-- 数据监控分页 -->
            <div v-if="this.Activeindex == false">
              <el-pagination
                background
                @size-change="WatchApporvalhandleSizeChange"
                @current-change="WatchApporvalpageChange"
                :page-sizes="[10, 20, 30, 40]"
                layout="total, prev, pager, next"
                :total="parseInt(TeacherListForChecker.pages)"
                :current-page.sync="currentPage"
              ></el-pagination>
              <div style="clear:both;"></div>
            </div>
            <!-- 数据监控分页匹配知识点老师 -->
            <div v-if="this.Activeindex == true">
              <el-pagination
                background
                @size-change="WatchApporvalhandleSizeChange"
                @current-change="WatchApporvalpageChange"
                :page-sizes="[10, 20, 30, 40]"
                layout="total, prev, pager, next"
                :total="parseInt(TeacherListForChecker.pages)"
                :hide-on-single-page="true"
                :current-page.sync="currentPage"
              ></el-pagination>
              <div style="clear:both;"></div>
            </div>
            <div>
              <el-button @click="routerback()" type="success" round>返回</el-button>
            </div>
          </el-col>
        </el-row>
      </el-col>
    </el-row>

    <!-- 老师详情弹框 -->
    <div class="showModel" @click="allShowModel(1)" v-if="ModelAppor"></div>
    <div class="model" style="width:40%;left: 32.5%" v-if="ModelAppor">
      <div class="model-text">
        <div class="model-manager">
          <div v-if="this.Activeindex == false">批改老师</div>
          <div v-if="this.Activeindex == true">匹配知识点老师</div>
          <div v-if="this.teacherRoles ==11">(校区管理员)</div>
          <div>
            <img src="../../assets/img/del@2x.png" alt @click="allShowModel(1)" />
          </div>
        </div>
        <div class="model-items">
          <div class="model-items-first">
            <div>
              <img
                :src="BASE_URL + GetTeacherDetail.imgUrl"
                v-if="GetTeacherDetail.imgUrl"
                alt
                class="model-items-first-img"
              />
              <img
                src="../../assets/img/attt.png"
                v-if="!GetTeacherDetail.imgUrl"
                alt
                class="model-items-first-img"
              />
              <div class="model-items-first-left" style="display:inline-block">
                <!-- <div class="Onlinename">李小花</div>
                <div class="Online">（在线）</div>
                <div class="model-items-first-left-down">南方科技大学</div>-->
                <div class="Onlinename">{{GetTeacherDetail.name}}</div>
                <div v-if="GetTeacherDetail.status ===1" class="Online">（在线）</div>
                <div v-if="GetTeacherDetail.status ===0" class="Online">（离线）</div>
                <div class="model-items-first-left-down">{{GetTeacherDetail.school}}</div>
              </div>
            </div>
          </div>
          <div
            class="model-items-other"
            v-if="this.Activeindex == false"
          >批改科目 : {{GetTeacherDetail.subject}}</div>
          <div
            class="model-items-other model-active"
            v-if="this.Activeindex == true"
          >批改科目 : {{GetTeacherDetail.subject}}</div>
          <div class="model-items-other model-active" v-if="this.Activeindex == false">
            批改年级 :
            <span v-for="(v, k) of arrGrade" :key="k">{{v}},</span>
          </div>
          <div class="model-items-other">手机号 : {{GetTeacherDetail.phone}}</div>
          <div class="model-items-other model-active">上次登录时间 : {{GetTeacherDetail.lastOnlineTime}}</div>
          <div
            class="model-items-other"
            v-if="this.Activeindex == false"
          >批改正确率 : {{GetTeacherDetail.accuracyRate}}</div>
          <div
            class="model-items-other"
            v-if="this.Activeindex == true"
          >匹配正确率 : {{GetTeacherDetail.accuracyRate}}</div>
          <div class="model-items-other model-active">
            被报错总次数 :
            <span style="color:red;">{{GetTeacherDetail.wrongCount}}次</span>
          </div>
          <div class="model-items-other">纠正次数 : {{GetTeacherDetail.correctNums}}次</div>
          <div
            class="model-items-other model-active"
            v-if="this.Activeindex == false"
          >家长满意度 : {{GetTeacherDetail.satisfactionDegree}}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
import { IMG_BASE_URL, APPOR_BASE_URL } from "@/ImgConfig";

export default {
  components: {},
  name: "actvResolveLabel",
  props: {},
  data() {
    return {
      unionid: localStorage.getItem("unionid"),
      accessToken: localStorage.getItem("accessToken"), //token
      managerId: "", // 超级管理员登陆ID
      BASE_URL: IMG_BASE_URL,
      APPOR_BASE_URL: APPOR_BASE_URL,
      isDownindex: "",
      currentPage: 1,
      TeacherIds: "", //封号，升级，解封
      TeacherIdStatus: "",
      TeacherName: "", //封号，升级，解封
      arrGrade: [],
      Activeindex: false,
      ModelAppor: false, //批改老师详情信息弹框
      isDown: false,
      gardeListDown: false,
      gardeListDownage: false,
      selecttitlepag: "选年级",
      selecttitleage: "选时间",
      teacherRoles: "",
      TeacherType: 8,
      TeacherCheackStyle: 2,
      TeacherIdType: 8,
      pickerOptions0: {
        disabledDate(time) {
          return time.getTime() > Date.now() - 8.64e6;
        }
      },
      options: [
        {
          value: "0",
          label: "1~2年级",
          str: "一年级,二年级"
        },
        {
          value: "1",
          label: "3~4年级",
          str: "三年级,四年级"
        },
        {
          value: "2",
          label: "5~6年级",
          str: "五年级,六年级"
        }
      ],
      grades: [
        {
          value: "1",
          label: "今天",
          str: "1"
        },
        {
          value: "2",
          label: "前一天",
          str: "2"
        },
        {
          value: "3",
          label: "前二天",
          str: "3"
        },
        {
          value: "4",
          label: "前三天",
          str: "4"
        },
        {
          value: "5",
          label: "前四天",
          str: "5"
        },
        {
          value: "6",
          label: "前五天",
          str: "6"
        },
        {
          value: "7",
          label: "前六天",
          str: "7"
        },
        {
          value: "0",
          label: "全部",
          str: "0"
        }
      ],
      filters: {
        //超级管理员的当天数据
        // 排序
        MaxtimeValue: "",
        OptionsValue: "",
        gradesValue: 0,
        inputValue: "",
        pageNo: 1,
        pageSize: 10,
        count: 100,
        managerId: "",
        teachertype: 8
      },
      homeworkLIst: {
        pageNo: 1,
        pageSize: 10,
        teacherId: ""
      },
      CurrthomeworkIdStatus: ""
    };
  },
  created() {
    const managerId = this.$route.query.managerId;
    this.managerId = managerId;
  },
  computed: {
    ...mapGetters([
      "GetTeacherDetail",
      "getTeacherIdStatus",
      "currtHomeworkStatus",
      "TeacherListForChecker",
      "TeacherHomeworkListForChecker",
      "InfoTeacherstatues"
    ])
  },
  methods: {
    ...mapActions(["setUser"]),
    // 点击下拉
    dropDown(v, k) {
      this.isDown = !this.isDown;
      this.homeworkLIst.pageNo = 1;
      this.isDownindex = k;
      this.TeacherHomework(v);
    },
    // 获取校区管理员监控数据
    async InfoWatch() {
      this.isDown = false;
      this.$store.dispatch("GetTeacherListForCheckerInfo", {
        grade: this.filters.OptionsValue,
        teacherName: this.filters.inputValue,
        maxCreateTime: "",
        pageNo: this.filters.pageNo,
        pageSize: this.filters.pageSize,
        managerId: this.managerId || "",
        type: this.TeacherIdType,
        selectTime: this.filters.gradesValue
      });
    },
    //  // 查看老师批改作业列表
    async TeacherHomework(v) {
      this.homeworkLIst.teacherId = v.teacherId;
      this.$store.dispatch("GetTeacherHomeworkListForChecker", {
        teacherId: v.teacherId,
        maxCreateTime: "",
        pageNo: this.homeworkLIst.pageNo,
        pageSize: this.homeworkLIst.pageSize,
        selectTime: this.filters.gradesValue
      });
    },
    //  // 查看老师批改作业列表
    async TeacherHomeworkFenye() {
      this.$store.dispatch("GetTeacherHomeworkListForChecker", {
        teacherId: this.homeworkLIst.teacherId,
        maxCreateTime: "",
        pageNo: this.homeworkLIst.pageNo,
        pageSize: this.homeworkLIst.pageSize,
        selectTime: this.filters.gradesValue
      });
    },
    WatchApporvalhandleSizeChange(val) {
      this.filters.pageSize = val;
      this.InfoWatch();
    },
    // 分页
    WatchApporvalpageChange(val) {
      this.filters.pageNo = val;
      this.InfoWatch();
    }, // 分页
    WatchHomrworkleSizeChange(val) {
      this.homeworkLIst.pageSize = val;
      this.TeacherHomeworkFenye();
    },
    // 分页
    WatchHomeWorkpageChange(val) {
      this.homeworkLIst.pageNo = val;
      this.TeacherHomeworkFenye();
    }, // 分页
    // 质检当前作业状态
    async CheackHomeworkStatus(v) {
      let CurrthomeworkIdStatus = v.homeworkId;
      this.CurrthomeworkIdStatus = CurrthomeworkIdStatus;
      this.$store.dispatch("CheckCurrHomeworkStatus", {
        homeworkId: v.homeworkId,
        originTeacherId: this.homeworkLIst.teacherId
      });
    },

    // 查看老师详情信息
    async GetTeacherInfo(v) {
      this.$store.dispatch("GetTeacherDetail", {
        teacherId: v.teacherId
      });
    },
    async pesiorFun() {
      var arr = this.GetTeacherDetail.grade.split(",");
      this.arrPeriod = this.GetTeacherDetail.period.split(",");
      var arrList = [];
      for (var i in arr) {
        if (arr[i] == "一年级" || arr[i] == "二年级") {
          arrList.push("1-2年级");
        } else if (arr[i] == "三年级" || arr[i] == "四年级") {
          arrList.push("3-4年级");
        } else if (arr[i] == "五年级" || arr[i] == "六年级") {
          arrList.push("5-6年级");
        }
      }
      this.arrGrade = this.uniq(arrList) || [];
    },
    isShow(v, str) {
      let _this = this;
      // scroll= (window).scrollTop();
      // $ ( ‘html’ ).css({ ‘overflow’ : ’hidden’ , ’position’: ’fixed’, ’top’: ’- ‘+scroll+’px’})
      if (str == 3) {
        this.TeacherIdStatus = v.status;
        this.TeacherIds = v.teacherId;
        this.TeacherName = v.name;
        this.teacherRoles = v.role;
        _this.ModelAppor = true;
        this.GetTeacherInfo(v);
      }
    },
    //关闭弹框
    allShowModel(str) {
      let _this = this;
      if (str == 1) {
        _this.ModelAppor = false;
      }
    },
    // 数组去重
    uniq(array) {
      var temp = []; //一个新的临时数组
      for (var i = 0; i < array.length; i++) {
        if (temp.indexOf(array[i]) == -1) {
          temp.push(array[i]);
        }
      }
      return temp;
    },
    // 回退
    routerback() {
      this.$router.back(-1);
    },
    // 手动批改
    handApor() {
      this.isDown = false;
      this.TeacherType = 8;
      this.TeacherCheackStyle = 2;
      this.TeacherIdType = 8;
      this.Activeindex = false;
      this.filters.pageNo = 1;
      this.filters.OptionsValue = "";
      this.filters.gradesValue = "";
      this.filters.inputValue = "";
      this.selecttitlepag = "选年级";
      this.selecttitleage = "选时间";
      //  this.showApporAways = false;
      this.InfoWatch();
    },
    // 匹配知识点老师
    AutoApor() {
      this.isDown = false;
      this.TeacherType = 13;
      this.TeacherIdType = 13;
      this.TeacherCheackStyle = 4;
      this.Activeindex = true;
      this.filters.OptionsValue = "";
      this.filters.gradesValue = "";
      this.filters.inputValue = "";
      this.selecttitlepag = "选年级";
      this.selecttitleage = "选时间";
      // this.showApporAways = true;
      this.filters.pageNo = 1;
      this.InfoWatch();
    },
    selectStyle() {
      this.gardeListDown = true;
    },
    outStyle() {
      this.gardeListDown = false;
    },
    selectTip(item) {
      this.filters.OptionsValue = item.str;
      this.isDown = false;
      if (this.Activeindex == false) {
        this.InfoWatch();
      }
      if (this.Activeindex == true) {
        this.InfoWatch();
      }
      this.selecttitlepag = item.label;
      this.gardeListDown = false;
    },
    selectTipage(item) {
      this.filters.gradesValue = item.str;
      this.isDown = false;
      if (this.Activeindex == false) {
        this.InfoWatch();
      }
      if (this.Activeindex == true) {
        this.InfoWatch();
      }
      this.selecttitleage = item.label;
      this.gardeListDownage = false;
    },
    selectStyle1() {
      this.gardeListDownage = true;
    },
    outStyle1() {
      this.gardeListDownage = false;
    }
    // 获取创建人列表
    // async getUserNameList() {
    //   let {
    //     userNameList = []
    //   } = await this.$dao.actv.marketActDao.getUserNameList();
    //   this.userNameList = userNameList || [];
    //   let { list = [] } = await this.$dao.bsnsActvTypeAllList();
    //   this.actvTypeList = list || [];
    // }
  },
  mounted() {
    this.InfoWatch();
  },
  watch: {
    getTeacherIdStatus(val, oldVal) {
      //普通的watch监听
      this.InfoWatch();
    },
    InfoTeacherstatues(val, oldVal) {
      //普通的watch监听
      this.pesiorFun();
    },
    // 质检当前作业状态:href="APPOR_BASE_URL+'?homeworkId='+v.homeworkId+'&unionid='+unionid+'&teacherId='+homeworkLIst.teacherId+'&state='+2"
    currtHomeworkStatus(val, oldVal) {
      //去检查的watch监听
      window.open(
        APPOR_BASE_URL +
          "?homeworkId=" +
          this.CurrthomeworkIdStatus +
          "&unionid=" +
          this.unionid +
          "&teacherId=" +
          this.homeworkLIst.teacherId +
          "&state=" +
          this.TeacherCheackStyle
      );
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
html,
body {
  height: 100%;
  overflow: hidden;
}
.aside {
  background-color: #fff;
  margin-top: 16px;
  margin-right: 16px;
  padding: 0;
  min-height: 880px;
}
.main-header-num {
  display: flex;
  justify-content: space-between;
  margin: 0 4%;
  padding-left: 4%;
}
.teach-time {
  text-align: right;
}
.teach-block {
  display: inline-block;
}
.main {
  background-color: #fff;
  padding: 0 !important;
  margin-top: 16px;
  min-height: 980px;
}
.table-aside {
  color: #666666;
  font-size: 18px;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
}
el-table {
  color: #999999;
  font-size: 18px;
}
.BgcColor {
  background-color: #f7fbfc;
}
.buttonAppoval {
  display: inline-block;
}
.main-items {
  color: #393939;
  text-align: center;
  line-height: 80px;
}
.main-header-item {
  font-size: 16px;
  font-weight: 700;
}
.model-manager {
  display: flex;
  justify-content: space-between;
  margin: 30px;
  color: #393939;
  font-size: 24px;
}
.main-header-link {
  color: #52cc60;
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
  text-decoration: underline;
}
.el-select {
  width: 100px;
  margin: -10px !important;
}
.teach-style {
  display: inline-block;
  text-align: left;
}
.teach-style-name {
  font-size: 24px;
  margin-left: 10px;
}
.input-with-select .el-input-group__prepend {
  background-color: #fff;
}
.el-select-dropdown__list {
  padding: 15px 0 !important;
}
.active {
  background-color: #52cc60;
  color: #fff;
}
.el-input__inner {
  height: 45px;
  /*margin: 0 5px !important;*/
}

.table-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  /* margin-left: 14px; */
  cursor: pointer;
}
.table {
  width: 94.5%;
  border-top: 1px solid #e5e5e5;
  margin: 0 43px;
}
.table-head {
  color: #999999;
  font-size: 18px;
  text-align: center;
  display: flex;
  justify-content: space-around;
}
.table-head > div {
  width: 13.528%;
}
.table-heads {
  margin-left: 15%;
  width: 68%;
  color: #3ab548;
  font-size: 14px;
  text-align: center;
  display: flex;
  justify-content: space-around;
}
.table-heads > div {
  width: 13.528%;
}
.table-heads1 {
  margin-left: 60px !important;
  margin-right: 260px !important;
  background-color: #fff !important;
  color: #3ab548 !important;
  font-size: 14px;
  text-align: center;
  display: flex;
  justify-content: space-around;
  padding: 0 25px !important;
}
.table-heads1 > div {
  width: 13.528%;
}
ul {
  text-align: center;
  margin: 0 !important;
}
.tr {
  width: 100%;
  color: #393939;
  text-align: center;
  font-family: "PingFang-SC-Bold";
  font-size: 16px;
  font-weight: 700;
}
.tr-first {
  display: flex;
  justify-content: space-around;
}
.tr-first > div {
  width: 13.528%;
}
.tr-set {
  background-color: #fbfbfb;
  display: flex;
  justify-content: space-around;
  color: #393939;
  font-size: 12px;
  margin: 0px;
  /* height:40px; */
  line-height: 40px;
}

.el-button--success.is-plain {
  width: 100px;
  height: 30px;
  font-size: 10px;
  text-align: center;
  line-height: 10px;
}
.el-button--success {
  width: 100px;
  height: 30px;
  font-size: 10px;
  text-align: center;
  line-height: 5px;
}
.el-button--warning {
  width: 100px;
  height: 30px;
  font-size: 10px;
  text-align: center;
  line-height: 5px;
  padding: 10px;
}
.el-button--info {
  width: 100px;
  height: 30px;
  font-size: 10px;
  text-align: center;
  line-height: 5px;
  padding: 10px;
}
.el-button--danger.is-plain {
  width: 100px;
  height: 40px;
  /* font-size:10px; */
  text-align: left;
  line-height: 10px !important;
  padding: 10px;
}
.el-button [class*="el-icon-"] + span {
  margin-left: 0px;
}
.el-input__inner,
.el-checkbox__inner,
.el-textarea__inner,
.el-button {
  font-size: 10px;
  text-align: center;
  line-height: 0px !important;
  /* padding:0px!important; */
}
.tr-secon {
  font-size: 12px;
  text-align: center;
  word-wrap: break-word;
  width: 40px;
  line-height: 60px;
}
.tr-setNo {
  display: flex;
  justify-content: space-around;
  color: #000000f1;
  font-size: 16px;
  margin: 20px;
}
.tr-second {
  background-color: #fbfbfb;
  display: flex;
  color: #393939;
  font-size: 12px;
  width: 80%;
  margin: 0 auto;
}
.tr-seconds {
  text-align: center;
  font-size: 14px;
  word-wrap: break-word;
}
.tr-sw180 {
  width: 400px !important;
  text-align: center;
}
.width40 {
  width: 300px !important;
}
.widthSu {
  width: 120px !important;
}
.tr-secondsA {
  text-align: center;
  font-size: 14px;
  word-wrap: break-word;
  width: 380px;
}
.tr-w120 {
  width: 260px !important;
  text-align: left;
}
.width120 {
  width: 200px;
}
.tr-second-check {
  color: #3ab548;
  font-size: 17px;
  text-decoration: underline;
}
.tr-sw80 {
  width: 120px;
  text-align: center;
}
.width140 {
  width: 140px !important;
}
.width400 {
  width: 350px;
  padding: 10px;
}
.tr-sw180 {
  width: 400px !important;
  text-align: right;
  padding-right: 38px;
}
.ApporTeacher {
  width: 400px !important;
  text-align: right;
}
.Online {
  display: inline-block;
}
.Onlinename {
  display: inline-block;
}
.tr-active {
  color: #3ab548;
}
.showModel {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #000000;
  opacity: 0.2;
  overflow: hidden;
  z-index: 1000;
  color: #fff;
}
.model {
  z-index: 10000;
  width: 60%;
  height: auto;
  position: fixed;
  top: 15%;
  left: 30%;
  margin: auto;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  min-width: 450px !important;
  padding: 20px;
}
.modelspec {
  z-index: 10000;
  width: 35.5%;
  height: auto;
  position: fixed;
  top: 30%;
  left: 32.5%;
  margin: auto;
  background: #fff;
  border-radius: 10px;
  text-align: center;
}
.model-text {
  background: rgba(255, 255, 255, 1);
  border-radius: 10px;
}
.model-items-first {
  padding: 0 34px;
  display: flex;
  justify-content: space-between;
}
.model-items-first-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  position: relative;
  bottom: 20px;
}
.model-items-first-left {
  display: inline-block;
  color: #393939;
  font-size: 24px;
  margin-left: 14px;
  text-align: left;
}
.model-items-first-left-down {
  color: #7e7e7e;
  font-size: 18px;
}
.model-text-head {
  padding: 40px 50px;
  display: flex;
  color: #393939;
  font-size: 24px;
  justify-content: space-between;
}
.model-items-other {
  height: 60px;
  line-height: 60px;
  color: #393939;
  font-size: 20px;
  text-align: left;
  padding: 0 34px;
}
.model-active {
  background-color: #f6f7fb;
}
.model-active-last {
  border-radius: 0 0 30px 30px;
  background-color: #f6f7fb;
}
.model-items-left {
  width: 100%;
  color: #393939;
  font-size: 24px;
}
.model-items-left-top {
  float: left;
  display: flex;
  justify-content: space-between;
}
.model-items {
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  display: inline-block;
  width: 100%;
}
.model-itemss {
  padding: 10px 0;
  /*display: flex;*/
  /*justify-content: space-between;*/
  /*display: inline-block;*/
  width: 40%;
  display: inline-block;
}
.model-items-left-top-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  position: relative;
  bottom: 25px;
}
.model-btn-items {
  font-size: 18px;
}
.main-gay {
  background: rgba(246, 247, 251, 1);
  color: #7e7e7e;
  width: 154px;
  height: 50px;
  line-height: 50px;
  cursor: pointer;
}
.model-grdeen {
  background-color: #52cc60;
  color: #fff;
  width: 154px;
  height: 50px;
  line-height: 50px;
  cursor: pointer;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #52cc60 !important;
  color: #fff;
}
/* .el-input__inner, .el-checkbox__inner, .el-textarea__inner, .el-button {
  font-size:10px;
  text-align:center;
   line-height:5px;
   padding:10px;
} */
.model-text-items-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}
.model-text-items {
  position: relative;
  color: #000000;
  font-size: 24px;
  text-align: center;
  padding: 40px 0 50px 0;
}
.model-btn {
  display: flex;
  justify-content: space-around;
  margin-bottom: 44px;
}
.model-items-left-top-number {
  color: #7e7e7e;
  font-size: 18px;
  margin-left: 10px;
}
.today-time {
  color: #7e7e7e;
  font-size: 18px;
  margin: 0 20px;
}
.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;
  display: none;
}
.no-homework > div {
  margin-bottom: 25px;
  font-size: 24px;
}
.no-homework > img {
  width: 226px;
  height: 203px;
}
.allocation-items {
  width: 45%;
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 30px;
  /* float:left; */
}
.closeTeacherID {
  display: inline-block;
  height: 40px;
  width: 100px;
  color: #f56c6c;
  background: #fef0f0;
  border-color: #fbc4c4;
  border-radius: 20px;
  font-size: 14px;
  line-height: 40px;
  cursor: pointer;
  border: 1px solid;
}
.OutOnlineTeacherID {
  display: inline-block;
  height: 40px;
  width: 140px;
  color: #fff;
  background-color: #f56c6c;
  border-color: #f56c6c;
  border-radius: 20px;
  font-size: 14px;
  line-height: 40px;
  cursor: pointer;
  border: 1px solid;
}
.OutOnlineTeacherID:hover {
  color: #f56c6c;
  background: #fef0f0;
  border-color: #fbc4c4;
}
.closeTeacherID:hover {
  color: #fff;
  background-color: #f56c6c;
  border-color: #f56c6c;
}
.closeAnOpenId {
  width: 250px;
}
.UpTeacherID {
  display: inline-block;
  height: 40px;
  width: 100px;
  color: #67c23a;
  background: #f0f9eb;
  border-color: #c2e7b0;
  border-radius: 20px;
  font-size: 14px;
  line-height: 40px;
  cursor: pointer;
  border: 1px solid;
}
.UpTeacherID:hover {
  color: #fff;
  background-color: #67c23a;
  border-color: #67c23a;
}
.TeacherApporTime {
  text-align: center;
  display: inline-block;
  height: 30px;
  width: 60px;
  color: #706f6f;
  background: #b6b6b6;
  border-color: #929492;
  border-radius: 20px;
  font-size: 14px;
  line-height: 30px;
  cursor: pointer;
  margin: 0 5px;
}
.TeacherApporTime:hover {
  color: #fff;
  background-color: #909399;
  border-color: #909399;
}
.teach-Allot {
  width: 350px;
  position: relative;
}
.SeachIcon {
  position: absolute;
  font-size: 16px;
  color: #b6b6b6;
  right: 42%;
  top: 15%;
  cursor: pointer;
}
.input-with-Allot {
  border: #b6b6b6;
  border-radius: 15px;
  height: 30px;
  width: 220px;
  font-size: 8px;
  color: #b6b6b6;
  text-align: left;
  line-height: 30px;
  background: #f1f2f4;
  padding: 0 10px;
  float: left;
  outline: none !important;
  box-shadow: none;
}
.Dayinput-with-Allot {
  border: #b6b6b6;
  border-radius: 20px;
  height: 40px;
  width: 300px;
  font-size: 8px;
  color: #b6b6b6;
  text-align: left;
  line-height: 40px;
  background: #f1f2f4;
  padding: 0 10px;
  float: left;
  outline: none !important;
  box-shadow: none;
}
.Dayteach-Allot {
  width: 400px;
  position: relative;
  height: 40px;
  top: 15px;
}
.DaySeachIcon {
  position: absolute;
  font-size: 20px;
  color: #b6b6b6;
  right: 30%;
  margin-top: 10px;
  cursor: pointer;
}
.selectBox {
  position: relative;
  float: left;
  display: inline-block;
}
.Ageclass {
  display: inline-block;
  height: 40px;
  width: 140px;
  background-color: #f1f2f4;
  line-height: 40px;
  font-size: 16px;
  cursor: pointer;
}
.age-tip {
  width: 80%;
  height: 40px;
  color: #747070;
  font-size: 12px;
}
.class-download {
  background-color: #fff;
  width: 160px;
  z-index: 999999;
  position: absolute;
  border: 1px solid #e0dddd;
  border-radius: 5px;
  top: 58px;
}
.class-download ul li {
  height: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  color: #b6b6b6;
}
.class-download ul li:hover {
  background-color: #52cc60;
  color: #ffff;
}
.miniorinput-with-Allot {
  border: #b6b6b6;
  border-radius: 5px;
  height: 40px;
  width: 280px;
  font-size: 8px;
  color: #b6b6b6;
  text-align: left;
  line-height: 40px;
  background: #f1f2f4;
  padding: 0 10px;
  float: left;
  outline: none !important;
  box-shadow: none;
}
.miniorteach-Allot {
  float: left;
  width: 280px;
  position: relative;
  height: 40px;
  top: 15px;
}
.displayBox {
  display: inline-block;
  float: left;
  text-align: left !important;
  margin-left: 40px;
}
.miinorSeachIcon {
  position: absolute;
  font-size: 20px;
  color: #b6b6b6;
  right: 5%;
  margin-top: 12px;
  cursor: pointer;
}
.ApporStyles {
  display: inline-block;
  width: 200px;
  height: 40px;
  line-height: 40px;
  background-color: #fff;
  border-radius: 20px;
  font-size: 16px;
  color: #7c819d;
  cursor: pointer;
}
.Apporvalactive {
  background-color: #52cc60 !important;
  color: #fff !important;
}
.main-header-numNew {
  display: flex;
  justify-content: space-between;
}
</style>
