baotian
2024-06-04 b959135a1139fb66646523d92e5bd20c5910f283
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
<template>
  <div class="left2">
    <div class="lc1-header">
      服务数据
      <dv-decoration-3 style="width:200px;height:20px;" />
    </div>
    <dv-capsule-chart class="lc1-chart" :config="config" />
  </div>
</template>
 
<script>
  export default {
    name: 'Left2',
    data() {
      return {
        config: {
          data: [{
              name: '机构总数',
              value: 150
            },
            {
              name: '床位总数',
              value: 5000
            },
            {
              name: '老人总数',
              value: 10000
            },
            {
              name: '员工总数',
              value: 1000
            }
          ],
          colors: ['#00baff', '#3de7c9', '#ffc530', '#469f4b'],
          showValue: true,
          unit: '单位'
        }
      }
    }
  }
</script>
 
<style lang="less">
  .left2 {
    width: 100%;
    //height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: rgba(6, 30, 93, 0.5);
 
    .lc1-header {
      position: absolute;
      left: 10px;
      font-size: 14px;
      top: 10px;
      color: #6BD4E0;
    }
 
    .lc1-chart {
      width: 98%;
      position: absolute;
      top: 20%;
      left: 1%;
      bottom: 0px;
    }
  }
</style>