<template>
  <Card title="安全教育">
    <div class="containerBox">
      <div class="centerLeft">
        <div class="text">入场<span style="width:100px;height:100px;border-bottom:1px solid #F56C35;padding:0 0 5px 0">三级</span>交底</div>

        <div class="textDivBox">
          <div class="textDiv">
            <span>67</span>
            <p>项目总人数</p>
          </div>
          <div class="textDiv">
            <span>51</span>
            <p>项目培训人数</p>
          </div>
          <div class="textDiv">
            <span>46.79%</span>
            <p>项目培训率</p>
          </div>
        </div>

        <div class="tableDiv">
          <div class="tableSon">
            <div class="row">培训主题</div>
            <div class="row">培训人</div>
            <div class="row">培训课时(h)</div>
            <div class="row">培训时间</div>
          </div>
          <div class="tbody">
            <vue-scroll>
              <div class="row" v-for="i in 20" :key="i">
                <div class="td">每日安全交底</div>
                <div class="td">缪维彪</div>
                <div class="td">45</div>
                <div class="td">2022-09-28</div>
              </div>
            </vue-scroll>
          </div>
        </div>
      </div>
      <div class="centerC">
        <div class="text">每日<span style="width:100px;height:100px;border-bottom:1px solid #F56C35;padding:0 0 5px 0">班前</span>喊话</div>

        <div class="textDivBox">
          <div class="textDiv">
            <span>3次</span>
            <p>今日班前喊话次数</p>
          </div>
          <div class="textDiv">
            <span>12</span>
            <p>班前喊话次数</p>
          </div>
        </div>

        <div class="tableDiv">
          <div class="tableSon">
            <div class="row">时间</div>
            <div class="row">负责人</div>
            <div class="row">班组</div>
            <div class="row">照片</div>
          </div>
          <div class="tbody">
            <vue-scroll>
              <div class="row" v-for="(item,index) in imgList" :key="index">
                <div class="td">{{item.time}}</div>
                <div class="td">{{item.names}}</div>
                <div class="td">{{item.team}}</div>
                <div class="td"><img :src="item.src" /></div>
              </div>
            </vue-scroll>
          </div>
        </div>
      </div>
      <div class="centerRight">
        <div class="text">
     <!-- <div class="text">每日<span style="width:100px;height:100px;border-bottom:1px solid #F56C35;padding:0 0 5px 0">班前</span>喊话</div> -->

          安<span style="width:100px;height:100px;border-bottom:1px solid #F56C35;padding:0 0 5px 0">全交</span>底
        </div>

        <div class="textDivBox">
          <div class="textDiv">
            <span>67次</span>
            <p>培训次数</p>
          </div>
          <div class="textDiv">
            <span>23次</span>
            <p>特种作业</p>
          </div>
          <div class="textDiv">
            <span>11次</span>
            <p>雨季交底</p>
          </div>
          <div class="textDiv">
            <span>26次</span>
            <p>用电交底</p>
          </div>
        </div>

        <div class="tableDiv">
          <div class="tableSon">
            <div class="row">交底主题</div>
            <div class="row">类型</div>
            <div class="row">负责人</div>
            <div class="row">交底时间</div>
          </div>
          <div class="tbody">
            <vue-scroll>
              <div class="row" v-for="i in 20" :key="i">
                <div class="td">每日安全交底</div>
                <div class="td">钢筋交底</div>
                <div class="td">缪维彪</div>
                <div class="td">2022-09-28</div>
              </div>
            </vue-scroll>
          </div>
        </div>
      </div>
    </div>
  </Card>
</template>

<script>
import Card from '../components/Card.vue'
export default {
  components: {
    Card
  },
  data() {
    return {
     imgList: [
     { src:require("../assets/images/common/bg_fmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_wmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_wmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_kmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_fmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_pmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_rmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_dmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_bmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_amk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_nmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},
     { src:require("../assets/images/common/bg_nmk.png"),time:"2022-09-28", names:"缪维彪",team:"钢筋班组"},

     ]
    }
  }
}
</script>

<style lang="less" scoped>
.containerBox {
  width: 100%;
  height: 100%;
  margin-top: 2%;
  display: flex;
  justify-content: space-between;
  .centerLeft,
  .centerC,
  .centerRight {
    width: 340px;
    height: 95%;
    .text {
      text-align: center;
      margin-bottom: 20px;
      font-size: 14px;
      .el-icon-minus {
      }
    }
    .textDivBox {
      width: 340px;
      height: 8%;
      display: flex;
      justify-content: space-between;
      .textDiv {
        background: rgba(111, 202, 226, 0.65);
        border-radius: 2px 2px 2px 2px;
        opacity: 1;
        font-size: 12px;
        width: 100px;
        height: 41px;
        //  background-color: #6fcae2;
        div {
          text-align: center;
        }
        span {
          display: block;
          text-align: center;
          margin-top: 5px;
        }
        p {
          text-align: center;
        }
      }
    }
    .tableDiv {
      margin-top: 12px;
      width: 100%;
      height: calc(85%);
      .tableSon {
        width: 100%;
        background: rgba(111, 202, 226, 0.3);
        border-radius: 0px 0px 0px 0px;
        opacity: 1;
        height: 27px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        color: #fff;
        font-size: 12px;
        // opacity: 0.2;
        .row {
          color: #fff !important;
        }
      }
      .tbody {
        width: 100%;
        height: calc(100% - 60px);
        font-size: 12px;
        margin-right: 5px;
      }
      .tableSon .row,
      .tbody .row {
        display: flex;
        text-align: center;
        justify-content: left;
        //height: 40px;
        line-height: 38px;
        .td {
          color: #fff;
          &:nth-child(1) {
            flex: 1;
          }
          &:nth-child(2) {
            flex: 1;
          }
          &:nth-child(3) {
            flex: 1;
          }
          &:nth-child(4) {
            flex: 1;
            margin-right: 15px;
          }
        }
      }
    }
  }
  .centerC {
    .textDiv {
      flex: 1;
      &:nth-child(2) {
        margin-left: 20px;
      }
    }
    img {
      width: 48px;
      height: 26px;
      border-radius: 0px 0px 0px 0px;
      opacity: 1;
      margin-top: 5px;
    }
  }
  .centerRight {
    .textDivBox {
      width: 360px;
      height: 8%;
      display: flex;
      justify-content: space-between;
      .textDiv {
        margin-right: 20px;
        font-size: 12px;
        width: 100px;
        height: 41px;
      }
    }
  }
}
</style>
