--fix bug

This commit is contained in:
yuping
2023-01-16 00:49:03 +08:00
parent bd18c589be
commit 357739cc60

View File

@@ -540,32 +540,17 @@
</div>
<div class="progress">
<div class="progresstext">
{{
item.finishStuCnt && item.finishStuCnt !== null
? item.finishStuCnt
: 0
}}/{{
item.totalStuCnt && item.totalStuCnt !== null
? item.totalStuCnt
: 0
}}人
{{item.finishStuCnt || 0 }}/{{item.totalStuCnt || 0}}人
</div>
<div style="display: flex">
<a-progress
:showInfo="false"
:percent="item.percent"
:percent="parseInt((item.finishStuCnt / item.totalStuCnt) * 100)"
strokeColor="#FFC067"
trailColor="rgba(253, 209, 98, 0.2)"
/>
<span class="progresstext" style="margin-left: 10px"
>{{
(item.finishStuCnt && item.finishStuCnt !== null
? item.finishStuCnt
: 0 / item.totalStuCnt &&
item.totalStuCnt !== null
? item.totalStuCnt
: 0) * 100
}}%</span
>{{parseInt((item.finishStuCnt / item.totalStuCnt) * 100) || 0 }}%</span
>
</div>
</div>