评估状态添加status判断

This commit is contained in:
zhangsir
2024-08-12 18:11:05 +08:00
parent 11c1913894
commit 62758968ee
3 changed files with 11 additions and 11 deletions

View File

@@ -72,14 +72,14 @@
new Date(data.planDto?.beginTime).getTime() >
new Date().getTime()
? '#999'
: data.isSurvery
: data.isSurvery && data.status == 1
? '#999'
: 'rgb(57, 146, 249)'
}`,
}"
class="btn"
@click="toSurvery"
>{{ data.isSurvery ? "已评估" : "评估" }}
>{{ data.isSurvery && data.status == 1 ? "已评估" : "评估" }}
</botton>
</div>
</div>

View File

@@ -72,14 +72,14 @@
new Date(data.planDto?.beginTime).getTime() >
new Date().getTime()
? '#999'
: data.isSurvery
: data.isSurvery && data.status == 1
? '#999'
: 'rgb(57, 146, 249)'
}`,
}"
class="btn"
@click="toSurvery"
>{{ data.isSurvery ? "已评估" : "评估" }}
>{{ data.isSurvery && data.status == 1 ? "已评估" : "评估" }}
</botton>
</div>
</div>

View File

@@ -71,18 +71,18 @@
</botton> -->
<botton :style="{
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery ? '#999' : 'rgb(59, 191, 252)'}`,
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery && data.status == 1 ? '#999' : 'rgb(59, 191, 252)'}`,
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1">{{
data.isSurvery ? "已评估" :
data.isSurvery && data.status == 1 ? "已评估" :
"评估"
}}
</botton>
</div>
<div v-else class="threeBtn">
<botton :style="{
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery ? '#999' : 'rgb(59, 191, 252)'}`,
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1&&data.isSurvery">{{
data.isSurvery ? "已评估" :
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery && data.status == 1 ? '#999' : 'rgb(59, 191, 252)'}`,
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1&&data.isSurvery && data.status == 1">{{
data.isSurvery && data.status == 1 ? "已评估" :
"评估"
}}
</botton>
@@ -109,9 +109,9 @@
</botton> -->
<botton :style="{
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery ? '#999' : 'rgb(59, 191, 252)'}`,
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.isSurvery && data.status == 1 ? '#999' : 'rgb(59, 191, 252)'}`,
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1">{{
data.isSurvery ? "已评估" :
data.isSurvery && data.status == 1 ? "已评估" :
"评估"
}}
</botton>