Xxxu
2020-07-03 1ac6ef52a03f25f9def9f6a2594d2a8196aa77f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
  <div>
    <div class="splash-title">
        <div style="margin-left:30px;padding-top:8px">
            <img src="http://47.106.172.9:443/download/icon/splash_icon.png" style="margin-top:0px" height="13px" width="15px">
            <span style="color:white">智能喷洒监测</span>
        </div>
    </div>
    <div id="splash-body" class="splash-body">
        <el-row>
          <el-col :span="24">
            <splash-chart></splash-chart>
          </el-col>
        </el-row>
    </div>
    <div class="splash-bottom"></div>
  </div>
</template>
 
<script>
import SplashChart from './splash/splash-chart'
export default {
  data () {
    return {
 
    }
  },
  components: {
    SplashChart
  },
  activated () {
    this.init()
  },
 
  methods: {
    init () {
      var h = window.innerHeight || document.body.clientHeight
      var aplashBodyH = document.getElementById('splash-body')
      var num = (h - 425) / 3
      aplashBodyH.style.height = num - 2 + 'px'
    },
    getdomheight (dom) {
      return dom.offsetHeight
    }
  }
}
</script>
<style>
.splash-title {
    height: 30px;
    width: 100%;
    background-image: url(~@/assets/img/content_charts_title.png);
    background-size: 100% 30px;
}
.splash-body {
    height: 120px;
    width: 100%;
    background-image: url(~@/assets/img/content_charts_body.png);
    background-size: 100% 100%;
}
.splash-bottom {
    height: 30px;
    width: 100%;
    background-image: url(~@/assets/img/content_charts_bottom.png);
    background-size: 100% 30px;
}
</style>