@@ -1,7 +1,15 @@ | |||||
<Pannel title="资源概况分析" height="232"> | <Pannel title="资源概况分析" height="232"> | ||||
<div class="full colbox"> | <div class="full colbox"> | ||||
<div class="top border"></div> | |||||
<div class="buttom border"> | |||||
<div class="top"> | |||||
<div v-for="item in data" class="item"> | |||||
<p class="top_line"> | |||||
<span class="value">{{item.value}}</span> | |||||
<span class="unit">{{item.unit}}</span> | |||||
</p> | |||||
<p class="name">{{item.name}}</p> | |||||
</div> | |||||
</div> | |||||
<div class="buttom"> | |||||
<HorizontalBar></HorizontalBar> | <HorizontalBar></HorizontalBar> | ||||
</div> | </div> | ||||
</div> | </div> |
@@ -7,6 +7,23 @@ export default { | |||||
}, | }, | ||||
data () { | data () { | ||||
return { | return { | ||||
data: [ | |||||
{ | |||||
name: '农用地', | |||||
value: '500', | |||||
unit: '亩' | |||||
}, | |||||
{ | |||||
name: '建设用地', | |||||
value: '500', | |||||
unit: '亩' | |||||
}, | |||||
{ | |||||
name: '未利用地及林木', | |||||
value: '500', | |||||
unit: '亩' | |||||
} | |||||
] | |||||
}; | }; | ||||
} | } | ||||
}; | }; |
@@ -3,8 +3,38 @@ | |||||
flex-direction: column; | flex-direction: column; | ||||
.top { | .top { | ||||
display: flex; | |||||
justify-content: space-between; | |||||
width: 100%; | width: 100%; | ||||
flex: 1; | flex: 1; | ||||
.item { | |||||
width: 150px; | |||||
height: 100px; | |||||
background: url('./bk.png'); | |||||
background-size: 100% 100%; | |||||
display: flex; | |||||
flex-direction: column; | |||||
align-items: center; | |||||
.top_line { | |||||
margin-top: 15px; | |||||
.value { | |||||
font-size: 20px; | |||||
font-weight: 600; | |||||
} | |||||
.unit { | |||||
font-size: 12px; | |||||
} | |||||
} | |||||
.name { | |||||
font-weight: 600; | |||||
font-size: 12px; | |||||
} | |||||
} | |||||
} | } | ||||
.buttom { | .buttom { | ||||
@@ -51,7 +51,7 @@ export default { | |||||
tabData: [ | tabData: [ | ||||
{ | { | ||||
id: '1', | id: '1', | ||||
name: '统计分析' | |||||
name: '资源分析' | |||||
}, | }, | ||||
{ | { | ||||
id: '2', | id: '2', | ||||
@@ -1,5 +1,4 @@ | |||||
.map { | .map { | ||||
border: 1px solid red; | |||||
position: absolute; | position: absolute; | ||||
top: 0; | top: 0; | ||||
left: 0; | left: 0; | ||||