<template>
  <div id="userMange">
    <el-row>
      <el-col :span="24" class="basic">
        <el-col :span="24" class="basicTop">
          <span>用户列表</span>
        </el-col>
        <el-col :span="24" class="basicInfo">
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="待审用户" name="first">
              <el-col :span="24" class="list">
                <el-col :span="24" class="shenheList" v-for="(item, index) in shenheList" :key="index">
                  <el-col :span="20" class="name"> 登录名称：{{ item.name }} </el-col>
                  <el-col :span="4" class="date">
                    {{ item.date }}
                  </el-col>
                  <el-col :span="6" class="left">
                    <el-col :span="24" class="title"> {{ item.title }}</el-col>
                    <el-col :span="24" class="title">类别：{{ item.type }}</el-col>
                    <el-col :span="24" class="title">电话：{{ item.tel }}</el-col>
                  </el-col>
                  <el-col :span="18" class="btn">
                    <el-link :underline="false">审核用户</el-link>
                  </el-col>
                </el-col>
              </el-col>
              <el-col :span="24" class="page">
                <el-pagination
                  @size-change="handleSizeChange"
                  @current-change="handleCurrentChange"
                  :current-page="currentPage"
                  layout="total, prev, pager, next, jumper"
                  :total="1"
                >
                </el-pagination>
              </el-col>
            </el-tab-pane>
            <el-tab-pane label="已审用户" name="second">
              <el-col :span="24" class="list">
                <el-col :span="24" class="shenheList" v-for="(item, index) in yishenList" :key="index">
                  <el-col :span="20" class="name"> 登录名称：{{ item.name }} </el-col>
                  <el-col :span="4" class="date">
                    {{ item.date }}
                  </el-col>
                  <el-col :span="6" class="left">
                    <el-col :span="24" class="title"> {{ item.title }}</el-col>
                    <el-col :span="24" class="title">类别：{{ item.type }}</el-col>
                    <el-col :span="24" class="title">电话：{{ item.tel }}</el-col>
                  </el-col>
                  <el-col :span="18" class="btn">
                    <el-link :underline="false">查看详情</el-link>
                  </el-col>
                </el-col>
              </el-col>
              <el-col :span="24" class="page">
                <el-pagination
                  @size-change="handleSizeChange"
                  @current-change="handleCurrentChange"
                  :current-page="currentPage1"
                  layout="total, prev, pager, next, jumper"
                  :total="1"
                >
                </el-pagination>
              </el-col>
            </el-tab-pane>
          </el-tabs>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'userMange',
  props: {
    shenheList: null,
    yishenList: null,
  },
  components: {},
  data: () => ({
    activeName: 'first',
    currentPage: 1,
    currentPage1: 1,
  }),
  created() {},
  computed: {},
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>

<style lang="less" scoped>
.basicTop {
  height: 59px;
  border-bottom: 1px solid #215299;
}
.basicTop span {
  display: inline-block;
  width: 130px;
  height: 59px;
  text-align: center;
  line-height: 60px;
  background-color: #215299;
  color: #fff;
  font-size: 18px;
}
.basicInfo {
  padding: 20px 40px;
}
/deep/.el-tabs__header {
  margin: 0;
}
/deep/.el-tabs__item {
  font-size: 16px;
  color: #ccc;
}
/deep/.el-tabs__active-bar {
  background-color: #0165bb;
}
/deep/.el-tabs__item.is-active {
  color: #0165bb !important;
}
.list {
  margin: 20px 0 0 0;
  height: 808px;
  overflow: hidden;
}
.shenheList {
  border: 1px solid #ccc;
  margin: 0 0 20px 0;
}
.shenheList .name {
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  background: #fafafa;
  font-size: 13px;
  color: #888888;
}
.shenheList .date {
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #fafafa;
  font-size: 13px;
  color: #888;
}
.shenheList .left {
  height: 100px;
  margin: 20px 0;
  border-right: 2px solid #ccc;
  padding: 0 0 0 10px;
}
.shenheList .left .title {
  height: 30px;
  line-height: 30px;
  font-size: 16px;
  color: #555;
}
.shenheList .btn {
  height: 100px;
  margin: 20px 0;
  padding: 0 10px;
}
.shenheList .btn .el-link {
  font-size: 14px;
  color: #215299;
}
.page {
  height: 30px;
  line-height: 30px;
  margin: 40px 0;
  text-align: center;
}
</style>
