|
|
|
@ -65,14 +65,14 @@ export function getOrogramObjectiveApi() { |
|
|
|
|
// 获取课程列表
|
|
|
|
|
export const getCourseList = (params: any) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/course_objectives/list/' + params.id, |
|
|
|
|
url: '/api/course_objectives/list/' + params.id, |
|
|
|
|
params, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
// 添加分目标
|
|
|
|
|
export const addCourse = (data: any) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/objective_contents/addcontent', |
|
|
|
|
url: '/api/objective_contents/addcontent', |
|
|
|
|
method: 'POST', |
|
|
|
|
data, |
|
|
|
|
}) |
|
|
|
@ -80,7 +80,7 @@ export const addCourse = (data: any) => { |
|
|
|
|
// 编辑目标
|
|
|
|
|
export const editCourse = (data: any) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/objective_contents/update', |
|
|
|
|
url: '/api/objective_contents/update', |
|
|
|
|
method: 'PUT', |
|
|
|
|
data, |
|
|
|
|
}) |
|
|
|
@ -88,15 +88,15 @@ export const editCourse = (data: any) => { |
|
|
|
|
//删除课程目标
|
|
|
|
|
export const deleteCourse = (params: any) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/objective_contents/' + params.id, |
|
|
|
|
url: '/api/objective_contents/' + params.id, |
|
|
|
|
method: 'DELETE', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
// /objective_contents/
|
|
|
|
|
// /api/objective_contents/
|
|
|
|
|
// 获取详情
|
|
|
|
|
export const getCourseInfo = (params: any) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/objective_contents/' + params.id, |
|
|
|
|
url: '/api/objective_contents/' + params.id, |
|
|
|
|
method: 'get', |
|
|
|
|
params, |
|
|
|
|
}) |
|
|
|
|