-- 学员数

This commit is contained in:
yuping
2022-12-19 21:01:13 +08:00
parent 7fa58cdea1
commit f8650e799a
3 changed files with 12 additions and 32 deletions

View File

@@ -1047,25 +1047,13 @@ export default {
state.projectTasks = res.data.data.tasks;
});
//获取学员总数
let obj = {
pageNo: 0,
pageSize: 0,
projectId: object.projectId,
};
api
.projectStudent(obj)
.then((res) => {
if (res.data.code === 200) {
// console.log("res", res.data);
state.projectStudentsNum = res.data.data.total
? res.data.data.total
: 0;
api.projectStudentCount({
pid: object.projectId,
type:1
}).then((res) => {
state.projectStudentsNum = res.data.data
state.projectPubLoading = false;
}
})
.catch((err) => {
console.log("获取学员人数失败", err);
});
//获取阶段及任务总数
};
//确认发布项目