mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 11:26:49 +08:00
评估状态添加status判断
This commit is contained in:
@@ -72,14 +72,14 @@
|
|||||||
new Date(data.planDto?.beginTime).getTime() >
|
new Date(data.planDto?.beginTime).getTime() >
|
||||||
new Date().getTime()
|
new Date().getTime()
|
||||||
? '#999'
|
? '#999'
|
||||||
: data.isSurvery
|
: data.isSurvery && data.status == 1
|
||||||
? '#999'
|
? '#999'
|
||||||
: 'rgb(57, 146, 249)'
|
: 'rgb(57, 146, 249)'
|
||||||
}`,
|
}`,
|
||||||
}"
|
}"
|
||||||
class="btn"
|
class="btn"
|
||||||
@click="toSurvery"
|
@click="toSurvery"
|
||||||
>{{ data.isSurvery ? "已评估" : "评估" }}
|
>{{ data.isSurvery && data.status == 1 ? "已评估" : "评估" }}
|
||||||
</botton>
|
</botton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -72,14 +72,14 @@
|
|||||||
new Date(data.planDto?.beginTime).getTime() >
|
new Date(data.planDto?.beginTime).getTime() >
|
||||||
new Date().getTime()
|
new Date().getTime()
|
||||||
? '#999'
|
? '#999'
|
||||||
: data.isSurvery
|
: data.isSurvery && data.status == 1
|
||||||
? '#999'
|
? '#999'
|
||||||
: 'rgb(57, 146, 249)'
|
: 'rgb(57, 146, 249)'
|
||||||
}`,
|
}`,
|
||||||
}"
|
}"
|
||||||
class="btn"
|
class="btn"
|
||||||
@click="toSurvery"
|
@click="toSurvery"
|
||||||
>{{ data.isSurvery ? "已评估" : "评估" }}
|
>{{ data.isSurvery && data.status == 1 ? "已评估" : "评估" }}
|
||||||
</botton>
|
</botton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -71,18 +71,18 @@
|
|||||||
</botton> -->
|
</botton> -->
|
||||||
|
|
||||||
<botton :style="{
|
<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">{{
|
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1">{{
|
||||||
data.isSurvery ? "已评估" :
|
data.isSurvery && data.status == 1 ? "已评估" :
|
||||||
"评估"
|
"评估"
|
||||||
}}
|
}}
|
||||||
</botton>
|
</botton>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="threeBtn">
|
<div v-else class="threeBtn">
|
||||||
<botton :style="{
|
<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">{{
|
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1&&data.isSurvery && data.status == 1">{{
|
||||||
data.isSurvery ? "已评估" :
|
data.isSurvery && data.status == 1 ? "已评估" :
|
||||||
"评估"
|
"评估"
|
||||||
}}
|
}}
|
||||||
</botton>
|
</botton>
|
||||||
@@ -109,9 +109,9 @@
|
|||||||
</botton> -->
|
</botton> -->
|
||||||
|
|
||||||
<botton :style="{
|
<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">{{
|
}" class="btn" @click="commitClick" v-if="data.isEvaluate && data.isEvaluate == 1">{{
|
||||||
data.isSurvery ? "已评估" :
|
data.isSurvery && data.status == 1 ? "已评估" :
|
||||||
"评估"
|
"评估"
|
||||||
}}
|
}}
|
||||||
</botton>
|
</botton>
|
||||||
|
|||||||
Reference in New Issue
Block a user