mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 12:56:45 +08:00
--fix bug 概览
This commit is contained in:
@@ -313,26 +313,26 @@
|
||||
<div class="second" style="margin-top: 0">
|
||||
<div class="nubbox">
|
||||
<span class="nub1">{{
|
||||
projectInfoOverview.totalStudentCnt
|
||||
projectInfoOverview.totalStudentCnt || 0
|
||||
}}</span>
|
||||
<div class="nub2">总人数</div>
|
||||
</div>
|
||||
<div class="nubbox">
|
||||
<span class="nub1" style="color: #ff90ae">{{
|
||||
projectInfoOverview.studyStudentCnt
|
||||
projectInfoOverview.studyStudentCnt || 0
|
||||
}}</span>
|
||||
<div class="nub2">学习人数</div>
|
||||
</div>
|
||||
<div class="nubbox">
|
||||
<span class="nub1" style="color: #a497ff">{{
|
||||
projectInfoOverview.completeStudentCnt
|
||||
projectInfoOverview.completeStudentCnt || 0
|
||||
}}</span>
|
||||
<div class="nub2">完成人数</div>
|
||||
</div>
|
||||
<div class="nubbox">
|
||||
<div>
|
||||
<span class="nub1" style="color: #5dc988">{{
|
||||
projectInfoOverview.onlineCourseCnt
|
||||
projectInfoOverview.onlineCourseCnt || 0
|
||||
}}</span>
|
||||
<!-- <span style="color: #5dc988; font-size: 14px">%</span> -->
|
||||
</div>
|
||||
@@ -341,7 +341,7 @@
|
||||
<div class="nubbox">
|
||||
<div>
|
||||
<span class="nub1" style="color: #ff90ae">{{
|
||||
projectInfoOverview.offLineCourseCnt
|
||||
projectInfoOverview.offLineCourseCnt || 0
|
||||
}}</span>
|
||||
<!-- <span style="color: #ff90ae; font-size: 14px">%</span> -->
|
||||
</div>
|
||||
@@ -350,7 +350,7 @@
|
||||
<div class="nubbox">
|
||||
<div>
|
||||
<span class="nub1" style="color: #a497ff">{{
|
||||
projectInfoOverview.completeRatio
|
||||
(projectInfoOverview.completeRatio || 0).toFixed(2)
|
||||
}}</span
|
||||
><span style="color: #a497ff; font-size: 14px">%</span>
|
||||
</div>
|
||||
@@ -390,7 +390,7 @@
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="
|
||||
stageOverviewList[choosedStageIndex]?.completeCourseRatio
|
||||
stageOverviewList[choosedStageIndex]?.completeCourseRatio || 0
|
||||
"
|
||||
:width="140"
|
||||
/>
|
||||
@@ -401,7 +401,7 @@
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="
|
||||
stageOverviewList[choosedStageIndex]?.completeExamRatio
|
||||
stageOverviewList[choosedStageIndex]?.completeExamRatio || 0
|
||||
"
|
||||
:width="140"
|
||||
/>
|
||||
@@ -411,41 +411,39 @@
|
||||
<a-progress
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="stageOverviewList[choosedStageIndex]?.completeRatio"
|
||||
:percent="stageOverviewList[choosedStageIndex]?.completeRatio || 0"
|
||||
:width="140"
|
||||
/>
|
||||
<div class="protext">作业完成率</div>
|
||||
</div>
|
||||
<div class="proright">
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ stageOverviewList[choosedStageIndex]?.completeTaskCnt }}
|
||||
{{ stageOverviewList[choosedStageIndex]?.completeTaskCnt || 0}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">阶段任务总数</span>
|
||||
<a-progress
|
||||
:percent="
|
||||
stageOverviewList[choosedStageIndex]?.totalTaskCnt
|
||||
"
|
||||
:percent="fixDoublePer(stageOverviewList[choosedStageIndex]?.completeTaskCnt/(stageOverviewList[choosedStageIndex]?.totalTaskCnt || 0))"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ stageOverviewList[choosedStageIndex]?.totalReqCnt }}
|
||||
{{ stageOverviewList[choosedStageIndex]?.completeReqCnt || 0}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">必修课</span>
|
||||
<a-progress
|
||||
:percent="stageOverviewList[choosedStageIndex]?.totalReqCnt"
|
||||
:percent="fixDoublePer(stageOverviewList[choosedStageIndex]?.completeReqCnt/(stageOverviewList[choosedStageIndex]?.totalReqCnt || 0))"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ stageOverviewList[choosedStageIndex]?.totalOptCnt }}
|
||||
{{ stageOverviewList[choosedStageIndex]?.completeOptCnt || 0}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">选修课</span>
|
||||
<a-progress
|
||||
:percent="stageOverviewList[choosedStageIndex]?.totalOptCnt"
|
||||
:percent="fixDoublePer(stageOverviewList[choosedStageIndex]?.completeOptCnt/(stageOverviewList[choosedStageIndex]?.totalOptCnt || 0))"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
@@ -2310,7 +2308,7 @@ import TableStudent from "@/components/student/TableStudent";
|
||||
import TableCertificateStudent from "@/components/student/TableCertificateStudent";
|
||||
import { getStuPage } from "@/api/index1";
|
||||
import ChangeGroupModal from "@/components/student/ChangeGroupModal.vue";
|
||||
import { checkPer } from "@/utils/utils";
|
||||
import { checkPer,fixDoublePer } from "@/utils/utils";
|
||||
import ImpoterGroupLeader from "@/components/drawers/project/ImpoterGroupLeader.vue";
|
||||
export default {
|
||||
name: "taskPage",
|
||||
@@ -4996,6 +4994,7 @@ export default {
|
||||
checkType,
|
||||
downloadFile,
|
||||
checkPer,
|
||||
fixDoublePer,
|
||||
addCertificate,
|
||||
editCertificate,
|
||||
deleteCertificate,
|
||||
|
||||
Reference in New Issue
Block a user