This commit is contained in:
yuping
2022-12-23 17:17:46 +08:00
parent 041c0d6a8d
commit 803bbe4969

View File

@@ -58,11 +58,11 @@
<!-- {{ item.name }}-->
<!-- </div>-->
</div>
<div class="progressBox" :style="{ display: value.type === 1 ? 'block' : 'none' }">
<div v-if="value.type === 1" class="progressBox">
<div>当前进度</div>
<div class="progress">
<div style="width: 291px">
<el-progress :percentage="value.currentRatio" :show-text="false" :stroke-width="8" :color="
<el-progress :percentage="value.currentRatio * 100" :show-text="false" :stroke-width="8" :color="
{
0: 'rgba(238, 112, 108, 1)',
1: 'rgba(255, 151, 38, 1)',
@@ -70,7 +70,7 @@
3: 'rgba(59, 94, 251, 1)',
4: 'rgba(57, 219, 183, 1)',
5: 'rgba(57, 219, 183, 1)',
}[parseInt(value.currentRatio / 20)]
}[parseInt(value.currentRatio * 100 / 20)]
" />
</div>
<div style="
@@ -86,9 +86,9 @@
3: 'rgba(59, 94, 251, 1)',
4: 'rgba(57, 219, 183, 1)',
5: 'rgba(57, 219, 183, 1)',
}[parseInt(value.currentRatio / 20)],
}[parseInt(value.currentRatio * 100 / 20)],
}">
{{ value.currentRatio }}%
{{ value.currentRatio * 100 }}%
</div>
</div>
</div>
@@ -96,13 +96,7 @@
<div class="goclass" :style="{
background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
}" @click="toFinish(value)">
{{
value.status === 1
? "已完成"
: types.path[value.type]
? types.toName[value.type]
: "未开放"
}}
{{value.currentRatio === 1 ? "已完成" : types.path[value.type] ? types.toName[value.type] : "未开放"}}
</div>
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
<!-- <div-->