Commit c9ffa664 authored by zhengke's avatar zhengke

修改

parent 16b44952
......@@ -46,7 +46,7 @@
<div class="plan_Inner" style="align-items:center;">
<div class="plan_LeftTitle">课程进度:</div>
<div class="plan_RightInner">
<el-progress :percentage="GetPercent(subItem.Ranks,subItem.TotalPlanNum)"></el-progress>
{{subItem.Ranks}}/{{subItem.TotalPlanNum}}
</div>
</div>
</template>
......@@ -64,7 +64,7 @@
<div class="plan_RightInner" style="color: rgb(239, 83, 80);" v-if="subItem.AppointState==1">待确认</div>
<div class="plan_RightInner" style="color: rgb(33, 186, 69);" v-if="subItem.AppointState==2">已确认</div>
</div>
<div class="plan_Inner">
<div class="plan_Inner" v-if="subItem.ScrollMinNum">
<div class="plan_LeftTitle">最小成班:</div>
<div class="plan_RightInner">
<span style="color: rgb(33, 186, 69);">{{subItem.ScrollMinNum}}</span>
......@@ -96,15 +96,6 @@
},
methods: {
GetPercent(num, total) {
num = parseFloat(num);
total = parseFloat(total);
if (isNaN(num) || isNaN(total)) {
undefined
return "-";
}
return total <= 0 ? 0 : (Math.round(num / total * 100) / 100.00);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment