<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>
|