From 2c8b6d26f0b66a64b6ff5cd7ef0c13a1c67981aa Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 2 Jan 2024 17:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=81=E4=B9=A6=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E5=8F=8A=E8=AF=BE=E7=A8=8B=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/dist/index.html | 2 +- client/src/api/edu.js | 39 ++++ client/src/router/index.js | 6 + client/src/views/testvideo/certificate.vue | 143 +++++++++++--- client/src/views/testvideo/course.vue | 206 +++++++++++++++++++++ 5 files changed, 373 insertions(+), 23 deletions(-) create mode 100644 client/src/views/testvideo/course.vue 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 @@
+ + + - - + + + + - 内审员 - - - - - + + +