shikeying
2023-05-08 83efa8f1ebd3ad80dfb5078a10caf9fcc4499dc8
src/api/etaa/question_bank.js
@@ -24,14 +24,14 @@
    method: 'get'
  })
}
//
// // 查询部门详细
// export function getDept(deptId) {
//   return request({
//     url: '/system/dept/view/' + deptId,
//     method: 'get'
//   })
// }
// 查询添加试题,选择的分类信息。2023-05-02
export function getCatalogInfo(catalogId) {
  return request({
    url: '/etaa/question_bank/select/catalogInfo/' + catalogId,
    method: 'get'
  })
}
//
// // 查询部门下拉树结构
// export function treeselect(deptId) {
@@ -42,23 +42,22 @@
//   })
// }
//
// // 根据角色ID查询部门树结构
// export function roleDeptTreeselect(roleId) {
//   return request({
//     url: '/system/dept/roleDeptTreeselect/' + roleId,
//     method: 'get'
//   })
// }
//
// // 新增部门
// export function addDept(data) {
//   return request({
//     url: '/system/dept/add',
//     method: 'post',
//     data: data
//   })
// }
//
// 新增
export function add(data) {
  return request({
    url: '/etaa/question_bank/add',
    method: 'post',
    data: data
  })
}
// 清空题库,测试用
export function clear() {
  return request({
    url: '/etaa/question_bank/clear',
    method: 'get'
  })
}
// // 修改部门
// export function updateDept(data) {
//   return request({
@@ -68,10 +67,4 @@
//   })
// }
//
// // 删除部门
// export function delDept(deptId) {
//   return request({
//     url: '/system/dept/remove/' + deptId,
//     method: 'get'
//   })
// }