|
|
@@ -8,23 +8,23 @@
|
|
|
<div class="statistics">
|
|
|
<div class="head">预警统计</div>
|
|
|
<div class="container">
|
|
|
- <div class="item" @click="changeStuas(1,'待评审')">
|
|
|
+ <div :class="conditions.status===1?'item active':'item'" @click="changeStuas(1,'待评审')">
|
|
|
<image class="icon" src="/static/index/wait.png" alt=""></image>
|
|
|
<text>待评审{{statistics.review}}个</text>
|
|
|
</div>
|
|
|
- <div class="item" @click="changeStuas(2,'待整改')">
|
|
|
+ <div :class="conditions.status===2?'item active':'item'" @click="changeStuas(2,'待整改')">
|
|
|
<image class="icon" src="/static/index/expire.png" alt=""></image>
|
|
|
<text>待整改{{statistics.rectify}}个</text>
|
|
|
</div>
|
|
|
- <div class="item" @click="changeStuas(3,'待验收')">
|
|
|
+ <div :class="conditions.status===3?'item active':'item'" @click="changeStuas(3,'待验收')">
|
|
|
<image class="icon" src="/static/index/complete.png" alt=""></image>
|
|
|
<text>待验收{{statistics.accept}}个</text>
|
|
|
</div>
|
|
|
- <div class="item" @click="changeStuas(4,'已完成')">
|
|
|
+ <div :class="conditions.status===4?'item active':'item'" @click="changeStuas(4,'已完成')">
|
|
|
<image class="icon" src="/static/index/complete.png" alt=""></image>
|
|
|
<text>已完成{{statistics.complete}}个</text>
|
|
|
</div>
|
|
|
- <div class="item" @click="changeStuas(-1,'已撤销')">
|
|
|
+ <div :class="conditions.status===-1?'item active':'item'" @click="changeStuas(-1,'已撤销')">
|
|
|
<image class="icon" src="/static/index/revocation.png" alt=""></image>
|
|
|
<text>已撤销{{statistics.revocation}}个</text>
|
|
|
</div>
|
|
|
@@ -41,7 +41,7 @@
|
|
|
<div class="time">{{item.submitTime}}</div>
|
|
|
<div class="user">{{item.curAccountName}}</div>
|
|
|
</view>
|
|
|
- <div class="status" v-if="item.status===4">完成</div>
|
|
|
+ <div class="status" v-if="item.status===4||type==='group'">详情</div>
|
|
|
<div class="status" v-else>{{item.curActivityTitle}}</div>
|
|
|
</view>
|
|
|
</div>
|
|
|
@@ -144,7 +144,12 @@
|
|
|
this.getData()
|
|
|
},
|
|
|
linkTo(item){
|
|
|
- if(this.type==='group') return
|
|
|
+ if(item.status===4||this.type==='group'){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:`/pages/risk/histroy/histroy?hdangerId=${item.hdangerId}`
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
let url="";
|
|
|
switch(item.curActivityCode){
|
|
|
case "review" ://评审
|
|
|
@@ -201,13 +206,23 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
flex-wrap: wrap;
|
|
|
+ padding: 20rpx 20rpx 0 20rpx;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 24px;
|
|
|
.item{
|
|
|
width: 33.33%;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
flex-direction: column;
|
|
|
- margin-bottom: 40upx;
|
|
|
+ padding-bottom: 20rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ &.active{
|
|
|
+ background-image: url('/static/icon/selectEd.png');
|
|
|
+ background-size: 32rpx 20rpx;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center bottom;
|
|
|
+ }
|
|
|
.icon{
|
|
|
display: block;
|
|
|
width:88upx;
|
|
|
@@ -282,11 +297,6 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .container {
|
|
|
- padding: 20px;
|
|
|
- font-size: 14px;
|
|
|
- line-height: 24px;
|
|
|
- }
|
|
|
.empty{
|
|
|
text-align: center;
|
|
|
font-size: 28rpx;
|