mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
feat:增加学习路径图概览模块
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 概览(有数据) -->
|
||||
<div v-if="hasTask">
|
||||
<div v-else>
|
||||
<div class="onerow">
|
||||
<div class="taskmain">关卡概览</div>
|
||||
</div>
|
||||
@@ -219,33 +219,33 @@
|
||||
<div class="protext">作业完成率</div>
|
||||
</div>
|
||||
<div class="proright">
|
||||
<div class="pronub" style="margin-left: 280px">
|
||||
{{ chapterOverviewList[choosedStageIndex].totalTaskCnt }}
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalTaskCnt:0 }}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">关卡任务总数</span>
|
||||
<a-progress
|
||||
:percent="chapterOverviewList[choosedStageIndex].totalTaskCnt"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 206px">
|
||||
{{ chapterOverviewList[choosedStageIndex].totalReqCnt }}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">必修课</span>
|
||||
<a-progress
|
||||
:percent="chapterOverviewList[choosedStageIndex].totalReqCnt"
|
||||
:percent="chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalTaskCnt:0"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ chapterOverviewList[choosedStageIndex].totalOptCnt }}
|
||||
{{ chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalReqCnt:0 }}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">必修课</span>
|
||||
<a-progress
|
||||
:percent="chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalReqCnt:0"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalOptCnt:0 }}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">选修课</span>
|
||||
<a-progress
|
||||
:percent="chapterOverviewList[choosedStageIndex].totalOptCnt"
|
||||
:percent="chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalOptCnt:0"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
@@ -2112,7 +2112,8 @@ export default {
|
||||
};
|
||||
const reget = () => {
|
||||
GetRouterDetail(state.routerId, "N").then((res) => {
|
||||
// console.log("获取路径图详情", res);
|
||||
console.log("获取路径图详情", res);
|
||||
console.log(!!res.data.data?.chapterList.some(({taskList})=>taskList.length));
|
||||
state.styTitle = res.data.data.routerInfo.name;
|
||||
state.cretime = res.data.data.routerInfo.createTime;
|
||||
state.picUrl = res.data.data.routerInfo.picUrl;
|
||||
@@ -2133,7 +2134,7 @@ export default {
|
||||
const getOverview = () => {
|
||||
getRouterOverview(state.routerId)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
console.log('学习路径图概览数据获取', res);
|
||||
Object.keys(res.data.data.routerInfoOverview).forEach((item) => {
|
||||
levelList.routerInfoOverview[item] =
|
||||
res.data.data.routerInfoOverview[item] || 0;
|
||||
@@ -2146,7 +2147,7 @@ export default {
|
||||
// console.log(r)
|
||||
// })
|
||||
state.addLoading = false;
|
||||
console.log("项目概览--", res);
|
||||
// console.log("项目概览--", res);
|
||||
})
|
||||
.catch((err) => {
|
||||
state.addLoading = false;
|
||||
|
||||
Reference in New Issue
Block a user