liuxiaolong
2019-05-06 2ab7a76a38fbf8fa107bf6371f5410ba54e1d394
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<template>
 
   <b-card style="height:100%" class="overflow-hidden">
      <h4 class="fw900">
            学生今日考勤
      </h4>
      <div class="grid-content bg-purple">
      </div>
      <!-- <div class="overflow-auto row py-4 px-2 bg-white" style="height:15vh">
          <div class="col-md-12 col-lg-4 mb-4" v-for="(item,index) in list" :key="index">
            <b-card no-body>
                <div class="pl10 pr10 pt10 pr">
                  <span class="studentClass-title">
                      {{item&&item.label?item.label:''}}
                    </span>
                    <div  class="d-flex align-items-center pt-4">
                      <div class="media-body line-height-condenced ml-4 text-center">
                        <div class="text-light small">应到人数</div>
                        <h3 class="fw900">{{item.yindao}}</h3>
                      </div>
                      <div class="media-body line-height-condenced ml-4 text-center">
                        <div class="text-light small">实到人数</div>
                        <h3 class="fw900 text-primary">{{item.shidao}}</h3>
                      </div>
                      <div class="media-body line-height-condenced ml-4 text-center">
                        <div class="text-light small">未到人数</div>
                        <h3 class="fw900 text-danger">{{item.weidao}}</h3>
                      </div>
                    </div>
                  </div>
            </b-card>
          </div>
      </div> -->
      <div class="overflow-auto row px-2 pt-1 bg-white" style="height:15vh">
          <div class="col-md-12 col-lg-4 mb-4" v-for="(item,index) in list" :key="index">
            <div class="bg-lighter">
                <div class="pl20 pr20 pt20 pr">
                    <h5 class="text-primary fw900">
                      {{item&&item.label?item.label:''}}
                    </h5>
                    <div  class="d-flex align-items-center">
                      <div class="media-body line-height-condenced ml-4 text-center">
                        <div class="text-dark small mb-1">应到人数</div>
                        <h3 class="f40 text-primary">{{item.yindao}}</h3>
                      </div>
                      <div class="media-body line-height-condenced ml-4 text-center">
                        <div class="text-dark small mb-1">实到人数</div>
                        <h3 class="f40 text-success">{{item.shidao}}</h3>
                      </div>
                      <div class="media-body line-height-condenced ml-4 text-center">
                        <div class="text-dark small mb-1">未到人数</div>
                        <h3 class="f40 text-warning">{{item.weidao}}</h3>
                      </div>
                    </div>
                  </div>
            </div>
          </div>
      </div>
   </b-card>
 
</template>
 
<script>
import { Row, Col, Tooltip, Table, TableColumn } from 'element-ui'
 
export default {
  data() {
    return {
      list: [{
        label: '初一年级',
        yindao: 64,
        shidao: 35,
        weidao: 16
      },
      {
        label: '初二年级',
        yindao: 78,
        shidao: 69,
        weidao: 9
      },
      {
        label: '初三年级',
        yindao: 82,
        shidao: 79,
        weidao: 3
      },
      {
        label: '初四年级',
        yindao: 88,
        shidao: 49,
        weidao: 17
      }]
    }
  },
  methods: {
 
  },
  created() {
 
  },
  components: {
    elRow: Row,
    elCol: Col,
    elTooltip: Tooltip,
    elTable: Table,
    elTableColumn: TableColumn
  }
 
}
 
</script>
<style>
.studentClass-title{
  position: absolute;
  left: 0;
  top: -20px;
  font-size: 14px;
  /* height: 20px;
  line-height: 20px; */
  text-align: center;
  font-weight: 900;
  background: #5c8a9a;
  padding: 2px 12px;
  color: #fff;
}
.fw900{
  font-weight: 900;
}
</style>