<template>
  <div id="stuleaveList">
    <el-row>
      <el-col :span="24">
        <el-col :span="24" class="list">
          <el-col :span="18" class="name">
            <p>班主任姓名:{{ teacherinfo.name }}</p>
          </el-col>
          <el-col :span="6" class="btn">
            <el-link :underline="false" @click="clicktea(teacherinfo.id)">详情</el-link>
          </el-col>
        </el-col>
        <el-col :span="24" class="list" v-for="(item, index) in newclassList" :key="index">
          <el-col :span="18" class="name">
            <p>学生姓名：{{ item.name }}</p>
          </el-col>
          <el-col :span="6" class="btn">
            <el-link :underline="false" @click="clickShows(item.id)">详情</el-link>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  name: 'stuleaveList',
  props: {
    newclassList: null,
    leaveInfo: null,
    show: null,
    headinfo: null,
    teacherinfo: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    clickShows(id) {
      this.$router.push({ path: '/class/stuDetail', query: { id } });
    },
    clicktea(id) {
      console.log(id);

      this.$router.push({ path: '/class/stuDetail', query: { id } });
    },
  },
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.list {
  margin: 10px 10px 0 10px;
  background: #fff;
  width: 95%;
  padding: 10px;
  border-radius: 10px;
}
.list .name {
  padding: 5px 0;
}
.list .btn {
  padding: 5px 0;
  text-align: center;
}
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.leaveInfo {
  width: 90%;
  background: #ffffff;
  padding: 0 0 10px 0;
  border-radius: 10px;
}
.info {
  height: 450px;
  overflow-y: auto;
}
.jilu {
  text-align: center;
  padding: 10px 0;
}
.leavelist {
  padding: 10px 10px 0 10px;
}
.leavelist .date p {
  padding: 0;
}
.leavelist .status {
  padding: 10px 0;
}
</style>
