Blame view

src/views/dataView/rightcard.vue 2.37 KB
xiaomiao committed
1
<template>
任超 committed
2
  <div class="rightcard">
任超 committed
3
    <div class="card1 cardCon d-center">
xiaomiao committed
4
      <div class="cardhead">房屋情况统计表</div>
任超 committed
5
      <div class="cardcontent" style="margin-top: 70px">
任超 committed
6
        <dv-scroll-board :config="config" class="board" />
xiaomiao committed
7 8
      </div>
    </div>
任超 committed
9
    <div class="card2 cardCon mt-10">
xiaomiao committed
10
      <div class="cardhead">登记业务量</div>
任超 committed
11
      <Rose />
xiaomiao committed
12
    </div>
任超 committed
13
    <div class="card3 cardCon mt-10">
xiaomiao committed
14
      <div class="cardhead">登记类型总量</div>
任超 committed
15
      <columnarsmat />
xiaomiao committed
16 17
    </div>
  </div>
xiaomiao committed
18 19 20
</template>

<script>
xiaomiao committed
21 22
import columnarsmat from "@/components/echart/columnarsmat";
import Rose from "@/components/echart/Rose";
xiaomiao committed
23
export default {
任超 committed
24
  data () {
xiaomiao committed
25
    return {
任超 committed
26 27 28 29
      config: {
        headerBGC: '#016AC5',
        oddRowBGC: '#154295',
        evenRowBGC: '#154295',
任超 committed
30
        header: ['序号', '用途', '性质', '面积'],
任超 committed
31 32 33 34 35 36 37 38 39 40
        data: [
          ['1', '咸阳市', '6', '998'],
          ['1', '咸阳市', '6', '998'],
          ['1', '咸阳市', '6', '998'],
          ['1', '咸阳市', '6', '998'],
          ['1', '咸阳市', '6', '998'],
          ['1', '咸阳市', '6', '998'],
        ]
      }
    }
xiaomiao committed
41
  },
任超 committed
42 43
  components: { columnarsmat, Rose },
  mounted () {
xiaomiao committed
44
    scroll(tableref.value.$refs.bodyWrapper);//设置滚动
任超 committed
45 46
  }
}
xiaomiao committed
47 48
</script>
<style lang="scss" scoped>
任超 committed
49 50 51 52
/deep/.row-item:not(:last-child) {
  margin-bottom: 5px;
}

任超 committed
53
.rightcard {
任超 committed
54
  width: 32%;
任超 committed
55
  display: flex;
任超 committed
56
  height: calc(100% -94px);
任超 committed
57 58
  flex-direction: column;

xiaomiao committed
59
  .cardhead {
任超 committed
60 61 62 63 64 65 66
    font-size: 20px;
    font-weight: bold;
    color: #02D9FD;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
任超 committed
67
    top: 12px;
任超 committed
68
    text-align: center;
xiaomiao committed
69
  }
任超 committed
70

xiaomiao committed
71
  .cardcontent {
任超 committed
72 73
    width: 100%;
    height: 250px;
任超 committed
74
  }
xiaomiao committed
75

任超 committed
76
  .cardCon {
任超 committed
77
    padding: 20px 5px;
任超 committed
78 79 80 81
    position: relative;
    text-align: center;
    width: 100%;
  }
任超 committed
82

任超 committed
83
  .card1 {
任超 committed
84
    height: 200px;
任超 committed
85 86
    background: url("~@/image/homeLeftBg.png") no-repeat;
    background-size: 100% 100%;
任超 committed
87

任超 committed
88 89 90
    .board {
      width: 90%;
      margin: 0 auto;
任超 committed
91
      height: 135px;
任超 committed
92
      margin-top: 40px;
任超 committed
93
    }
任超 committed
94
  }
xiaomiao committed
95

任超 committed
96 97 98
  .card2 {
    background: url("~@/image/djywl.png") no-repeat;
    background-size: 100% 100%;
任超 committed
99
    padding: 60px 0 0 0;
xiaomiao committed
100
  }
任超 committed
101

任超 committed
102
  .card3 {
任超 committed
103 104
    flex: 1;
    height: 100%;
任超 committed
105 106
    background: url("~@/image/lxzl.png") no-repeat;
    background-size: 100% 100%;
任超 committed
107
    padding-bottom: 0;
任超 committed
108
    .cardhead {
任超 committed
109
      top: 8px;
任超 committed
110
    }
xiaomiao committed
111
  }
xiaomiao committed
112

任超 committed
113 114 115
  .cardhead {
    position: absolute;
  }
xiaomiao committed
116
}
xiaomiao committed
117
</style>