diff --git a/client/dist/index.html b/client/dist/index.html index 871743e..7c0cbb3 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -1 +1 @@ -vue Admin Template
\ No newline at end of file +vue Admin Template
\ No newline at end of file diff --git a/client/src/api/edu.js b/client/src/api/edu.js index 00f9320..d644876 100644 --- a/client/src/api/edu.js +++ b/client/src/api/edu.js @@ -40,4 +40,43 @@ export function createCertificate(data) { url: `/edu/certificate/${id}/`, method: 'get' }) + } + + + + + //课程 +export function getCourseList(query) { + return request({ + url: '/edu/course/', + method: 'get', + params: query + }) +} +export function createCourse(data) { + return request({ + url: '/edu/course/', + method: 'post', + data + }) + } + export function updateCourse(id, data) { + return request({ + url: `/edu/course/${id}/`, + method: 'put', + data + }) + } + + export function deleteCourse(id) { + return request({ + url: `/edu/course/${id}/`, + method: 'delete' + }) + } + export function getCourse(id) { + return request({ + url: `/edu/course/${id}/`, + method: 'get' + }) } \ No newline at end of file diff --git a/client/src/router/index.js b/client/src/router/index.js index 1da8cda..3e950e1 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -452,6 +452,12 @@ export const asyncRoutes = [ meta: { title: '视频播放统计', perms: ['video_view'] }, // hidden: true }, + { + path: 'course', + name: 'course', + component: () => import('@/views/testvideo/course.vue'), + meta: { title: '课程列表'} + }, ] }, { diff --git a/client/src/views/testvideo/certificate.vue b/client/src/views/testvideo/certificate.vue index 0ffb9aa..9494aab 100644 --- a/client/src/views/testvideo/certificate.vue +++ b/client/src/views/testvideo/certificate.vue @@ -2,6 +2,9 @@
+ + + - - + + + + - 内审员 - - - - - + + +