<!--  -->
<template>
  <div class="tab4-5">
    <div class="top">
      学籍查询
      <div class="search">
        <el-input
          placeholder="姓名搜索"
          suffix-icon="el-icon-search"
          v-model="search"
        >
        </el-input>
        <span class="btn" @click="mySearch"></span>
      </div>
    </div>
    <!-- 内容 -->
    <div class="conten">
      <div class="row" v-for="i in 10" :key="i" @click="$router.push('/tab4-5-1')">
        <img src="../../assets/img/demo.png" alt="" />
        <p>张国荣</p>
      </div>
    </div>
    <!-- 分页 -->
    <!-- :page-sizes="[15, 30, 45, 60]"
        :current-page="from2.pageNum"
        @current-change="currentChange"
        @size-change="sizeChange"
 -->
    <div class="paging">
      <el-pagination layout="prev,pager,next,jumper" :total="100">
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: 'tab4-5',
  components: {},
  data () {
    // 这里存放数据
    return {
      search: ''
    }
  },
  // 监听属性 类似于data概念
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {
    mySearch () {
      console.log('点击了搜索')
    }
  },
  // 生命周期 - 创建完成（可以访问当前this实例）
  created () {},
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted () {},
  beforeCreate () {}, // 生命周期 - 创建之前
  beforeMount () {}, // 生命周期 - 挂载之前
  beforeUpdate () {}, // 生命周期 - 更新之前
  updated () {}, // 生命周期 - 更新之后
  beforeDestroy () {}, // 生命周期 - 销毁之前
  destroyed () {}, // 生命周期 - 销毁完成
  activated () {} // 如果页面有keep-alive缓存功能，这个函数会触发
}
</script>
<style lang='less' scoped>
.tab4-5 {
  position: relative;
  min-width: 1600px;
  height: 100%;
  padding: 40px 40px 0;
  color: black;
  .top {
    position: relative;
    width: 100%;
    text-align: center;
    color: #b9412e;
    font-size: 26px;
    font-weight: 700;
    .search {
      right: 140px;
      bottom: 0;
      position: absolute;
      .btn {
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 0;
        height: 40px;
        width: 40px;
        background-color: transparent;
      }
    }
  }
  .conten {
    width: 1500px;
    margin: 30px auto 0;
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    .row {
      cursor: pointer;
      margin: 40px 50px;
      width: 200px;
      height: auto;
      & > img {
        width: 200px;
        height: 230px;
        object-fit: cover;
      }
      & > p {
        margin-top: 8px;
        text-align: center;
      }
    }
  }
    .paging{
      position: absolute;
      left: 50%;
      bottom: 50px;
      transform: translateX(-50%);
    }}
</style>
