2022年5月29日从svn移到git

This commit is contained in:
daihh
2022-05-29 18:56:34 +08:00
commit b050613020
488 changed files with 68444 additions and 0 deletions

55
src/api/modules/test.js Normal file
View File

@@ -0,0 +1,55 @@
// 考试管理
import ajax from '@/utils/xajax.js'
// 分页查询
// 参数 pageIndex 第几页
// pageSize 每页展示条数
// keyWord 关键字
// published true或者false
// // ownership22级资源归属
// ownership11级资源归属
// ownership33级资源归属
//
const querylist = function(query) {
return ajax.post('/xboe/m/exam/test/pageList', query);
}
// 新建考试
// 参数这块我给截图
const save = function(data) {
return ajax.postJson('/xboe/m/exam/test/save', data);
}
// 修改考试,参数和添加一样
const update = function(data) {
return ajax.postJson('/xboe/m/exam/test/update', data);
}
// 考试详情
// 参数 考试id
const detail = function(id) {
return ajax.get('/xboe/m/exam/test/detail?id=' + id);
}
// 删除
const del = function(id) {
return ajax.get('/xboe/m/exam/test/delete?id=' + id);
}
/**
* 发布考试
* @param {Object} id
* @param {Object} publish 如果不传就是true
*/
const pulish = function(id, publish) {
let flag = true;
if (!publish) {
flag = publish;
}
return ajax.post('/xboe/m/exam/test/publish?id=' + id + '&publish=' + flag);
}
export default {
detail,
update,
del,
save,
querylist,
pulish
}