<template>
  <div class="content-box">
    <div class="left">
      <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
      <span class="cameratxt">考勤记录</span>
    </div>
    <!-- <el-tabs v-model="recordType" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="学生" :name="1">学生</el-tab-pane>
      <el-tab-pane label="教师" :name="2">教师</el-tab-pane>
    </el-tabs> -->
    <div class="scrollId" >
      <div class="middle">
        <div class="filter">
          <div class="condition">
            <el-input
              :clearable="true"
              @blur="searchBtn"
              @clear="searchBtn"
              v-model.trim="searchInput.name"
              class="sel"
              placeholder="请输入学生姓名"
            />
          </div>
          <div class="condition">
            <el-input
              :clearable="true"
              @blur="searchBtn"
              @clear="searchBtn"
              v-model.trim="searchInput.cardId"
              class="sel"
              placeholder="请输入学生学号"
            />
          </div>
          <el-button
            color="rgba(0, 97, 255, 1)"
            type="primary"
            class="search"
            @click="searchBtn"
          >
            <!-- <el-icon>
              <Search />
            </el-icon> -->
            查询</el-button
          >
          <!-- 年级 -->
          <div class="condition" v-if="classId==0">
            <span class="title">年级 : </span>
            <el-select
              v-model="searchInput.grade"
              placeholder="请选择年级"
              style="width: 160px"
              @change="gradeChange"
              :clearable="true"
            >
              <el-option
                v-for="i in gradeData"
                :label="i.name"
                :value="i.id"
              >
              </el-option>
            </el-select>
          </div>
          <!-- 班级 -->
          <div class="condition" v-if="classId==0">
            <span class="title">班级 : </span>
            <el-tooltip
              class="box-item"
              effect="dark"
              content="请先选择年级"
              placement="top"
            >
              <el-select
                v-model="searchInput.class"
                placeholder="请选择班级"
                style="width: 160px"
                @change="searchBtn"
                :clearable="true"
              >
                <el-option
                  v-for="i in classData"
                  :label="i.name"
                  :value="i.id"
                />
              </el-select>
            </el-tooltip>
          </div>

          <!-- 年级 -->
          <div class="condition" v-if="classId!=0">
            <span class="title">年级 : </span>
            <el-select
              v-model="searchInput.grade"
              placeholder="请选择年级"
              style="width: 160px"
            >
              <el-option
                v-for="i in gradeData"
                :label="i.name"
                :value="i.id"
              >
              </el-option>
            </el-select>
          </div>
          <!-- 班级 -->
          <div class="condition" v-if="classId!=0">
            <span class="title">班级 : </span>
              <el-select
                v-model="searchInput.class"
                placeholder="请选择班级"
                style="width: 160px"
                @change="searchBtn"
              >
                <el-option
                  v-for="i in classData"
                  :label="i.name"
                  :value="i.id"
                />
              </el-select>
          </div>
          <!-- 部门 -->
          <!-- <div class="condition">
            <span class="title">部门 : </span>
            <el-select
              v-model="searchInput.department"
              placeholder="请选择部门"
              style="width: 160px"
              @change="searchBtn"
              :clearable="true"
            >
              <el-option
                v-for="i in departmentData"
                :label="i.name"
                :value="i.id"
              />
            </el-select>
          </div> -->
          <!-- 识别分组 -->
          <!-- <div class="condition">
            <span class="title">识别分组 : </span>
            <el-select
              v-model="searchInput.recognition"
              placeholder="请选择识别分组"
              style="width: 160px"
              @change="searchBtn"
              :clearable="true"
            >
              <el-option
                v-for="i in recognitionData"
                :label="i.name"
                :value="i.id"
              >
              </el-option>
            </el-select>
          </div> -->
          <!-- 通行状态 -->
          <div class="condition">
            <span class="title">考勤状态 : </span>
            <el-select
              v-model="searchInput.passType"
              placeholder="请选择考勤状态"
              style="width: 160px"
              @change="searchBtn"
              :clearable="true"
            >
              <el-option label="准时" :value="0"></el-option>
              <el-option label="迟到" :value="1"></el-option>
              <el-option label="缺卡" :value="3"></el-option>
              <el-option label="请假" :value="6"></el-option>
              <el-option label="超时打卡" :value="7">
              </el-option>
            </el-select>
          </div>
          <!-- 时间 -->
          <div class="condition">
            <span class="title">时间 : </span>
            <el-date-picker
              v-model="searchInput.createTime"
              type="datetimerange"
              unlink-panels
              :clearable='true'
              range-separator="-"
              start-placeholder="起始时间"
              end-placeholder="结束时间"
              format="YYYY-MM-DD HH:mm:ss"
              value-format="YYYY-MM-DD HH:mm:ss"
              :prefix-icon="Calendar"
              placeholder="请选择日期"
              style="width: 350px"
              @change="searchBtn"
            />
          </div>
        </div>
        <!-- 按钮列表 -->
        <div class="gongneng">
          <el-button
            type="primary"
            color="rgba(0, 97, 255, 1)"
            plain
            @click="importExcel"
            >记录导出</el-button
          >
          <el-button
            type="primary"
            color="rgba(0, 97, 255, 1)"
            plain
            @click="editClick"
            >推送人设置</el-button
          >
        </div>
      </div>
      <div class="footer" v-loading="loading">
        <el-table
          :row-class-name="tableRowClassName"
          :data="tableData.list"
          @selection-change="handleSelectionChange"
          style="width: 100%"
          :header-cell-style="{
            background: 'rgba(240, 243, 247, 1)',
            height: '50px',
            border: 0,
          }"
        >
          <el-table-column
            align="center"
            type="index"
            label="序号"
            width="80"
          />
          <el-table-column align="center" prop="name" label="姓名" />
          <el-table-column align="center" prop="gradeName" label="年级" />
          <el-table-column align="center" prop="className" label="班级" />
          <el-table-column align="center" prop="cardNo" label="学号" />
          <el-table-column align="center" prop="cardNo" label="图像">
            <template #default={row}>
              <div v-viewer>
                <img :src="row.headImage" style="width:60px;height:60px"/>
              </div>
            </template>
          </el-table-column>
          <el-table-column align="center" label="打卡时间">
            <template #default={row}>
              <span v-if="row.status==6">{{row.initiateTime}}</span>
              <span v-else>{{row.attendTime}}</span>
            </template>
          </el-table-column>
          <el-table-column align="center" prop="score" label="状态" >
            <template #default={row}>
              <span v-if="row.status==0">准时</span>
              <span v-if="row.status==1">迟到</span>
              <span v-if="row.status==3">缺卡</span>
              <span v-if="row.status==6">请假</span>
              <span v-if="row.status==7">超时打卡</span>
            </template>
          </el-table-column>
          <!-- <el-table-column align="center" prop="status" label="操作">
            <template #default="scope">
              <div class="look" @click="editClick(scope.row)">编辑</div>
            </template>
          </el-table-column> -->
        </el-table>
      </div>

      <!-- 分页组件 -->
      <div class="pageSize">
        <span></span>
        <el-pagination
          background
          :current-page="studentData.currentPage"
          :page-sizes="[10, 20, 50, 100]"
          :page-size="studentData.pageSize"
          layout="total, prev, pager, next, jumper, slot"
          :total="studentData.total"
          @update:page-size="handleSizeChange"
          @update:current-page="handleCurrentChange"
        />
      </div>

      <!-- 推送人设置 -->
      <el-dialog
        class="editDialog"
        v-model="editVisible"
        :close-on-click-modal="false"
        :close-on-press-escape="false"
        title="推送人设置"
        align-center
        width="500"
        :before-close="editCancel"
      >
        <div class="switch">
          <p>按照身份推送 ：</p>
          <el-checkbox v-model="editChecked1" label="家长" :true-value="1" :false-value="2" size="large" />
          <el-checkbox v-model="editChecked2" label="班主任" :true-value="1" :false-value="2" size="large" />
        </div>
        <div class="options">
          <el-button
            color="rgba(41, 109, 227, 1)"
            class="queding"
            type="primary"
            @click="editConfirm"
          >
            确认
          </el-button>
          <el-button @click="editCancel">取消</el-button>
        </div>
      </el-dialog>

      <div class="bgImg" v-if="bgImg">
      <el-carousel
        @click="bgImg = false"
        ref="bgImgs"
        indicator-position
        arrow="always"
        :autoplay="false"
        trigger
      >
        <el-carousel-item  >
          <img :src="showImg" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
    </div>
   
  </div>
</template>

<script setup>
import {
  ref,
  reactive,
  watch,
  nextTick,
  onBeforeMount,
  onUnmounted,
} from "vue";
import { useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
import { Calendar } from "@element-plus/icons-vue";
import vidiconsApi from "@/api/vidicons.js";
import { dayjs } from "element-plus";
import eds from "@/utils/eds.js";
import lodash from "lodash";
import axios from "axios";
import { useStore } from "vuex";
const store = useStore();
const api = ref("");
const router = useRouter();
// 表格数据
const loading = ref(false);
const classId=ref() // 获取所管理的班级的id（0是所有班级）
const tableData = reactive({
  list: [],
});
const gradeData = ref(); //年级下拉数据
const classData = ref(); //班级下拉数据
const departmentData = ref([{ name: "发财部", id: 1 }]); //部门下拉数据
const recognitionData = ref([
  { name: "全部", id: 1 },
  { name: "其他组", id: 2 },
]); //识别分组数据
const passTypeData = ref([{ name: "正常通行", id: 1 }]); //通行状态数据

const searchInput = reactive({
  name: "",
  cardId: "",
  grade: "", // 年级
  class: "", // 班级
  department: "", // 部门
  recognition: "", // 识别分组
  passType: "", // 通行状态
  createTime: [
  ], // 时间
}); // 搜索按钮数据

const studentData = reactive({
  currentPage: ref(1), // 当前页
  pageSize: ref(10),
  total: ref(5), // 当前总数
});
const bgImg = ref(false);
const showImg=ref('')

// 推送人设置
const editVisible=ref(false)
const editId=ref()
const editChecked1=ref(2)// 家长
const editChecked2=ref(2)// 班主任

// 年级数据下拉
const adminClassDataList = async () => {
  console.log(classId.value==1);
  if(classId.value==0){
    let grade = await axios({
      method: "get",
      url: api.value + "/wanzai/api/smartGrade/querySmartGrades",
      headers: {
        token: sessionStorage.getItem("token"),
        user_head: sessionStorage.getItem("userhead"),
      },
      // params: data,
    });
    console.log(
      grade,
      JSON.parse(eds.decryptDes(grade.data.data)),
      "年级下拉数据"
    );
    gradeData.value = JSON.parse(eds.decryptDes(grade.data.data));
  }else{
    let grade = await axios({
      method: "get",
      url: api.value + "/wanzai/api/smartClass/getClassId",
      headers: {
        token: sessionStorage.getItem("token"),
        user_head: sessionStorage.getItem("userhead"),
      },
      params: {
        schoolClass:classId.value
      },
    });
    console.log(
      grade,
      JSON.parse(eds.decryptDes(grade.data.data)),
      "年级下拉数据"
    );
    let data = JSON.parse(eds.decryptDes(grade.data.data));
    gradeData.value=[{
      name:data.gradeName,
      id:data.gradeId
    }]
    classData.value=[{
      name:data.className,
      id:data.classId
    }]
    searchInput.grade=data.gradeId
    searchInput.class=data.classId
  }
  getList()
};
// 管理员 改变年级选择
const gradeChange = (value) => {
  console.log(value);
  if (value) {
    adminClassInfoList(value);
  } else {
    classData.value = [];
    searchInput.class=""
  }
  getList();
};
// 管理员 班级数据下拉
const adminClassInfoList = async (value) => {
  let data = {
    gradeId: value,
  };
  let res = await axios({
    method: "get",
    url: api.value + "/wanzai/api/smartClass/querySmartClasss",
    headers: {
      token: sessionStorage.getItem("token"),
      user_head: sessionStorage.getItem("userhead"),
    },
    params: data,
  });

  if (res.data.code == 200) {
    console.log(
      res,
      JSON.parse(eds.decryptDes(res.data.data)),
      "班级下拉数据"
    );
    classData.value = JSON.parse(eds.decryptDes(res.data.data));
  } else {
    classData.value = [];
  }
};

// 获取成绩分页数据 （----------------------------------------------------------------）
const getList = async () => {
  loading.value = true;
  let data = {
    currentPage: studentData.currentPage,
    pageCount: studentData.pageSize,
    name: searchInput.name, // 用户名称
    studentNo: searchInput.cardId, // 用户名称
    status:searchInput.passType,
    gradeId:searchInput.grade,
    classId:searchInput.class,
  };
  if(searchInput.createTime){
    data.startTime = searchInput.createTime[0];
    data.endTime = searchInput.createTime[1]
  }
  let res = await axios({
    method: "get",
    url: api.value + "/wanzai/api/smartAttendance/queryPage",
    headers: {
      token: sessionStorage.getItem("token"),
      user_head: sessionStorage.getItem("userhead"),
    },
    params: data,
  });
  console.log(res, JSON.parse(eds.decryptDes(res.data.data)), "考勤记录");
  if (res.data.code == 200) {
    loading.value = false;
    tableData.list = JSON.parse(eds.decryptDes(res.data.data)).list;
    studentData.total = JSON.parse(eds.decryptDes(res.data.data)).totalCount;
  } else {
    loading.value = false;
    ElMessage({
      type: "error",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  }
};

// 搜索功能
const searchBtn = lodash.debounce(async () => {
  getList();
}, 300);

// 推送人设置
const editClick =async () =>{
  editVisible.value=true
  let res = await axios({
    method: "get",
    url: api.value + "/wanzai/api/smartPushConfig/list",
    headers: {
      token: sessionStorage.getItem("token"),
      user_head: sessionStorage.getItem("userhead"),
    },
  });
  console.log(res, JSON.parse(eds.decryptDes(res.data.data)), "推送配置");
  if (res.data.code == 200) {
    let data = JSON.parse(eds.decryptDes(res.data.data))
    editId.value=data.id
    editChecked1.value=data.parentsPush
    editChecked2.value=data.chargeTeacherPush
  } 
}
const editConfirm=async ()=>{
  let data = {
    id: editId.value,
    parentsPush:  editChecked1.value,
    chargeTeacherPush: editChecked2.value, // 用户名称
  };
  let res = await axios({
    method: "post",
    url: api.value + "/wanzai/api/smartPushConfig/update",
    headers: {
      token: sessionStorage.getItem("token"),
      user_head: sessionStorage.getItem("userhead"),
    },
    data: data,
  });
  console.log(res, "确定推送");
  if (res.data.code == 200) {
    editVisible.value=false
    ElMessage({
      type: "success",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  } else {
    ElMessage({
      type: "error",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  }
}
const editCancel=()=>{
  editVisible.value=false
}

//导出功能 (-----------------------------------------------------------------)
const importExcel = async () => {
  let data = {
    currentPage: studentData.currentPage,
    pageCount: studentData.pageSize,
    name: searchInput.name, // 用户名称
    studentNo: searchInput.cardId, // 用户名称
    status:searchInput.passType,
    gradeId:searchInput.grade,
    classId:searchInput.class,
  };
  if(searchInput.createTime){
    data.startTime = searchInput.createTime[0];
    data.endTime = searchInput.createTime[1]
  }
  let res = await axios({
    method: "get",
    url: api.value + "/wanzai/api/smartAttendance/queryPageExport",
    headers: {
      token: sessionStorage.getItem("token"),
      user_head: sessionStorage.getItem("userhead"),
    },
    params: data,
    responseType: "blob",
  });
  console.log(res, "导出用户");
  if (res.status == 200) {
    let name = `考勤记录数据`;
    var content = res.data;
    var datas = new Blob([content]);
    var downloadUrl = window.URL.createObjectURL(datas);
    var anchor = document.createElement("a");
    anchor.href = downloadUrl;
    anchor.download = name + ".xlsx";
    anchor.click();
    window.URL.revokeObjectURL(datas);
    ElMessage({
      type: "success",
      showClose: true,
      message: "导出成功",
      center: true,
    });
  } else {
    ElMessage({
      type: "error",
      showClose: true,
      message: "导出失败",
      center: true,
    });
  }
};

// 表格斑马纹颜色修改
const tableRowClassName = ({ row, rowIndex }) => {
  if (rowIndex % 2 === 0) {
    return "even";
  } else if (rowIndex % 2 !== 0) {
    return "odd";
  }
  return "";
};
const handleSizeChange=(value)=>{
  studentData.pageSize=value
  getList()
}
// 分页
const handleCurrentChange = (value) => {
  studentData.currentPage = value;
  getList();
};
// 查看图片
const imgClick = (row) => {
  console.log(row);
  bgImg.value = true;
  showImg.value = row;
};

// 分页
const teacherPageChange = (value) => {
  teacherData.currentPage = value;
  getList();
};
// 判断为班主任 还是 超级管理员
const getAdminId=async ()=>{
  // 获取所管理的班级的id（0是所有班级）
  let res = await axios({
    method: "get",
    url: api.value + "/wanzai/api/smartAuthorGroup/getClassById",
    headers: {
      token: sessionStorage.getItem("token"),
      user_head: sessionStorage.getItem("userhead"),
    },
    params:{
      userHead:sessionStorage.getItem("userhead")
    },
  });
  console.log(res,JSON.parse(eds.decryptDes(res.data.data)),"获取所管理的班级的id（0是所有班级）");
  if (res.data.code == 200) {
    let classIds=JSON.parse(eds.decryptDes(res.data.data)).schoolClass
    classId.value = classIds
     adminClassDataList()
  } 
}

onBeforeMount(async () => {
  api.value = store.state.user.api;
  // getList();
  getAdminId();
});
onUnmounted(() => {
  // document.removeEventListener("keyup", Enters);
});
</script>

<style scoped lang="scss">
.content-box {
  min-width: 500px;
  width: calc(100vw - 260px);
  height: calc(100vh - 105px);
  margin: 20px auto;
  background-color: #fff;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);

  .left {
    // width: calc(100wh - 40px);
    display: flex;
    align-items: center;
    height: 60px;
    margin: 0 30px;
    border-bottom: 1px solid #ccc;
    color: rgb(0, 0, 0);
    font-size: 18px;
    font-weight: 600;

    span {
      height: 60px;
      display: block;
      line-height: 60px;
      margin-right: 20px;
    }

    .is_active {
      color: rgba(111, 182, 184, 1);
    }
  }
  :deep(.el-tabs) {
    margin: 0 30px;
    .el-tabs__header {
      margin: 0;
    }
    .el-tabs__content {
      display: none;
    }
  }
  .scrollId {
    overflow: auto;
    height: calc(100% - 61px);
    display: flex;
    flex-direction: column;
    .middle {
      width: 96%;
      margin: 0 auto;

      color: #000;

      // border-bottom: 1px solid rgb(231, 231, 231);
      .filter {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin: 10px 0 0 0;

        .search {
          color: #fff;
        }

        .condition {
          display: flex;
          align-items: center;
          margin: 10px 20px 10px 0;

          :deep(.el-input .el-input__inner) {
            font-size: 14px;
          }
          .title {
            padding: 0 25px 0 0;
          }
        }
        .grade {
          .el-input {
            :deep(.el-input__wrapper) {
              box-shadow: none;
            }
          }
          .grade_left {
            border-top: 1px solid #dcdfe6;
            border-bottom: 1px solid #dcdfe6;
            border-left: 1px solid #dcdfe6;
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
          }
          .line {
            display: block;
            height: 32px;
            line-height: 32px;
            padding: 0 8px;
            border-top: 1px solid #dcdfe6;
            border-bottom: 1px solid #dcdfe6;
          }
          .grade_right {
            border-top: 1px solid #dcdfe6;
            border-bottom: 1px solid #dcdfe6;
            border-right: 1px solid #dcdfe6;
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
          }
        }
        .search {
          margin-right: 20px;
        }
      }

      .gongneng {
        margin: 10px 0 10px 0;

        span {
          color: #fff;
        }
        .el-button {
          margin-right: 10px;
        }
      }

    }

    .footer {
      width: 96%;
      flex: 1;
      min-height: 300px;
      margin: 10px auto 0;

      .el-table--fit {
        height: 100%;

        :deep(.el-table__header-wrapper) {
          background-color: #000;
          font-size: 14px;

          tr {
            // color: #000;
          }
        }

        :deep(.el-table__row) {
          height: 50px;
          font-size: 14px;
          // color: #000;

          &:hover {
            td {
              background-color: rgba(223, 236, 254, 1);
            }
          }
        }

        :deep(.el-table__row td) {
          padding: 0;
          border: 0;
          .normal {
            background-color: rgba(139, 195, 74, 1);
            color: #fff;
            padding: 4px;
          }
        }

        .el-button--primary {
          margin-left: 5px;
        }

        :deep(.el-table__body .even) {
          background-color: #fff;
        }

        :deep(.el-table__body .odd) {
          background-color: rgba(240, 243, 247, 1);
        }

        :deep(.edit) {
          display: flex;
          align-items: center;
          justify-content: center;
          color: rgba(111, 182, 184, 1);
        }

        :deep(.look) {
          padding: 0 10px;
          cursor: pointer;
          color: rgba(30, 125, 251, 1);
        }

        .del {
          padding: 0 10px;
          color: rgba(212, 48, 48, 1);
          cursor: pointer;
        }

        // :deep(.look):hover {
        //   color: red;
        // }
        // :deep(.del):hover {
        //   color: red;
        // }
      }
    }

    .pageSize {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 20px 30px;

      span {
        color: #000;
      }

      .el-pagination {
        // width: 1600px;
        :deep(.el-pagination__total) {
          color: #000;
        }

        :deep(.el-pagination__goto) {
          color: #000;
        }

        :deep(.el-pagination__classifier) {
          color: #000;
        }

        :deep(.el-input__wrapper) {
          border: 1px solid rgba(0, 0, 0, 1);
          border-radius: 5px;
          box-shadow: none;
        }

        :deep(.el-pager li) {
          margin: 0 5px;
          border: 1px solid rgba(0, 0, 0, 1);
          border-radius: 5px;
          background-color: transparent;
        }

        :deep(.el-pager li.is-active) {
          // background-color: rgba(0, 97, 255, 0.8);
          border: 1px solid rgba(0, 97, 255, 1);
          color: rgba(0, 97, 255, 1);
        }

        :deep(.btn-prev) {
          margin-right: 5px;
          border: 1px solid rgba(0, 0, 0, 1);
          border-radius: 5px;
          background-color: transparent;
        }

        :deep(.btn-next) {
          margin-left: 5px;
          border: 1px solid rgba(0, 0, 0, 1);
          border-radius: 5px;
          background-color: transparent;
        }
      }
    }
    :deep(.editDialog) {
    //   height: 420px;
    border-radius: 11px;
    .el-dialog__header {
      border-radius: 11px 11px 0 0;
      background: rgba(237, 241, 245, 1);
      font-weight: 600;
      margin: 0;
      .el-dialog__headerbtn {
        outline: none;
      }
    }
    .el-dialog__body {
      padding: 0 30px;
      height: 300px;
      .switch {
        margin: 10px 0;
        p {
          font-size: 17px;
          margin-right: 10px;
        }
      }
      .attention {
        color: rgb(238, 190, 119);
      }
      .options {
        margin: 160px 20px 20px 0;
        width: 100%;
        display: flex;
        flex-direction: row-reverse;
        .queding {
          color: #fff;
          margin-left: 15px;
        }
      }
    }
  }
    .bgImg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99999999;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    :deep(.el-carousel__arrow){
      display:none;
    }
    // border-radius: 50px;
    :deep(.el-carousel__container) {
      width: 100%;
      height: calc(100vh);

      .el-carousel__item {
        display: flex;
        justify-content: center;

        img {
          height: 100%;
        }
      }
    }
  }
  }
}

.el-input {
  width: 192px;
}
</style>
<style lang="scss">
//添加成员 联系人下拉框样式
.gradeSelect {
  // border: 1px solid red;
  .el-select-dropdown__wrap {
    height: 200px;
    // border: 1px solid red;
  }
}
.el-popper {
  .addStudentMore {
    text-align: center;
  }
}
</style>
