mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage into develop
This commit is contained in:
@@ -173,13 +173,13 @@
|
||||
</div>
|
||||
<div class="stagemess">
|
||||
<div
|
||||
v-for="(item,index) in stageList"
|
||||
v-for="(item, index) in stageList"
|
||||
:class="{
|
||||
stage1: item.stageId == choosedStageId,
|
||||
stage2: item.stageId != choosedStageId,
|
||||
}"
|
||||
:key="item.stageId"
|
||||
@click="stageChange(item.name, item.stageId,index)"
|
||||
@click="stageChange(item.name, item.stageId, index)"
|
||||
>
|
||||
关卡{{ item.stageId }}
|
||||
</div>
|
||||
@@ -195,7 +195,9 @@
|
||||
<a-progress
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="chapterOverviewList[choosedStageIndex]?.completeCourseRatio"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]?.completeCourseRatio
|
||||
"
|
||||
:width="140"
|
||||
/>
|
||||
<div class="protext">课程完成率</div>
|
||||
@@ -204,7 +206,9 @@
|
||||
<a-progress
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="chapterOverviewList[choosedStageIndex]?.completeExamRatio"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]?.completeExamRatio
|
||||
"
|
||||
:width="140"
|
||||
/>
|
||||
<div class="protext">考试通过率</div>
|
||||
@@ -213,39 +217,65 @@
|
||||
<a-progress
|
||||
type="dashboard"
|
||||
gapDegree="0"
|
||||
:percent="chapterOverviewList[choosedStageIndex]?.completeRatio"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]?.completeRatio
|
||||
"
|
||||
: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]
|
||||
? chapterOverviewList[choosedStageIndex].totalTaskCnt
|
||||
: 0
|
||||
}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">关卡任务总数</span>
|
||||
<a-progress
|
||||
:percent="chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalTaskCnt:0"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalTaskCnt
|
||||
: 0
|
||||
"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalReqCnt:0 }}
|
||||
{{
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalReqCnt
|
||||
: 0
|
||||
}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">必修课</span>
|
||||
<a-progress
|
||||
:percent="chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalReqCnt:0"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalReqCnt
|
||||
: 0
|
||||
"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
<div class="pronub" style="margin-left: 142px">
|
||||
{{ chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalOptCnt:0 }}
|
||||
{{
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalOptCnt
|
||||
: 0
|
||||
}}
|
||||
</div>
|
||||
<div class="proright1">
|
||||
<span class="textpro">选修课</span>
|
||||
<a-progress
|
||||
:percent="chapterOverviewList[choosedStageIndex]?chapterOverviewList[choosedStageIndex].totalOptCnt:0"
|
||||
:percent="
|
||||
chapterOverviewList[choosedStageIndex]
|
||||
? chapterOverviewList[choosedStageIndex].totalOptCnt
|
||||
: 0
|
||||
"
|
||||
style="width: 369px"
|
||||
/>
|
||||
</div>
|
||||
@@ -431,13 +461,19 @@
|
||||
<a-progress
|
||||
:showInfo="false"
|
||||
:percent="
|
||||
parseInt((item.finishStuNum / item.totalStuNum) * 100)
|
||||
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>
|
||||
@@ -1026,7 +1062,7 @@
|
||||
v-model:AAvisible="AAvisible"
|
||||
:datasource="liveData"
|
||||
:title="showKaoqinText"
|
||||
types="1"
|
||||
types="1"
|
||||
classify="2"
|
||||
/>
|
||||
<!-- 时间管理抽屉 -->
|
||||
@@ -1346,13 +1382,14 @@ export default {
|
||||
RouterHomeworkManage,
|
||||
RouterCommonManage,
|
||||
RouterVoteManage,
|
||||
RouterProjectManage
|
||||
RouterProjectManage,
|
||||
},
|
||||
setup() {
|
||||
const router = useRouter();
|
||||
// const store = useStore();
|
||||
const state = reactive({
|
||||
hasTask:false,
|
||||
pjModelVisible: false,
|
||||
hasTask: false,
|
||||
stage: [],
|
||||
statess: [],
|
||||
routerId: storage.get("routerId")
|
||||
@@ -1812,7 +1849,7 @@ export default {
|
||||
const closehuodModal = () => {
|
||||
state.huodModal = false;
|
||||
};
|
||||
const stageChange = (name, id,index) => {
|
||||
const stageChange = (name, id, index) => {
|
||||
state.choosedStageId = id;
|
||||
state.stateName = name;
|
||||
state.choosedStageIndex = index;
|
||||
@@ -1871,7 +1908,7 @@ export default {
|
||||
state.pjModelVisibleTitle = data.name;
|
||||
state.pjData = data;
|
||||
// 项目弹框名称 RouterProjectManage
|
||||
}
|
||||
};
|
||||
// 作业点击管理弹框
|
||||
const homeworkModel = (data) => {
|
||||
console.log(data);
|
||||
@@ -2123,13 +2160,17 @@ export default {
|
||||
const reget = () => {
|
||||
GetRouterDetail(state.routerId, "N").then((res) => {
|
||||
console.log("获取路径图详情", res);
|
||||
console.log(!!res.data.data?.chapterList.some(({taskList})=>taskList.length));
|
||||
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;
|
||||
state.action = res.data.data.routerInfo.status;
|
||||
state.remark = res.data.data.routerInfo.remark;
|
||||
state.hasTask = !!res.data.data?.chapterList.some(({taskList})=>taskList.length);
|
||||
state.hasTask = !!res.data.data?.chapterList.some(
|
||||
({ taskList }) => taskList.length
|
||||
);
|
||||
state.act =
|
||||
state.action == 0
|
||||
? "发布"
|
||||
@@ -2144,7 +2185,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;
|
||||
|
||||
Reference in New Issue
Block a user