pyt
2025-03-24 fb551b446015880d1e6e2070cd1fcb8765b4057d
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<template>
  <div class="center-panel">
    <!-- 中间上部数据 -->
    <div class="center-top panel-item">
      <div class="map-data">
        <div class="data-item">
          <img src="@/assets/center-top-left.png" alt="">
          <div>
            <div class="label">申请总户数(户)</div>
            <div class="value">{{ data.houseHoldCount }}</div>
          </div>
 
        </div>
        <div class="data-item">
          <img src="@/assets/center-top-right.png" alt="">
          <div>
            <div class="label">本月应补偿总额(万元)</div>
            <div class="value">{{ data.monthCompensationAmount }} <span>环比</span><span class="value-change value-change-down">{{ data.monthCompensationAmountRate }}</span></div>
          </div>
        </div>
        <div class="data-item">
          <img src="@/assets/center-top-right.png" alt="">
          <div>
            <div class="label">下月应补偿总额(万元)</div>
            <div class="value">{{ data.nextMonthCompensationAmount }} <span>环比</span><span class="value-change value-change-up">{{ data.nextMonthCompensationAmountRate }}</span></div>
          </div>
        </div>
      </div>
    </div>
 
    <!-- 中间地图 -->
    <div class="center-middle">
      <Map :data="data" />
    </div>
 
    <!-- 中间下部数据 -->
    <div class="center-bottom panel-item">
 
    </div>
  </div>
</template>
 
<script>
import Map from './map.vue';
export default {
  name: 'CenterPanel',
  props: {
    data: {
      type: Object,
      default: () => { }
    }
  },
  components: {
    Map
  },
  data() {
    return {
      progressList: [
        { label: '已受理', value: '2021103000001', percentage: 90 },
        { label: '已审核', value: '2021103000002', percentage: 70 },
        { label: '已完成', value: '2021103000003', percentage: 50 }
      ]
    };
  }
};
</script>
 
<style lang="less" scoped>
.center-panel {
  position: absolute;
  left: 481px;
  right: 481px;
  top: 111px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 
  .panel-item {
    border-radius: 10px;
  }
 
  .center-top {
    height: 202px;
    background: url('@/assets/中心背景@2x.png') no-repeat center center;
    background-size: 100% 100%;
  }
 
  .center-middle {
    position: fixed;
    top: 281px;
  }
 
  .center-bottom {
    height: 245px;
    background: url('@/assets/center-bottom-bg.png') no-repeat center center;
    background-size: 100% 100%;
 
  }
 
  .map-data {
    display: flex;
    justify-content: space-between;
    padding-left: 94px;
    padding-right: 94px;
    height: 100%;
    align-items: center;
 
    .data-item {
      display: flex;
      flex-shrink: 0;
      img {
        width: 94px;
        height: 80px;
      }
 
      .label {
        font-size: 14px;
        margin-left: 9px;
        font-size: 12px;
        margin-top: 24px;
      }
 
      .value {
        font-size: 24px;
        color: transparent;
        background: linear-gradient(90deg, #FAFDFF 0%, #9AE1FF 100%);
        -webkit-background-clip: text;
        background-clip: text;
        margin-left: 5px;
 
        span {
          font-size: 12px;
        }
 
        .value-change-up {
          color: #FEDB65;
        }
 
        .value-change-down {
          color: #00ffff;
        }
      }
    }
  }
 
  .box-title {
    font-size: 20px;
    color: #7cb9e8;
  }
 
}
</style>