mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 02:46:48 +08:00
fix:修改项目阶段状态显示
This commit is contained in:
@@ -23,11 +23,6 @@
|
||||
<div style="width:8px;height:8px;border-radius:8px;border:2px solid #999;"></div>
|
||||
<div class="titleRT" style="color:#999;">已结束</div>
|
||||
</div>
|
||||
<!-- 已完成 -->
|
||||
<div v-else-if="data.status==1" class="titleR" :style="{ display: 'flex' }">
|
||||
<div style="width:8px;height:8px;border-radius:8px;border:2px solid #999;"></div>
|
||||
<div class="titleRT" style="color:#999;">已完成</div>
|
||||
</div>
|
||||
<!-- 未开始 -->
|
||||
<div v-else-if="data.status==2" class="titleR" :style="{ display: 'flex' }">
|
||||
<div style="width:8px;height:8px;border-radius:8px;border:2px solid #999;"></div>
|
||||
@@ -36,7 +31,9 @@
|
||||
<!-- 默认进行中状态 -->
|
||||
<div v-else class="titleR" :style="{ display: 'flex' }">
|
||||
<img src="../../assets/image/pathdetails/circle.png" />
|
||||
<div class="titleRT">已完成</div>
|
||||
<div class="titleRT">
|
||||
{{ queryAllStatus(i.taskProcessList) ? '已完成' : '进行中' }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="titleR" :style="{ display: i.status === 2 ? 'flex' : 'none' }">
|
||||
<img src="../../assets/image/pathdetails/circle2.png" />
|
||||
@@ -541,6 +538,17 @@ function toFinish(d, sName, chapterOrStageId) {
|
||||
function whiteTypes(type) {
|
||||
return import.meta.env.VITE_TASK_WHITE_TYPE.includes("-" + type + "-");
|
||||
}
|
||||
// 查询当前阶段所有任务是否都完成
|
||||
const queryAllStatus = (data) => {
|
||||
// status === 1 已完成
|
||||
console.log(data)
|
||||
for(let i=0;i<data.length;i++) {
|
||||
if(data[i].status!==1){
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user