Browse Source

修改执法综合分析页面

v4
meizf 1 year ago
parent
commit
8f16b569ed
  1. BIN
      src/assets/images/bg_analy_card.jpg
  2. 39
      src/views/enforce/comprehensiveAnalysis.vue

BIN
src/assets/images/bg_analy_card.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

39
src/views/enforce/comprehensiveAnalysis.vue

@ -81,7 +81,7 @@
<b>{{data.whole.complaintTotal}}</b> </span> </div> <b>{{data.whole.complaintTotal}}</b> </span> </div>
</div> </div>
</div> </div>
<h3 class="card_tit">执法类别</h3> <!--<h3 class="card_tit">执法类别</h3>
<div class="count_wrap"> <div class="count_wrap">
<div class="count_item" v-for="item in data.whole.lawEnforceCategoryList"> <div class="count_item" v-for="item in data.whole.lawEnforceCategoryList">
<label>{{ item.lawEnforceCategory }}</label> <label>{{ item.lawEnforceCategory }}</label>
@ -89,9 +89,19 @@
<span class="number_percent" v-if="item.percentage!=null&&item.percentage!=0">{{item.percentage}}<i>%</i></span> <span class="number_percent" v-if="item.percentage!=null&&item.percentage!=0">{{item.percentage}}<i>%</i></span>
<span class="number_percent" v-else>-</span> <span class="number_percent" v-else>-</span>
</div> </div>
</div> </div>-->
<van-tabs v-model:active="active"> <van-tabs v-model:active="active">
<van-tab title="执法类别">
<div class="count_wrap ent_cate">
<div class="count_item" v-for="item in data.whole.lawEnforceCategoryList">
<label>{{ item.lawEnforceCategory }}</label>
<span class="number_count">{{item.lawEnforceCategoryNumber}}</span>
<span class="number_percent" v-if="item.percentage!=null&&item.percentage!=0">{{item.percentage}}<i>%</i></span>
<span class="number_percent" v-else>-</span>
</div>
</div>
</van-tab>
<van-tab title="企业类别"> <van-tab title="企业类别">
<div class="count_wrap ent_cate"> <div class="count_wrap ent_cate">
<div class="count_item" v-for="item in data.whole.companyOrgTypeList"> <div class="count_item" v-for="item in data.whole.companyOrgTypeList">
@ -165,10 +175,10 @@ const data = reactive({
uniteTotal: 0, uniteTotal: 0,
evaluateTotal: 0, evaluateTotal: 0,
complaintTotal: 0, complaintTotal: 0,
lawEnforceCategoryList:[],
checkCategoryList: [], checkCategoryList: [],
companyOrgTypeList: [], companyOrgTypeList: [],
complaintTypeList: [], complaintTypeList: [],
lawEnforceCategoryList:[]
}), }),
ontabClass1: true, ontabClass1: true,
ontabClass2: false, ontabClass2: false,
@ -532,9 +542,9 @@ body {
.count_item { .count_item {
float: left; float: left;
position: relative; position: relative;
margin: -1% 0.5% 2.5% 1.5%; margin: -1% 0.5% 3.5% 1.5%;
width: 31.3%; width: 48%;
height: 3rem; height: 2.5rem;
background: url(../../assets/images/bg_analy_card.jpg) no-repeat; background: url(../../assets/images/bg_analy_card.jpg) no-repeat;
background-size: cover; background-size: cover;
border-radius: 0.2rem; border-radius: 0.2rem;
@ -544,18 +554,18 @@ body {
.count_item label { .count_item label {
position: absolute; position: absolute;
display: block; display: block;
margin: 6% 0 0; margin: 3% 0 0;
width: 100%; width: 100%;
color: #666; color: #666;
text-align: center; text-align: center;
} }
.number_count { .number_count {
display: block; display: block;
margin: 30% 0 0; margin: 17% 0 0;
color: #4767fe; color: #4767fe;
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 500; font-weight: 500;
line-height: 1.65; line-height: 1.35;
} }
.number_percent { .number_percent {
color: #666; color: #666;
@ -566,9 +576,9 @@ body {
color: #999; color: #999;
font-size: 0.28rem; font-size: 0.28rem;
} }
.ent_cate .number_count { /*.ent_cate .number_count {
color: #333; color: #333;
} }*/
.com_cate .number_count { .com_cate .number_count {
color: #f73b3b; color: #f73b3b;
} }
@ -577,14 +587,15 @@ body {
background-size: cover; background-size: cover;
} }
.van-tabs__nav { .van-tabs__nav {
justify-content: flex-start !important; justify-content: flex-start !important;
width: 40% !important; margin-left: 0.25rem;
width: 60% !important;
} }
.van-tab { .van-tab {
font-size: 0.35rem !important; font-size: 0.35rem !important;
} }
.van-tabs__line { .van-tabs__line {
bottom: 0.6rem !important; bottom: 0.6rem !important;
width: 35% !important; width: 28% !important;
} }
</style> </style>
Loading…
Cancel
Save