rt-sim-training-client/src/api/statistics.js

90 lines
1.5 KiB
JavaScript
Raw Normal View History

2019-08-15 14:28:31 +08:00
import request from '@/utils/request';
// 课程列表
export function getLessonList(code) {
return request({
url: '/api/stats/lesson/list',
method: 'get',
params: {
wmCode: code
}
});
}
// 课程内实训数据统计
export function getLessonTimeChart(data) {
return request({
url: `/api/stats/lesson/${data.id}/stats`,
method: 'get',
params: {
wmCode: data.code
}
});
}
// 查询参与考试的课程列表
export function getExamTree(code) {
return request({
url: '/api/stats/exam/lessonList',
method: 'get',
params: {
wmCode: code
}
});
}
// 查询参与考试的试题列表
export function getstatsExamList(data) {
return request({
url: `/api/stats/exam/${data.lessonId}/list`,
method: 'get',
params: {
wmCode: data.code
}
});
}
// 个人考试数据统计
export function getExamChart(data) {
return request({
url: `/api/stats/exam/${data.examId}/stats`,
method: 'get',
params: {
wmCode: data.code
}
});
}
2019-08-15 18:04:23 +08:00
// 个人关注地图数据统计列表
export function getRelevanceMapList(code) {
2019-08-15 14:28:31 +08:00
return request({
2019-08-15 18:04:23 +08:00
url: `/api/user/subscribe`,
2019-08-15 14:28:31 +08:00
method: 'get',
params: {
wmCode: code
}
});
}
2019-08-15 18:04:23 +08:00
// 仿真地图下产品列表
export function getSimulationPrdList(mapId, code) {
2019-08-15 14:28:31 +08:00
return request({
2019-08-15 18:04:23 +08:00
url: `/api/stats/simulation/${mapId}/prdList`,
2019-08-15 14:28:31 +08:00
method: 'get',
params: {
2019-08-15 18:04:23 +08:00
wmCode: code
2019-08-15 14:28:31 +08:00
}
});
}
2019-08-15 18:04:23 +08:00
2019-08-15 14:28:31 +08:00
// 个人仿真数据统计
export function getSimulationTimeChart(data) {
return request({
url: `/api/stats/simulation/${data.mapId}/stats`,
method: 'get',
params: {
wmCode: data.code
}
});
}