|
@@ -1,26 +1,28 @@
|
|
|
<template>
|
|
|
<a-card class="cardContent" :loading="loading" :body-style="{ padding: '15px 24px 8px' }" :bordered="false">
|
|
|
<div class="chart-card-header">
|
|
|
- <div class="meta">
|
|
|
- <span class="chart-card-title">{{ title }}</span>
|
|
|
- <div>
|
|
|
- <img v-if="icon == 'green'" src="@/assets/indexChart/green.png">
|
|
|
- <img v-else-if="icon == 'blue'" src="@/assets/indexChart/blue.png">
|
|
|
- <img v-else-if="icon == 'purple'" src="@/assets/indexChart/purple.png">
|
|
|
- <img v-else src="@/assets/indexChart/red.png">
|
|
|
+ <div class="chart-card-title">{{ title }}</div>
|
|
|
+ <div class="chart-card-header-content">
|
|
|
+ <div class="meta">
|
|
|
+ <div>
|
|
|
+ <img v-if="icon == 'green'" src="@/assets/indexChart/green.png">
|
|
|
+ <img v-else-if="icon == 'blue'" src="@/assets/indexChart/blue.png">
|
|
|
+ <img v-else-if="icon == 'purple'" src="@/assets/indexChart/purple.png">
|
|
|
+ <img v-else src="@/assets/indexChart/red.png">
|
|
|
+ </div>
|
|
|
+ <span class="chart-card-action">
|
|
|
+ <slot name="action"></slot>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
- <span class="chart-card-action">
|
|
|
- <slot name="action"></slot>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="total">
|
|
|
- <div>{{ number }}</div>
|
|
|
- <div class="content-title">地块数量</div>
|
|
|
- </div>
|
|
|
- <div class="total">
|
|
|
- <div v-if="area != ''">
|
|
|
- <div>{{ area }}</div>
|
|
|
- <div class="content-title">地块面积</div>
|
|
|
+ <div class="total">
|
|
|
+ <div>{{ number }}</div>
|
|
|
+ <div class="content-title">地块数量</div>
|
|
|
+ </div>
|
|
|
+ <div class="total">
|
|
|
+ <div v-if="area != ''">
|
|
|
+ <div>{{ area }}</div>
|
|
|
+ <div class="content-title">地块面积</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -66,36 +68,45 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-.cardContent /deep/ .chart-card-header{
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- //height: fit-content;
|
|
|
- width: 95%;
|
|
|
-}
|
|
|
+ .cardContent /deep/ .chart-card-header-content{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ //height: fit-content;
|
|
|
+ width: 95%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-card-title {
|
|
|
+ color: white;
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight:bold;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+
|
|
|
.chart-card-header {
|
|
|
//position: relative;
|
|
|
overflow: hidden;
|
|
|
width: 100%;
|
|
|
|
|
|
.meta {
|
|
|
+ color: white;
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight:bold;
|
|
|
//position: relative;
|
|
|
overflow: hidden;
|
|
|
//width: 100%;
|
|
|
- color: white;
|
|
|
- font-size: 20px;
|
|
|
//line-height: 50px;
|
|
|
- font-weight:bold;
|
|
|
- max-width: 35%;
|
|
|
+ max-width: 20%;
|
|
|
}
|
|
|
}
|
|
|
+ // 图标样式
|
|
|
.chart-card-header .meta > div {
|
|
|
text-align: left;
|
|
|
- margin-top: 5px;
|
|
|
+ margin-top: 25px;
|
|
|
}
|
|
|
.chart-card-action {
|
|
|
cursor: pointer;
|
|
|
position: absolute;
|
|
|
- top: 0;
|
|
|
+ top: 15px;
|
|
|
right: 15px;
|
|
|
}
|
|
|
|
|
@@ -136,16 +147,16 @@
|
|
|
word-break: break-all;
|
|
|
white-space: nowrap;
|
|
|
color: white;
|
|
|
- margin-top: 35px;
|
|
|
- margin-bottom: 0;
|
|
|
font-size: 26px;
|
|
|
+ margin-top: 15px;
|
|
|
+ margin-bottom: 0;
|
|
|
//line-height: 38px;
|
|
|
//height: 38px;
|
|
|
}
|
|
|
// 数量,面积标题样式
|
|
|
.content-title {
|
|
|
font-size: 20px;
|
|
|
- margin-top: 20px;
|
|
|
+ margin-top: 10px;
|
|
|
}
|
|
|
//
|
|
|
@media (max-width: 1920px) {
|
|
@@ -154,7 +165,7 @@
|
|
|
}
|
|
|
|
|
|
.chart-card-header .meta > div {
|
|
|
- width: 50%;
|
|
|
+ margin-top: 15px;
|
|
|
img {
|
|
|
width: 100%;
|
|
|
}
|