mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 18:06:48 +08:00
评估状态添加status判断
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user