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