mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
73 lines
1.5 KiB
JavaScript
73 lines
1.5 KiB
JavaScript
/**我的授课记录*/
|
|
import ajax from '@/api/boe/boeApiAjax.js'
|
|
import axios from 'axios'
|
|
import { getToken } from '@/utils/token'
|
|
const baseURL = process.env.VUE_APP_BOE_BASE_API;
|
|
|
|
|
|
|
|
/**
|
|
* 导出授课记录
|
|
*
|
|
* @param {Object} data
|
|
*/
|
|
const courseRecordExport = function(data) {
|
|
return axios.request({
|
|
baseURL,
|
|
url: '/b1/system/teacher/teacher-course-export',
|
|
method: 'post',
|
|
data:data,
|
|
headers:{'Content-Type':'application/json;charset=utf-8'},
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 导出课程下的学员信息
|
|
*
|
|
*/
|
|
const exportStudentOfCourse = function(userId,courseId) {
|
|
return axios.request({
|
|
baseURL,
|
|
url: '/b1/system/teacher/teacher-course-student-export?userId='+userId+'&courseId='+courseId,
|
|
method: 'post',
|
|
headers:{'Content-Type':'application/json;charset=utf-8'},
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 导出教师下的所有授课记录下的学员信息
|
|
*
|
|
*/
|
|
const exportStudentOfTearcher = function(userId) {
|
|
return axios.request({
|
|
baseURL,
|
|
url: '/b1/system/teacher/teacher-course-student-export?userId='+userId,
|
|
method: 'post',
|
|
headers:{'Content-Type':'application/json;charset=utf-8'},
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* 授课记录列表
|
|
*
|
|
* @param {Object} data
|
|
*/
|
|
const courseRecordList = function(data) {
|
|
return ajax.postJson('/b1/system/teacher/teacher-course-list',data);
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
courseRecordExport,
|
|
courseRecordList,
|
|
exportStudentOfCourse,
|
|
exportStudentOfTearcher
|
|
|
|
}
|