// 试题 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 }