Browse Source

修改居民分类统计

v1.1
战立标 2 years ago
parent
commit
1c85fcd8b8
  1. 31
      src/views/dataBoard/renfang/index.vue

31
src/views/dataBoard/renfang/index.vue

@ -115,8 +115,8 @@
<div class="m-search"> <div class="m-search">
<div class="btn" @click="searchModule.displayedCard = true"> <div class="btn" @click="searchModule.displayedCard = true">
<img src="@/assets/images/renfang/search_border.png" class="border" alt=""> <img alt="" class="border" src="@/assets/images/renfang/search_border.png">
<img src="@/assets/images/renfang/search_icon.png" class="icon" alt=""> <img alt="" class="icon" src="@/assets/images/renfang/search_icon.png">
</div> </div>
<div v-show="searchModule.displayedCard" class="card"> <div v-show="searchModule.displayedCard" class="card">
@ -264,14 +264,17 @@
</div> </div>
<div class="item-per"> <div class="item-per">
<span>较上月</span> <span>较上月</span>
<template v-if="item.growth !== 0">
<img <img
v-if="item.growth >= 0" v-if="item.growth > 0"
src="~@/assets/images/shuju/renfang/index/up.png" src="~@/assets/images/shuju/renfang/index/up.png"
/> />
<img <img
v-else v-else
src="~@/assets/images/shuju/renfang/index/down.png" src="~@/assets/images/shuju/renfang/index/down.png"
/> />
</template>
<span v-else style="width: 20px"></span>
<b>{{ item.growthAbs }}</b> <b>{{ item.growthAbs }}</b>
<span></span> <span></span>
</div> </div>
@ -302,7 +305,7 @@
<div class="item-per"> <div class="item-per">
<span>较上一年</span> <span>较上一年</span>
<img <img
v-if="item.growth >= 0" v-if="item.isTop"
src="~@/assets/images/shuju/renfang/index/up.png" src="~@/assets/images/shuju/renfang/index/up.png"
/> />
<img <img
@ -640,7 +643,7 @@ export default {
} else if (type == "2") { } else if (type == "2") {
title = detailJson.village; title = detailJson.village;
} else if (type == "3") { } else if (type == "3") {
console.log(item,'detailJson') console.log(item, 'detailJson')
title = detailJson.village + "-" + detailJson.building; title = detailJson.village + "-" + detailJson.building;
} else if (type == "4") { } else if (type == "4") {
title = item.center_addre; title = item.center_addre;
@ -721,8 +724,8 @@ export default {
name: resiCategoryMap[item.categoryName] || "", name: resiCategoryMap[item.categoryName] || "",
count: item.categoryCount, count: item.categoryCount,
ratio: ((100 * item.categoryCount) / data.resiCount).toFixed(0), ratio: ((100 * item.categoryCount) / data.resiCount).toFixed(0),
growth: 0, growth: item.growth,
growthAbs: Math.abs(item.growth) || '--', growthAbs: item.growth === 0 ? 0 : Math.abs(item.growth),
}; };
}); });
} }
@ -821,23 +824,27 @@ export default {
.map-bottom { .map-bottom {
margin: 0 17px; margin: 0 17px;
} }
.m-search { .m-search {
top: 595px!important; top: 595px !important;
.btn { .btn {
position: relative; position: relative;
width: 56px; width: 56px;
height: 56px; height: 56px;
margin-left: 12px; margin-left: 12px;
.border { .border {
position: absolute;
top: 0;
left: 0;
//animation-iteration-count: infinite;
width: 56px; width: 56px;
height: 56px; height: 56px;
animation: autobiography 2s infinite; animation: autobiography 2s infinite;
//animation-iteration-count: infinite;
animation-timing-function: linear; animation-timing-function: linear;
position: absolute;
left: 0;
top: 0;
} }
.icon { .icon {
width: 56px; width: 56px;
height: 56px; height: 56px;

Loading…
Cancel
Save