<template>
  <div class="display-content">
    <el-row :gutter="10" class="panel-group" style="margin-right: 0;margin-left: 0">
      <!--头部-->
      <header>
        <div id="time" class="time">时间</div>
        <div class="title">
          <span class="span1">《</span> 智慧农业物联网平台 <span class="span2">》</span>
        </div>
        <div class="btn">
          <button class="login">返回</button>
        </div>
      </header>
      <div class="content">
        <ul>
          <li>
            <div class="r1">
              <div class="c1">
                <h3>实时数据</h3>
                <ol class="shuju">
                  <li>
                    <span>温度:</span> <span>4℃</span>
                  </li>
                  <li><span>湿度：</span><span>48%</span></li>
                  <li><span>负氧离子:</span><span>17343个/cm³</span></li>
                  <li><span>PM2.5</span><span>39ug/m³</span></li>
                  <li><span>含氧量：</span><span>26%</span></li>
                </ol>
              </div>
            </div>
            <div class="r2">
              <div :style="{width: '100%', height: '100%'}">
                <pie-chart/>
              </div>
            </div>
            <div class="r3">
              <div :style="{width: '100%', height: '100%'}">
                <crew-chart/>
              </div>
            </div>
          </li>
          <li>
            <div class="top" style="position: relative;">
              <div id="map" style="width: 100%;height: 100%;position: absolute;z-index:1;">
                <baidu-map
                  :center="center"
                  :zoom="zoom"
                  :scroll-wheel-zoom="true"
                  style="height: 100%"
                  @ready="handler">
                  <bm-geolocation
                    :show-address-bar="true"
                    :auto-location="true"
                    anchor="BMAP_ANCHOR_BOTTOM_RIGHT"
                    zoom="10"/>
                </baidu-map>
              </div>
              <div style="width: 350px;height: 45%;position: absolute;left: 15px;top: 15px;z-index: 999;">
                <div class="el-icon-arrow-left" style="position: absolute;left: 0;top: 40%;font-size: 50px;color: #fff" @click="clickleft"/>
                <div v-for="(_item) in videos" :key="_item" class="center_bottom">
                  <!--          <div class="center_bottom"/>-->
                  <video id="myPlayer" controls playsinline webkit-playsinline autoplay style="height: 100%;width: 100%">
                    <!--<source :src="http_url" type="application/x-mpegURL">-->
                    <source :src="_item" type="rtmp/flv">
                  </video>
                </div>
                <div class="el-icon-arrow-right" style="position: absolute;right: 0;top: 40%;font-size: 50px;color: #fff" @click="clickright"/>
              </div>
              <div style="width: 350px;height: 45%;position: absolute;right: 15px;top: 15px;z-index: 999;">
                <div :style="{width: '100%', height: '100%',backgroundColor:'rgba(0,0,0,0.2)'}">
                  <line-chart/>
                </div>
              </div>
            </div>
            <div class="bottom">
              <table border="0" cellspacing="" cellpadding="" width="100%">
                <tr>
                  <th>生产批号</th>
                  <th>种植物</th>
                  <th>种植大鹏</th>
                  <th>种植面积(亩)</th>
                  <th>种植天数</th>
                  <th>当前生命周期</th>
                </tr>
                <tr>
                  <td>2019-10-5</td>
                  <td>有机小麦</td>
                  <td>5号大鹏</td>
                  <td>20</td>
                  <td>180</td>
                  <td>生长中</td>
                </tr>
                <tr>
                  <td>2018-4-5</td>
                  <td>葡萄</td>
                  <td>3号大鹏</td>
                  <td>25</td>
                  <td>240</td>
                  <td>成熟期</td>
                </tr>
                <tr>
                  <td>2019-10-5</td>
                  <td>玉米</td>
                  <td/>
                  <td/>
                  <td/>
                  <td>成熟期</td>
                </tr>
                <tr>
                  <td>2019-10-5</td>
                  <td>油菜</td>
                  <td/>
                  <td/>
                  <td/>
                  <td>苗期</td>
                </tr>
                <tr>
                  <td>2019-10-5</td>
                  <td>花生</td>
                  <td/>
                  <td/>
                  <td/>
                  <td>成熟期</td>
                </tr>
              </table>
            </div>
          </li>
          <li>
            <div class="r1" style="height: 40%;">
              <div class="c1">
                <div style="font-size: 16px; font-weight: 600;">
                  基地图

                </div>
                <img src="../../assets/display/jidi.jpg">

              </div>
            </div>
            <div class="r2" style="height: 30%;padding-top: 10%">
              <div style="font-size: 16px; font-weight: 600;">
                基地介绍
              </div>
              <div class="notice">
                <p><span>| 基地名称 : </span>威海晶合农业园</p>
                <p><span>| 基地面积 : </span>100公顷</p>
                <p><span>| 基地温室 : </span>5室</p>
                <p><span>| 基地介绍 : </span>
                  威海晶合农业园是采用生态模式进行观光园内农业的布局和生产，将农业活动、自然风光、科技示范、休闲娱乐、环境保护等荣威一体，实现生态利益、经济效益与社会效益统一。
                </p>
              </div>
            </div>
            <div class="r3">
              <div :style="{width: '100%', height: '100%'}">
                <circle-chart/>
              </div>
            </div>
          </li>
        </ul>
      </div>
      <!--<el-col :xs="24" :sm="24" :lg="24" class="card-panel-col" style="padding: 0 15px">-->
      <!--<div class="card-panel">-->
      <!--<div class="map_top">-->
      <!--<img class="one_box1" src="../../assets/display/ksh42.png" >-->
      <!--<img class="one_box2" src="../../assets/display/ksh42.png" >-->
      <!--<img class="one_box3" src="../../assets/display/ksh42.png" >-->
      <!--<img class="one_box4" src="../../assets/display/ksh42.png" >-->
      <!--<div class="map" style="color: red">-->
      <!--<baidu-map :center="center" :zoom="zoom" :scroll-wheel-zoom="true" style="height: 100%" @ready="handler">-->
      <!--<bm-geolocation :show-address-bar="true" :auto-location="true" anchor="BMAP_ANCHOR_BOTTOM_RIGHT" zoom="10"/>-->
      <!--</baidu-map>-->
      <!--</div>-->
      <!--</div>-->
      <!--</div>-->
      <!--</el-col>-->
      <!--<el-col :xs="12" :sm="12" :lg="7" class="card-panel-col" style="padding-left: 15px">-->
      <!--<div class="card-panel">-->
      <!--<h4>设备实时数据显示</h4>-->
      <!--<el-carousel :interval="2500" class="list_item">-->
      <!--<el-carousel-item v-for="(item,eq) in listLength" :key="eq">-->
      <!--<el-row :gutter="10" class="box">-->
      <!--<el-col v-for="(_item,index) in listP" :v-if="indexold>=eq*9" :key="index" :span="8">-->
      <!--<ul class="iy">-->
      <!--<li>{{ _item.unit }}</li>-->
      <!--<li>{{ _item.value }}</li>-->
      <!--<li>{{ _item.name }}</li>-->
      <!--</ul>-->
      <!--</el-col>-->
      <!--</el-row>-->
      <!--</el-carousel-item>-->
      <!--</el-carousel>-->
      <!--</div>-->
      <!--</el-col>-->
      <!--<el-col :xs="12" :sm="12" :lg="10" class="card-panel-col" style="padding: 0 15px">-->
      <!--<div class="card-panel" style="position: relative">-->
      <!--<div class="el-icon-arrow-left" style="position: absolute;left: 0;top: 50%;font-size: 50px;color: #fff" @click="clickleft"/>-->
      <!--<div v-for="(_item) in videos" :key="_item" class="center_bottom">-->
      <!--&lt;!&ndash;          <div class="center_bottom"/>&ndash;&gt;-->
      <!--<video id="myPlayer" controls playsinline webkit-playsinline autoplay style="height: 100%;width: 100%">-->
      <!--&lt;!&ndash;<source :src="http_url" type="application/x-mpegURL">&ndash;&gt;-->
      <!--<source :src="_item" type="rtmp/flv">-->
      <!--</video>-->
      <!--</div>-->
      <!--<div class="el-icon-arrow-right" style="position: absolute;right: 0;top: 50%;font-size: 50px;color: #fff" @click="clickright"/>-->
      <!--</div>-->
      <!--</el-col>-->
      <!--<el-col :xs="12" :sm="12" :lg="7" class="card-panel-col" style="padding-right: 15px">-->
      <!--<div class="card-panel">-->
      <!--<h4>24小时数据监测</h4>-->
      <!--<div class="list_item">-->
      <!--<div id="myChart" ref="chart" :style="{width: '100%', height: '100%'}"/>-->
      <!--</div>-->
      <!--</div>-->
      <!--</el-col>-->

    </el-row>
  </div>

</template>

<script>
// import echarts from 'echarts'
import Vue from 'vue'
import BaiduMap from 'vue-baidu-map'
import Screenfull from '../../components/Screenfull/index'
import { loadCDataByDeviceid } from '@/api/sData'
import { queryAllByUseridNoPage } from '@/api/sDevice'
import { findProjectByUserid } from '@/api/sProject'
import EZUIPlayer from 'ezuikit/ezuikit'
import PieChart from '../chartspanel/PieChart'
import CrewChart from '../chartspanel/CrewChart'
import CircleChart from '../chartspanel/CircleChart'
import LineChart from '../chartspanel/LineChart'
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'GIpUncIwoaK7BjBZdrpOs0ytywLippwu'
})
export default {
  components: { Screenfull, PieChart, CrewChart, CircleChart, LineChart },
  data() {
    return {
      player: '',
      rtmp_url: '',
      videos: [],
      http_url: '',
      message: '加载中...',
      deviceid: '',
      data24: '',
      lengendData: [],
      dtime: '',
      loadFlag: '',
      seriesData: [],
      devices: '',
      projects: '',
      showflag: 0,
      listP: [],
      listLength: 0,
      BMap: '',
      map: '',
      center: { lng: 0, lat: 0 },
      zoom: 10,
      chart: null
    }
  },
  computed: {},
  mounted() {
    // this.drawLine()
    this.loadMapDevice()
    // this.loadVideo()
  },
  created() {
    this.loadData()
    this.findProjectByUserid()
    // this.GetLiveUrl()
  },
  methods: {
    // 设备总数

    clickleft() {
      // console.log('pre')
      var size = this.projects.length
      this.showflag = this.showflag - 1
      if (this.showflag >= 0) {
        this.loadVideo(this.showflag)
      } else {
        this.showflag = size - 1
        this.loadVideo(this.showflag)
      }
    },
    clickright() {
      // console.log('next2')
      var size = this.projects.length
      this.showflag = this.showflag + 1
      if (this.showflag < size) {
        this.loadVideo(this.showflag)
      } else {
        this.showflag = 0
        this.loadVideo(this.showflag)
      }
    },
    GetLiveUrl() {
      // 异步获取直播地址，并赋值给rtmp_url,http_url
      this.videos.push('rtmp://rtmp01open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b.hd')
      // this.http_url = 'http://hls01open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b.hd.m3u8'
      setTimeout(function() {
        this.player = new EZUIPlayer('myPlayer')
      }, 2000)
    },
    findProjectByUserid() {
      findProjectByUserid().then(res => {
        this.projects = res
        this.loadVideo(this.showflag)
      })
    },
    loadMapDevice() {
      queryAllByUseridNoPage().then(res => {
        this.devices = res
        // console.log(this.devices)
        if (this.map !== '') {
          this.map.clearOverlays()
        } else {
          console.log('等了1秒')
          setTimeout(this.loadMapDevice(), 1000)
          return
        }
        // 循环加入设备
        for (var i = 0; i < this.devices.length; i++) {
          var marker = new this.BMap.Marker(new this.BMap.Point(this.devices[i].jd, this.devices[i].wd)) // 创建点
          var label = new this.BMap.Label(this.devices[i].name, {
            offset: new this.BMap.Size(20, -10)
          })
          label.setStyle({
            // color: '#892B31',
            color: 'grey',
            backgroundColor: '0.05',
            border: '0'
          })
          marker.setTitle(this.devices[i].deviceid)
          marker.setLabel(label)
          var _this = this
          marker.addEventListener('click', function(val) {
            _this.deviceid = this.z.title
            _this.loadData()
          })
          this.map.addOverlay(marker)
          this.center = { lng: this.devices[i].jd, lat: this.devices[i].wd }
        }
        // console.log(res)
      })
    },
    loadVideo(showflag) {
      // var sproject = res
      // this.rtmp_url = sproject.videoadr
      // console.log(this.projects, showflag, this.projects[showflag])
      if (this.videos[0] !== this.projects[showflag].videoadr) {
        this.videos = []
        this.showflag = showflag
        this.videos.push(this.projects[showflag].videoadr)
        // console.log(this.rtmp_url, sproject, '121212121212')
        setTimeout(function() {
          this.player = new EZUIPlayer('myPlayer')
        }, 2000)
      }
    },
    loadData() {
      loadCDataByDeviceid(this.deviceid).then(res => {
        var response = res.dataMap
        var sDevice = res.sDeviceDTO
        this.getListP(res)
        var subject = sDevice.subject.split(',')
        var code = sDevice.code.split(',')
        var lengend = ''
        this.data24 = response
        this.dtime = ''
        this.lengendData = []
        this.seriesData = []
        for (var key in response) {
          this.dtime = response[key].map(function(cdata) {
            return cdata.dtime
          })
          var serData = response[key].map(function(cdata) {
            return cdata.data
          })
          for (var j = 0; j < code.length; j++) {
            if (key === code[j]) {
              lengend = subject[j]
            }
          }
          var temp = {
            name: lengend,
            type: 'line',
            smooth: true,
            lineStyle: {
              normal: {
                width: 2
              }
            },
            areaStyle: {
              normal: {
                shadowColor: 'rgba(0, 0, 0, 0.1)',
                shadowBlur: 10
              }
            },
            data: serData
          }
          this.seriesData.push(temp)
          this.lengendData.push(lengend)
        }
        this.drawLine(this.lengendData, this.dtime, this.seriesData)
      })
    },
    getListP(res) {
      this.listP = []
      var response = res.dataMap
      var sDevice = res.sDeviceDTO
      var subject = sDevice.subject.split(',')
      var code = sDevice.code.split(',')
      for (var key in response) {
        this.dtime = response[key].map(function(cdata) {
          return cdata.dtime
        })
        var serData = response[key].map(function(cdata) {
          return cdata.data
        })
        var pdata = serData[serData.length - 1]
        var sub = null
        for (var j = 0; j < code.length; j++) {
          if (key === code[j]) {
            sub = subject[j]
          }
        }
        var p = {
          unit: ' ',
          value: pdata,
          name: sub
        }
        this.listP.push(p)
      }
      if (this.listP.length <= 9) {
        this.listLength = 1
      } else {
        this.listLength = Math.ceil(this.listP.length / 9)
      }
      // this.InitTabScroll()
    },
    handler({ BMap, map }) {
      this.map = map
      this.BMap = BMap
      const _this = this
      const mapStyle = { style: 'midnight' }
      map.setMapStyle(mapStyle)
      // eslint-disable-next-line no-undef
      map.setMapType(BMAP_HYBRID_MAP) // 卫星地图
      /* if (this.isAdd) {*/
      const geolocation = new BMap.Geolocation()
      geolocation.getCurrentPosition(function getinfo(position) {
        if (_this.center === '') {
          _this.center = { lng: position.longitude, lat: position.latitude }
        }
      }, function(e) {
      }, { provider: 'baidu' })
      /* } else {
          map.clearOverlays()
          var marker = new BMap.Marker(new BMap.Point(this.form.jd, this.form.wd)) // 创建点
          map.addOverlay(marker)
          // _this.autoLocationPoint = { lng: this.form.jd, lat: this.form.wd }
        _this.center = { lng: this.form.jd, lat: this.form.wd }
      }*/
    },
    // 24小时数据监测
    drawLine(lengendData, dtime, seriesData) {
      if (this.chart !== null) {
        this.chart.clear()
      }
      this.chart = this.$echarts.init(this.$refs.chart)
      this.chart.setOption({
        tooltip: { // 鼠标指上时的标线
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              color: '#fff'
            }
          }
        },
        legend: {
          icon: 'rect',
          itemWidth: 14,
          itemHeight: 5,
          itemGap: 13,
          // data: ['PH', '溶解氧', '温度', '信号强度'],
          data: lengendData,
          right: '10px',
          top: '0px',
          textStyle: {
            fontSize: 12,
            color: '#fff'
          }
        },
        grid: {
          x: 45,
          y: 25,
          x2: 8,
          y2: 25
        },
        xAxis: [{
          type: 'category',
          boundaryGap: false,
          axisLine: {
            lineStyle: {
              color: '#57617B'
            }
          },
          axisLabel: {
            textStyle: {
              color: '#fff'
            }
          },
          data: dtime
        }],
        yAxis: [{
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            lineStyle: {
              color: '#57617B'
            }
          },
          axisLabel: {
            margin: 10,
            textStyle: {
              fontSize: 14,
              color: '#fff'
            }
          },
          splitLine: {
            lineStyle: {
              color: '#57617B'
            }
          }
        }],
        series: seriesData
      })
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .panel-group {
    .card-panel-col {
      margin-bottom: 15px;
    }
    .card-panel {
      height: calc((100vh - 110px) / 2);
      font-size: 12px;
      position: relative;
      overflow: hidden;
      color: #666;
      box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
      border-color: rgba(0, 0, 0, .05);
      .icon-people {
        color: #40c9c6;
      }
      .icon-message {
        color: #36a3f7;
      }
      .icon-money {
        color: #f4516c;
      }
      .icon-shopping {
        color: #34bfa3
      }
      .card-panel-icon-wrapper {
        float: left;
        margin: 14px 0 0 14px;
        padding: 16px;
        transition: all 0.38s ease-out;
        border-radius: 6px;
      }
      .card-panel-icon {
        float: left;
        font-size: 48px;
      }
      .card-panel-description {
        float: right;
        font-weight: bold;
        margin: 26px;
        margin-left: 0px;
        .card-panel-text {
          line-height: 18px;
          color: rgba(0, 0, 0, 0.45);
          font-size: 16px;
          margin-bottom: 12px;
        }
        .card-panel-num {
          font-size: 20px;
        }
      }
    }
  }

  .small {
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
  }

  .temp {
    width: 100%;
    height: 100%;
    padding-left: 0;
    background: url("../../assets/display/dianli2.png") no-repeat center;
    background-size: 100% 100%;
  }

  .list_item {
    padding: 20px 40px;
  }

  .el-col {
    height: 100%;
  }

  /*title左边横线动画*/

  @keyframes my1 {
    0% {
      left: 0px;
    }
    50% {
      left: 120px;
    }
    100% {
      left: 0;
    }
  }

  /*title右边横线动画*/

  @keyframes my2 {
    0% {
      left: 120px;
    }
    50% {
      left: 0;
    }
    100% {
      left: 120px;
    }
  }

  /*头部*/

  header {
    height: 60px;
    color: rgb(4, 253, 249);
    line-height: 60px;
    width: 100%;
    position: relative;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }

  .title {
    animation: myfirst 1s infinite;
    background: linear-gradient(to bottom, #00fcfd, #0cbddf);
    color: transparent;
    -webkit-background-clip: text;
    font-size: 30px;
  }

  .title span {
    width: 120px;
    height: 60px;
    display: inline-block;
    position: relative;
    margin: 0 20px;
  }

  .title .span1:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to left, transparent, #b8c70c, #00fcfd, transparent);
    position: absolute;
    top: 30px;
  }

  .title .span1:before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    background: #00fcfd;
    position: absolute;
    top: 28px;
    border-radius: 50%;
    right: 32px;
    z-index: 11111;
    animation: my1 5s infinite;
  }

  .title .span2:before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    background: #00fcfd;
    position: absolute;
    top: 28px;
    border-radius: 50%;
    right: 32px;
    z-index: 11111;
    animation: my2 5s infinite;
  }

  .title .span2:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to left, transparent, #00fcfd, #b8c70c, transparent);
    position: absolute;
    top: 30px;
  }

  header .btn {
    width: 25%;
    position: absolute;
    margin: auto;
    right: 0px;
    top: 0px;
    text-align: right;
    padding-right: 40px;
    background: linear-gradient(108deg, transparent 1.4em, rgba(255, 255, 255, 0.1) 0), linear-gradient(to right top, transparent 50%, rgba(255, 255, 255, 0) 0) no-repeat 100% 0 / 2em 2em;
  }

  header button {
    padding: 2px 15px;
    border: 1px solid rgba(4, 253, 249, 0.8);
    border-radius: 3px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    height: 22px;
  }

  header .time {
    position: absolute;
    left: 0px;
    top: 0;
    padding-left: 40px;
    background: rgba(255, 255, 255, 0.1);
    width: 25%;
    text-align: left;
    background: linear-gradient(to left bottom, transparent 50%, rgba(255, 255, 255, 0) 0) no-repeat 100% 0 / 2em 2em, linear-gradient(-108deg, transparent 1.4em, rgba(255, 255, 255, 0.1) 0);
  }

  header button:hover {
    background: rgba(4, 253, 249, 0.3);
  }

  /*内容*/

  .content {
    position: absolute;
    width: 100%;
    text-align: center;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.1);
    padding: 0 10px;
    color: rgb(4, 253, 249);
  }

  ul {
    height: 100%;
    margin: 0;
  }

  li {
    list-style: none;
  }

  ul > li {
    float: left;
    padding: 10px;
  }

  ul li:nth-child(1) {
    width: 20%;
    height: 100%;
  }

  ul li:nth-child(2) {
    width: 60%;
    height: 100%;
  }

  ul li:nth-child(3) {
    width: 20%;
    height: 100%;
  }

  .top {
    width: 100%;
    height: 70%;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(4, 253, 249, 0.5) inset;
  }

  .bottom,
  .r3 {
    width: 100%;
    height: 30%;
    box-shadow: 0 0 15px rgba(4, 253, 249, 0.5) inset;
  }

  .bottom {
    padding: 10px 40px;
  }

  .r1 {
    width: 100%;
    height: 35%;
    padding-bottom: 10px;
  }

  .r2 {
    width: 100%;
    height: 35%;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(4, 253, 249, 0.5) inset;
    padding-top: 15px;
  }

  .c1 {
    width: 100%;
    height: 100%;
    padding-top: 8%;
    box-shadow: 0 0 15px rgba(4, 253, 249, 0.5) inset;
    position: relative;
  }

  .r3 {
    padding-top: 10px;
  }

  .shuju {
    width: 100%;
    height: 100%;
    padding: 0 40px;
  }

  .shuju > li {
    width: 100% !important;
    height: 12% !important;
    line-height: inherit;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 15px rgba(4, 253, 249, 0.5) inset;
    padding-left: 25%;
  }

  .shuju > li span:nth-child(1) {
    display: inline-block;
    width: 45%;
    text-align: left;
  }

  .c1 > img {
    width: 90%;
    height: 85%;
    border-radius: 10px;
  }

  .notice {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
  }

  .notice p {
    margin-top: 8px;
    color: #fff;
    padding-left: 3px;
    font-size: 14px;
  }

  .notice p span {
    color: #00fcfd;
  }

  table {
    height: 100%;
  }

  td, th {
    height: 12%;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  }

  th {
    padding: 0;
  }

  h3 {
    margin: 0;
  }
  .display-content{
      width: 100%;
      height: 100%;
      background: url(../../assets/timg.jpg) repeat;
      background-size: cover;
      position: relative;
  }
</style>
