提交合并后的结果

This commit is contained in:
daihh
2022-12-28 18:14:35 +08:00
70 changed files with 5327 additions and 1277 deletions

View File

@@ -119,6 +119,40 @@ const ids=function (data){
return ajax.postJson('/xboe/m/boe/cases/ids',data);
}
/**
* 设置和取消优秀案例
* @param{
* id 案例id
* excellent true、设置 false 取消
* }
* */
const excellent=function(data){
return ajax.post('/xboe/m/boe/cases/excellent',data)
}
/**
*我的案例
* @param{
* pageIndex
* pageSize
* }
* */
const mylist=function (query){
return ajax.post('/xboe/m/boe/cases/mylist',query);
}
/**
* 导出
* @param{
* pageIndex
* pageSize
* }
* */
const exportCases=function (query){
return ajax.post('/xboe/m/boe/cases/export',query);
}
export default {
indexList,
queryList,
@@ -133,5 +167,8 @@ export default {
queryComments,
majorTypes,
details,
ids
ids,
excellent,
mylist,
exportCases
}

View File

@@ -281,6 +281,7 @@ const auditList = function(query) {
return ajax.post('/xboe/m/course/manage/audit-pagelist', query);
}
/**教师需要审核的课程列表*/
const teacherAuditList = function(query) {
return ajax.post('/xboe/m/course/audit/teacher-course', query);

View File

@@ -32,8 +32,8 @@ const update = function(data) {
}
/* 编辑详情 */
const detail = function(id) {
return ajax.get('/xboe/m/exam/paper/query?id=' + id);
}
return ajax.get('/xboe/m/exam/paper/query?id=' + id);
}
/* 试卷批量导入计算
* num 数目

13
src/api/modules/popup.js Normal file
View File

@@ -0,0 +1,13 @@
import ajax from '@/utils/xajax.js'
/**
* @param {Object} device 不包含的平台, 1表pc, 2表移动端
*/
const findByNoDevice=function (device){
return ajax.get('/xboe/m/popup/user?device='+device);
}
export default {
findByNoDevice
}

View File

@@ -9,6 +9,11 @@ const findByName = function(name) {
return ajax.get('/xboe/teacher/name?name=' + name);
}
const updateTeacher=function(data){
return ajax.postJson('/xboe/teacher/update-teacher',data);
}
/**
* 根据id得到教师的显示信息只是几个基本的显示字段
* @param {Object} id
@@ -17,6 +22,11 @@ const getInfoById = function(id) {
return ajax.get('/xboe/teacher/simple?id=' + id);
}
const detailTeacher=function (id){
return ajax.get('/xboe/teacher/detail-teacher?id='+id);
}
/**
* 分页查询
* @param {
@@ -213,5 +223,7 @@ export default {
start,
end,
exports,
syncUpdate
syncUpdate,
detailTeacher,
updateTeacher
}

View File

@@ -54,6 +54,16 @@ const exports=function (query){
return ajax.post('/xboe/m/exam/alone/answer/export',query,{responseType: 'blob'});
}
/**
* @param{
* id 考试id
* enabled true 上架 false 下架
* }
* */
const enabled=function(query){
return ajax.post('/xboe/m/exam/test/enabled',query);
}
export default {
detail,
update,
@@ -61,5 +71,6 @@ export default {
save,
querylist,
pulish,
exports
exports,
enabled
}