mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
--fix bug 概览
This commit is contained in:
@@ -160,9 +160,7 @@
|
||||
</div>
|
||||
<div class="nubbox">
|
||||
<div>
|
||||
<span class="nub1" style="color: #a497ff">{{
|
||||
routerInfoOverview.completeRatio
|
||||
}}</span
|
||||
<span class="nub1" style="color: #a497ff">{{(routerInfoOverview.completeRatio * 100).toFixed(2)}}</span
|
||||
><span style="color: #a497ff; font-size: 14px">%</span>
|
||||
</div>
|
||||
<div class="nub2">总完成率</div>
|
||||
@@ -195,9 +193,7 @@
|
||||
<a-progress
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]?.completeCourseRatio
|
||||
"
|
||||
:percent=" chapterOverviewList[choosedStageIndex]?.completeCourseRatio || 0 "
|
||||
:width="140"
|
||||
/>
|
||||
<div class="protext">课程完成率</div>
|
||||
@@ -206,9 +202,7 @@
|
||||
<a-progress
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]?.completeExamRatio
|
||||
"
|
||||
:percent="chapterOverviewList[choosedStageIndex]?.completeExamRatio || 0"
|
||||
:width="140"
|
||||
/>
|
||||
<div class="protext">考试通过率</div>
|
||||
@@ -217,65 +211,47 @@
|
||||
<a-progress
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]?.completeRatio
|
||||
"
|
||||
:percent="chapterOverviewList[choosedStageIndex]?.completeRatio || 0"
|
||||
:width="140"
|
||||
/>
|
||||
<div class="protext">作业完成率</div>
|
||||
</div>
|
||||
<div class="proright">
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalTaskCnt
|
||||
: 0
|
||||
}}
|
||||
{{ chapterOverviewList[choosedStageIndex].completeTaskCnt || 0}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">关卡任务总数</span>
|
||||
<a-progress
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalTaskCnt
|
||||
: 0
|
||||
"
|
||||
:percent="fixDoublePer(chapterOverviewList[choosedStageIndex].completeTaskCnt / (chapterOverviewList[choosedStageIndex].totalTaskCnt || 0))"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalReqCnt
|
||||
? chapterOverviewList[choosedStageIndex].completeReqCnt
|
||||
: 0
|
||||
}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">必修课</span>
|
||||
<a-progress
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalReqCnt
|
||||
: 0
|
||||
"
|
||||
:percent="fixDoublePer(chapterOverviewList[choosedStageIndex].completeReqCnt / (chapterOverviewList[choosedStageIndex].totalReqCnt || 0))"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalOptCnt
|
||||
? chapterOverviewList[choosedStageIndex].completeOptCnt
|
||||
: 0
|
||||
}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">选修课</span>
|
||||
<a-progress
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalOptCnt
|
||||
: 0
|
||||
"
|
||||
:percent="fixDoublePer(chapterOverviewList[choosedStageIndex].completeOptCnt / (chapterOverviewList[choosedStageIndex].totalOptCnt || 0))"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
@@ -468,20 +444,12 @@
|
||||
<div style="display: flex">
|
||||
<a-progress
|
||||
:showInfo="false"
|
||||
:percent="
|
||||
parseInt(
|
||||
(item.finishStuNum / item.totalStuNum) * 100
|
||||
)
|
||||
"
|
||||
:percent=" parseInt((item.finishStuNum / item.totalStuNum) * 100)"
|
||||
strokeColor="#FFC067"
|
||||
trailColor="rgba(253, 209, 98, 0.2)"
|
||||
/>
|
||||
<span class="progresstext" style="margin-left: 10px"
|
||||
>{{
|
||||
parseInt(
|
||||
(item.finishStuNum / item.totalStuNum) * 100
|
||||
) || 0
|
||||
}}%</span
|
||||
>{{parseInt((item.finishStuNum / item.totalStuNum) * 100) || 0}}%</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1446,7 +1414,7 @@ import RouterProjectManage from "../../components/drawers/router/RouterProjectMa
|
||||
import ImpoterGroupLeader from "@/components/drawers/project/ImpoterGroupLeader.vue";
|
||||
import TaskImpStu from "../../components/drawers/TaskFaceIn";
|
||||
|
||||
import { checkPer } from "@/utils/utils";
|
||||
import { checkPer,fixDoublePer } from "@/utils/utils";
|
||||
|
||||
export default {
|
||||
name: "LevelAdd",
|
||||
@@ -3012,7 +2980,7 @@ export default {
|
||||
showCodeModel2,
|
||||
editLearnInfo,
|
||||
pubIcon,
|
||||
|
||||
fixDoublePer,
|
||||
faceTeachModel,
|
||||
examinationModel,
|
||||
evaluationModel,
|
||||
|
||||
Reference in New Issue
Block a user