Files
learning-system-portal/src/api/modules/question.js
2022-05-29 18:56:34 +08:00

40 lines
1.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 试题
import ajax from '@/utils/xajax.js'
// 分页查询
// pageIndex 第几页
// pageSize 一页展示多少行
// type类型 title 题干 // ownership22级资源归属
// ownership11级资源归属
// ownership33级资源归属
const querylist = function(query) {
return ajax.post('/xboe/m/exam/question/page', query);
}
// 添加,参数给截图
const save = function(data) {
return ajax.postJson('/xboe/m/exam/question/save', data);
}
// 详情
// 参数 id
const detail = function(id) {
return ajax.get('/xboe/m/exam/question/detail?id=' + id);
}
// 修改 参数给截图
const update = function(data) {
return ajax.postJson('/xboe/m/exam/question/update', data);
}
// 删除 id
const del = function(id) {
return ajax.get('/xboe/m/exam/question/delete?id=' + id);
}
// 查所有试题
const query=function(){
return ajax.get('/xboe/m/exam/question/query');
}
export default {
detail,
update,
del,
save,
querylist,
query
}