<template>
  <div id="right">
    <el-col :span="24" class="rightTop"
      ><span class="title">{{ title }}</span></el-col
    >
    <el-col :span="24" class="context">
      <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="daishenuser" v-for="(item, index) in shenheList" :key="index">
              <el-col :span="24" class="fbListTop">
                <el-col :span="20">登录名称 {{ item.name }}</el-col>
                <el-col :span="4">{{ item.date }}</el-col>
              </el-col>
              <el-col :span="24" class="fbListCenter">
                <el-col :span="6" class="fbListCenterC">
                  <el-col :span="24" class="listname"> {{ item.name }}</el-col>
                  <el-col :span="24" class="listtype"> 类别:{{ item.type }}</el-col>
                  <el-col :span="24" class="listphone"> 电话：{{ item.phone }}</el-col>
                </el-col>
                <el-col :span="18" class="fbListCenterR"
                  ><span>{{ item.user }}</span></el-col
                >
              </el-col>
            </el-col>
          </el-col>
          <el-col 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="daishenuser" v-for="(item, index) in weishenheList" :key="index">
              <el-col :span="24" class="fbListTop">
                <el-col :span="20">登录名称 {{ item.name }}</el-col>
                <el-col :span="4">{{ item.date }}</el-col>
              </el-col>
              <el-col :span="24" class="fbListCenter">
                <el-col :span="6" class="fbListCenterC">
                  <el-col :span="24" class="listname"> {{ item.name }}</el-col>
                  <el-col :span="24" class="listtype"> 类别:{{ item.type }}</el-col>
                  <el-col :span="24" class="listphone"> 电话：{{ item.phone }}</el-col>
                </el-col>
                <el-col :span="18" class="fbListCenterR"
                  ><span>{{ item.user }}</span></el-col
                >
              </el-col>
            </el-col>
          </el-col>
          <el-col 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-tabs>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'right',
  props: {
    shenheList: null,
    weishenheList: null,
  },
  components: {},
  data: () => ({
    title: '用户列表',
    activeName: 'first',
    currentPage: 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>
.rightTop {
  height: 60px;

  line-height: 60px;
  border-bottom: 1px solid #215299;
}

.rightTop .title {
  width: 130px;
  height: 60px;
  float: left;
  color: rgb(255, 255, 255);
  font-size: 18px;
  text-align: center;
  font-family: 微软雅黑, Tahoma, Arial, Helvetica, STHeiti;
  background: rgb(33, 82, 153);
}
.context {
  margin: 20px 30px 0 30px;
  width: 890px;
}

.list {
  height: 660px;
}
.daishenuser {
  width: 890px;
  height: 145px;
  border: 1px solid #ccc;
  margin-top: 20px;
}
.fbListTop {
  height: 43px;
  margin-left: 1px;
  background: #fafafa;
  line-height: 43px;
  text-indent: 10px;
  font-size: 13px;
  color: #888888;
  width: 887px;
}
.fbListCenter {
  width: 870px;
  height: 119px;
  margin: 20px 0 0 12px;
}
.fbListCenterC {
  width: 196px;
  border-right: 1px solid #ccc;
  float: left;
  padding-right: 20px;
  height: 70px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.fbListCenterR {
  border-left: 1px solid #ccc;
  width: 125px;
  height: 70px;
  float: left;
}
.fbListCenterR span {
  margin-left: 20px;
  font-size: 14px;
  color: #215299;
  float: left;
  cursor: pointer;
}
.listName {
  width: 196px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: 30px;
  font-size: 16px;
  color: #555555;
}
.listtype {
  width: 196px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 16px;
  color: #555555;
  height: 30p;
}
.listphone {
  height: 30px;
  font-size: 16px;
  color: #fe0000;
  width: 196px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.page {
  margin: 30px 0 30px 0;
  text-align: center;
}
</style>
