1
schangxiang@126.com
2024-08-18 42be79f9e80900fb08bd386f06af3f98b7d3b39a
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
<template>
  <div id="middle1">
    <div class="digital-flop-item" v-for="item in digitalFlopData" :key="item.title">
      <div class="digital-flop">
        <dv-digital-flop :config="item.number" />
      </div>
      <div class="digital-flop-title">{{ item.title }}</div>
    </div>
  </div>
</template>
 
<script>
  export default {
    name: 'Middle1',
    data() {
      return {
        digitalFlopData: []
      }
    },
    methods: {
      createData() {
        this.digitalFlopData = [{
            title: '机构总数',
            number: {
              number: [150],
              content: '{nt}',
              textAlign: 'center',
              style: {
                fill: '#40faee',
                fontWeight: 'bold'
              }
            },
            unit: '个'
          },
          {
            title: '床位总数',
            number: {
              number: [40000],
              content: '{nt}',
              textAlign: 'center',
              style: {
                fill: '#40faee',
                fontWeight: 'bold'
              }
            },
            unit: '个'
          },
          {
            title: '老人总数',
            number: {
              number: [98760],
              content: '{nt}',
              textAlign: 'center',
              style: {
                fill: '#40faee',
                fontWeight: 'bold'
              }
            },
            unit: '个'
          },
          {
            title: '员工总数',
            number: {
              number: [1200],
              content: '{nt}',
              textAlign: 'center',
              style: {
                fill: '#40faee',
                fontWeight: 'bold'
              }
            },
            unit: '个'
          }
        ]
      }
    },
    mounted() {
      const {
        createData
      } = this
 
      createData()
    }
  }
</script>
 
<style lang="less">
  #middle1 {
    height: 100%;
    padding: 5px 20px 5px 20px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(6, 30, 93, 0.5);
 
    .digital-flop-item {
      width: 100%;
      //height: 60%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-left: 3px solid rgb(6, 30, 93);
      border-right: 3px solid rgb(6, 30, 93);
    }
 
    .digital-flop-title {
      font-size: 10px;
      margin-bottom: 10px;
      color: #40faee;
      margin-top: -20px;
      font-family: "微软雅黑";
    }
 
    .digital-flop {
      display: flex;
      font-family: "黑体";
    }
  }
</style>