<!-- 活动解析 -->
<template>
  <div>
    <!-- table 表格 -->
    <el-row :gutter="20" class="main-items" >

      <!--数据监控-->
      <el-col :span="20" class="main" :offset="2">
        <el-row :gutter="20" class="main-header">
          <el-col :span="3"><div class="main-header-item" >
            <i class="el-icon-d-arrow-left"></i>
              <span>2018-12</span>
            <i class="el-icon-d-arrow-right"></i>
          </div></el-col>
          <el-col :span="4" :offset="17">
            <div class="main-header-item">
              <i class="el-icon-printer"></i>
              <span>导出表表格</span>
            </div>
          </el-col>
        </el-row>
        <el-table
          :data="dataList"
          highlight-current-row
          size="medium"
          border
          stripe
        >
          <el-table-column
            label="注册老师"
            header-align="center"
          >
            <template scope="scope">
              <img :src="scope.row.img" alt="" class="table-img">
            </template>
          </el-table-column>
          <el-table-column
            prop="names"
            label="1～2年级0.6元/份"
            header-align="center"
          >
          </el-table-column>
          <el-table-column
            prop="number"
            label="3～4年级0.8元/份"
            header-align="center"
          ></el-table-column>
          <el-table-column
            prop="time"
            label="5～6年级1.2元/份"
            header-align="center">
          </el-table-column>
          <el-table-column
            prop="allTime"
            label="总计"
            header-align="center"
            width="250"
          >
          </el-table-column>


        </el-table>
      </el-col>
      <!-- 分页显示 -->
      <!--<el-pagination-->
      <!--background-->
      <!--class="all_pagination"-->
      <!--@size-change="handleSizeChange"-->
      <!--@current-change="pageChange"-->
      <!--:page-sizes="[10, 20, 30, 40]"-->
      <!--:page-size="10"-->
      <!--layout="total, sizes, prev, pager, next, jumper"-->
      <!--:total="filters.count">-->
      <!--</el-pagination>-->
    </el-row>


    <!--弹框-->
    <div class='showModel' @click="allShowModel(2)" v-if="isPigai"></div>
    <div class='model' v-if="isPigai">
      <div class='model-text'>
        <div class="model-text-items">
          <div><img src="../../assets/img/del@2x.png" alt="" @click="allShowModel(2)" class="model-text-items-close"></div>
          <div>是否要驳回颜如玉老师的注册申请？</div>
        </div>
        <div class="model-btn">
          <div class="model-btn-items main-gay">是</div>
          <div class="model-btn-items model-grdeen">否</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
  import { mapGetters, mapActions } from "vuex";
  export default {
    components: { },
    name: "actvResolveLabel",
    props: {},
    data() {
      return {
        hiddenModel:false,
        isPigai:false,
        ItemList: [
          {
            text:'数据监控'
          },
          {
            text:'当天'
          },
          {
            text:'当月'
          },
        ],
        dataList:[
          {
            img:'../../assets/img/user.jpg',
            names:'阿三',
            number:'3',
            time:'14:22',
            allTime:'14:22',
            rate:'222',
            status:'22'
          },
          {
            img:'../../assets/img/user.jpg',
            names:'阿三',
            number:'3',
            time:'14:22',
            allTime:'14:22',
            rate:'222',
            status:'22'
          }
        ],
        filters: {
          actvNm: "",
          actvCrtUserId: "",
          actvType: "",
          actvSmallType: "",
          // 排序
          pageNo: 1,
          pageSize: 10,
          count: 0,
          orderField: "",
          orderAD: ""
        }
      };
    },
    watch: {},
    computed: {
      ...mapGetters(["getUser"])
    },
    methods: {
      ...mapActions(["setUser"]),
      selectTitle(k) {
        console.log(k);
        this.checkindex = k;
      },
      isShow(str){
        let _this = this;
        console.log(str)
        if (str == 1){
          _this.hiddenModel = true;
          _this.isPigai = false;
        } else if (str == 2){
          _this.isPigai = true;
          _this.hiddenModel = false;
        }

      },
      //关闭弹框
      allShowModel(str) {
        let _this = this;
        if (str == 1){
          _this.hiddenModel = false;
        } else if (str == 2){
          _this.isPigai = false;
        }
      },
      //  输入框按键方法
      keyCodeMethod(e) {
        if (e.keyCode === 13) return this.itemListReshow();
      },
      expandChange(row, expandRows) {
        for (let item of expandRows) {
          if (row === item) {
            this.expandRowKeys = [row.nodId];
          }
        }
      },
      // 分页
      pageChange(val) {
        this.filters.pageNo = val;
        this.itemListReshow();
      },
      changeDateSlot(dateSlot) {
        if (dateSlot) {
          this.filters.startDate = dateSlot[0];
          this.filters.endDate = dateSlot[1];
        } else {
          this.filters.startDate = null;
          this.filters.endDate = null;
        }
      },
      actvTypeChange(typeList) {
        switch (typeList.length) {
          case 1:
            this.filters.actvType = typeList[0];
            this.filters.actvSmallType = null;
            break;
          case 2:
            this.filters.actvType = null;
            this.filters.actvSmallType = typeList[1];
            break;
          default:
            this.filters.actvType = null;
            this.filters.actvSmallType = null;
            break;
        }
      },
      handleSizeChange(val) {
        this.filters.pageSize = val;
        this.itemListReshow();
      },
      // 排序
      sortChange(sort) {
        this.filters.orderField = sort.prop;
        this.filters.orderAD = sort.order != null ? sort.order : "";
        this.itemListReshow();
      },
      clearSearch() {
        this.filters.actvNm = null;
        this.filters.actvCrtUserId = null;
        this.filters.actvType = null;
        this.filters.actvSmallType = null;
        this.filtersActvType = [];
        this.createDateSlot = null;
      },
      // 获取创建人列表
      // async getUserNameList() {
      //   let {
      //     userNameList = []
      //   } = await this.$dao.actv.marketActDao.getUserNameList();
      //   this.userNameList = userNameList || [];
      //   let { list = [] } = await this.$dao.bsnsActvTypeAllList();
      //   this.actvTypeList = list || [];
      // }
    },
    mounted() {
      // this.getsetDictByType2();
      // this.getUserNameList();
      // this.itemListReshow();
    }
  };
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

  .main{
    background-color: #fff;
    margin-top: 16px;
    padding: 0 !important;
    border: 1px solid #E1E1E1;
    min-height: 980px;
  }
  .table-aside{
    color: #666666;
    font-size: 18px;
    text-align: center;
    line-height: 60px;
  }
  el-table{
    color: #999999;
    font-size: 18px;
  }
  .main-items{
    color: #393939;
    text-align: center;
    line-height: 80px;
  }
  .main-header-item{
    font-size: 16px;
    color: #7E7E7E;
  }
  .main-header-link{
    color: #52CC60;
    font-size: 18px;
    margin-left: 10px;
    text-decoration:underline
  }
  .el-select{
    width: 100px;
    margin: 0 5px;
  }
  .input-with-select .el-input-group__prepend {
    background-color: #fff;
  }
  .active{
    background-color: #52CC60;
    color: #fff;
  }
  .el-input__inner{
    height: 32px;
  }
  .cell{
    font-size: 18px !important;
  }
  .table-img{
    width:36px;
    height:36px;
    border-radius:6px;
  }
  .showModel{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #000000;
    opacity: 0.2;
    overflow: hidden;
    z-index: 1000;
    color: #fff;

  }
  .model{
    z-index: 1001;
    width:40%;
    height:auto;
    position: fixed;
    top: 30%;
    left: 30%;
    margin:auto;
    background: #fff;
    border-radius:30px;
    text-align: center;
  }

  .model-items-first{
    padding: 0 34px;
    display: flex;
    justify-content: space-between;
  }
  .model-items-first-img{
    width: 68px;
    height: 68px;
    border-radius: 8px;
    position: relative;
    bottom: 20px;
  }
  .model-items-first-left{
    display: inline-block;
    color: #393939;
    font-size: 24px;
    margin-left: 14px;
    text-align: left;
  }
  .model-items-first-left-down{
    color: #7E7E7E;
    font-size: 18px;
  }
  .model-text{
    background:rgba(255,255,255,1);
    border-radius:10px;
  }
  .model-items-other{
    height: 60px;
    line-height: 60px;
    color: #393939;
    font-size: 20px;
    text-align: left;
    padding: 0 34px;
  }
  .model-active{
    background-color: #F6F7FB;
  }
  .model-active-last{
    border-radius:0 0 30px 30px;
    background-color: #F6F7FB;
  }
  .model-text-head{
    padding: 40px 50px;
    display: flex;
    color: #393939;
    font-size: 24px;
    justify-content: space-between;
  }
  .model-manager{
    display: flex;
    justify-content: space-between;
    margin: 30px;
    color: #393939;
    font-size: 24px;
  }
  .model-btn{
    display: flex;
    justify-content: space-around;
    margin-bottom: 44px;
  }
  .model-btn-items{
    width:154px;
    height:50px;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
    border-radius:4px;
  }
  .main-gay{
    background:rgba(246,247,251,1);
    color: #7E7E7E;
  }
  .model-grdeen{
    background-color: #52CC60;
    color: #fff;
  }
  .model-text-items-close{
    position: absolute;
    top: 10px;
    right: 15px;
  }
  .model-text-items{
    position: relative;
    color: #000000;
    font-size: 24px;
    text-align: center;
    padding: 40px 0 50px 0;
  }
</style>
