css
liuying
2024-04-25 f9bd89a83b87cd27eef7ed116881bd983cc1869e
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
<template>
  <div class="right3">
    <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: 'Right3',
    data() {
      return {
        config: {
          data: [{
              name: '使用',
              value: 3000
            },
            {
              name: '空闲',
              value: 1000
            },
            {
              name: '预约',
              value: 5000
            },
            {
              name: '包房',
              value: 200
            },
            {
              name: '其他',
              value: 1000
            }
          ],
          colors: ['#00baff', '#3de7c9', '#ffc530', '#FA3600', '#44934b'],
          showValue: true,
          unit: '张'
        }
      }
    }
  }
</script>
 
<style lang="less">
  .right3 {
    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>