mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
提交文件
This commit is contained in:
42
src/api/boe/courseRecord.js
Normal file
42
src/api/boe/courseRecord.js
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
/**我的授课记录*/
|
||||||
|
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} kid
|
||||||
|
*/
|
||||||
|
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'
|
||||||
|
})
|
||||||
|
|
||||||
|
// return ajax.postJson('/b1/system/teacher/teacher-course-export',data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 授课记录列表
|
||||||
|
*
|
||||||
|
* @param {Object} kid
|
||||||
|
*/
|
||||||
|
const courseRecordList = function(data) {
|
||||||
|
return ajax.postJson('/b1/system/teacher/teacher-course-list',data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
courseRecordExport,
|
||||||
|
courseRecordList
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user