mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
fix:查询学习进度接口调整
This commit is contained in:
@@ -67,11 +67,12 @@ export function getStuProjectTaskList(data) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 学员项目进度明细查询
|
* 学员项目进度明细查询
|
||||||
* GET
|
* POST
|
||||||
* @param {string|number} projectId - 项目ID
|
* @param {string|number} params.studentId - 学员ID
|
||||||
|
* @param {string|number} params.projectId - 项目ID
|
||||||
*/
|
*/
|
||||||
export function getStuProjectProcess(projectId) {
|
export function getStuProjectProcess(data) {
|
||||||
return ajax.get(`/manageApi/stu/project/process?projectId=${projectId}`)
|
return ajax.postJson(`/manageApi/stu/project/getStuProjectTaskProgress`, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -334,9 +334,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async loadProcess() {
|
async loadProcess() {
|
||||||
if (!this.projectId) return;
|
if (!this.studentId || !this.projectId) return;
|
||||||
try {
|
try {
|
||||||
const res = await getStuProjectProcess(this.projectId);
|
const res = await getStuProjectProcess({
|
||||||
|
studentId: this.studentId,
|
||||||
|
projectId: this.projectId,
|
||||||
|
});
|
||||||
const data = res?.data || {};
|
const data = res?.data || {};
|
||||||
const total = Number(data.totalProgress ?? 0) | 0;
|
const total = Number(data.totalProgress ?? 0) | 0;
|
||||||
const required = Number(data.compulsoryProgress ?? 0) | 0;
|
const required = Number(data.compulsoryProgress ?? 0) | 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user