trainingProgram.js 1.32 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
/*
 * @Author: 纪泽龙 jizelong@qq.com
 * @Date: 2022-09-23 11:02:24
 * @LastEditors: 纪泽龙 jizelong@qq.com
 * @LastEditTime: 2022-09-28 16:58:26
 * @FilePath: /danger-manage-web/src/api/educationPlanExam/trainingProgram.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
//培训计划管理


// 获取所有培训人员类型
export function getPersonnel(query) {
  return request({
    url: '/system/post/optionselect',
    method: 'get',
    params: query
  })
}
// 新增培训计划
export function addPlan(data) {
  return request({
    url: '/system/plan',
    method: 'post',
    data: data
  })
}

// 编辑培训计划
export function editPlan(data) {
  return request({
    url: '/system/plan',
    method: 'put',
    data: data
  })
}
// 培训计划列表
export function getPlanList(query) {
  return request({
    url: '/system/plan/list',
    method: 'get',
    params: query
  })
}

// 培训计划列表
export function deletePlan(query) {
  return request({
    url: '/system/plan/deleteOne',
    method: 'delete',
    params: query
  })
}
55 56 57 58 59 60
export function getPlan(query) {
  return request({
    url: '/system/plan/'+ query,
    method: 'get',
  })
}
耿迪迪's avatar
耿迪迪 committed
61 62