mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 22:36:43 +08:00
2022年5月29日从svn移到git
This commit is contained in:
40
src/api/modules/question.js
Normal file
40
src/api/modules/question.js
Normal file
@@ -0,0 +1,40 @@
|
||||
// 试题
|
||||
import ajax from '@/utils/xajax.js'
|
||||
// 分页查询
|
||||
// pageIndex 第几页
|
||||
// pageSize 一页展示多少行
|
||||
// type类型 title 题干 // ownership2(2级资源归属)
|
||||
// ownership1(1级资源归属)
|
||||
// ownership3(3级资源归属)
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user