中建四-进度管理模块-页面调整

This commit is contained in:
yjl 2023-03-29 09:49:04 +08:00
parent 607936b45f
commit 932fc3da11

View File

@ -20,9 +20,14 @@
<view class="time">进度比例:{{item.progressRatio}}%</view> <view class="time">进度比例:{{item.progressRatio}}%</view>
<view class="state" <view class="state"
:class="{'stateTextColor1':checkedTab==0,'stateTextColor2':checkedTab==1,'stateTextColor3':checkedTab==2}"> :class="item.differDay==0?'stateTextColor3':'stateTextColor1'">
{{item.status==0?'':item.status==1?'':'提前'}} {{item.status==0?'':item.status==1?'':item.differDay==0?'正常':`提前${item.differDay}`}}
</view> </view>
<!-- <view class="state"
:class="item.differDay==0?'stateTextColor3':'stateTextColor1'" v-if="checkedTab==2">
{{item.differDay==0?'正常':`提前${item.differDay}`}}
</view> -->
<view class="state2" :class="{'state2':item.status==0,'state2':item.status==1,'state3':item.status==2}" <view class="state2" :class="{'state2':item.status==0,'state2':item.status==1,'state3':item.status==2}"
@click="editStatus(item)"> @click="editStatus(item)">
{{item.status==0?'开始任务':item.status==1?'结束任务':''}} {{item.status==0?'开始任务':item.status==1?'结束任务':''}}
@ -62,7 +67,7 @@
}, },
onLoad() { onLoad() {
this.condition.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn; this.condition.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn;
this.checkedTab=sessionStorage.getItem('currentIndex')
}, },
onShow() { onShow() {
this.listData = []; this.listData = [];
@ -81,6 +86,7 @@
//tab //tab
changeTab(type) { changeTab(type) {
sessionStorage.setItem('currentIndex', type)
this.checkedTab = type; this.checkedTab = type;
this.condition.status = type; this.condition.status = type;
this.condition.pageNo = 1; this.condition.pageNo = 1;
@ -282,6 +288,7 @@
.stateTextColor1 { .stateTextColor1 {
color: #ff9900; color: #ff9900;
margin-left: 78%;
} }
.stateTextColor2 { .stateTextColor2 {