mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
fix:修改bug
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
</div>
|
||||
<div
|
||||
class="taskbox"
|
||||
@click="showModal"
|
||||
@click="showPub"
|
||||
style="background: linear-gradient(180deg, #e5f6ec, #eef9f3)"
|
||||
>
|
||||
<div class="leftt">
|
||||
@@ -1078,7 +1078,9 @@
|
||||
<div class="projectbox">
|
||||
<div class="promessage">
|
||||
<div class="messageme">路径信息</div>
|
||||
<div class="messagege">当前路径共0个关卡,0个任务</div>
|
||||
<div class="messagege">
|
||||
当前路径共{{ routeChapters }}个关卡,{{ routeTasks }}个任务
|
||||
</div>
|
||||
</div>
|
||||
<div class="stumessage">
|
||||
<div class="messageme1">学员信息</div>
|
||||
@@ -1255,6 +1257,8 @@ export default {
|
||||
dcopyModal: false, //复制弹窗
|
||||
closeBack: false,
|
||||
routeStudentsNum: null,
|
||||
routeChapters: null,
|
||||
routeTasks: null,
|
||||
dcloseCopy: false,
|
||||
dicloseCopy: false,
|
||||
stopModal: false, //结束弹窗
|
||||
@@ -1733,7 +1737,9 @@ export default {
|
||||
message.destroy();
|
||||
message.success("发布成功");
|
||||
state.pub = false;
|
||||
state.nodata = false;
|
||||
// getLearnPath();
|
||||
|
||||
reget();
|
||||
})
|
||||
.catch((err) => {
|
||||
@@ -1744,33 +1750,19 @@ export default {
|
||||
const showPub = () => {
|
||||
state.pub = true;
|
||||
// state.releasePathId = routerId;
|
||||
//获取学员总数
|
||||
let obj = {
|
||||
pageNo: 0,
|
||||
pageSize: 0,
|
||||
routerId: state.routerId,
|
||||
};
|
||||
api
|
||||
.getStudent(obj)
|
||||
.getLearnCount(state.routerId)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
// console.log("res", res.data.data);
|
||||
state.routeStudentsNum = res.data.data.total;
|
||||
// console.log("获取关卡、任务、学员统计数据", res.data);
|
||||
state.routeStudentsNum = res.data.students;
|
||||
state.routeChapters = res.data.chapters;
|
||||
state.routeTasks = res.data.tasks;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("err", err);
|
||||
});
|
||||
|
||||
//获取学习路径详细信息
|
||||
// api
|
||||
// .getRouterDetail(routerId)
|
||||
// .then((res) => {
|
||||
// console.log("学习路径详情", res);
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.log("学习路径详情获取错误", err);
|
||||
// });
|
||||
};
|
||||
//显示撤回弹窗
|
||||
const showBackModal = () => {
|
||||
@@ -1794,6 +1786,7 @@ export default {
|
||||
message.success("撤回成功");
|
||||
state.backModal = false;
|
||||
reget();
|
||||
state.nodata = true;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("撤回失败", err);
|
||||
|
||||
Reference in New Issue
Block a user