From baa66f7097d991a2e6214468d37bd47b9588f542 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 1 Sep 2023 17:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=81=E4=B9=A6=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/api/edu.js | 43 +++ client/src/router/index.js | 6 + client/src/views/testvideo/certificate.vue | 366 +++++++++++++++++++++ 3 files changed, 415 insertions(+) create mode 100644 client/src/api/edu.js create mode 100644 client/src/views/testvideo/certificate.vue diff --git a/client/src/api/edu.js b/client/src/api/edu.js new file mode 100644 index 0000000..00f9320 --- /dev/null +++ b/client/src/api/edu.js @@ -0,0 +1,43 @@ +import request from '@/utils/request' + +//获取列表 +export function getCertificateList(query) { + return request({ + url: '/edu/certificate/', + method: 'get', + params: query + }) +} +export function createCertificate(data) { + return request({ + url: '/edu/certificate/', + method: 'post', + data + }) + } + export function updateCertificate(id, data) { + return request({ + url: `/edu/certificate/${id}/`, + method: 'put', + data + }) + } + export function impCertificate(data) { + return request({ + url: '/edu/certificate/imp/', + method: 'post', + data + }) + } + export function deleteCertificate(id) { + return request({ + url: `/edu/certificate/${id}/`, + method: 'delete' + }) + } + export function getCertificate(id) { + return request({ + url: `/edu/certificate/${id}/`, + method: 'get' + }) + } \ No newline at end of file diff --git a/client/src/router/index.js b/client/src/router/index.js index 14359e0..3bddf2b 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -408,6 +408,12 @@ export const asyncRoutes = [ meta: { title: '视频培训', icon: 'video', perms: ['video_views'] }, alwaysShow: true, children: [ + { + path: 'certificate', + name: 'certificate', + component: () => import('@/views/testvideo/certificate.vue'), + meta: { title: '证书列表', perms: ['video_view'] } + }, { path: 'videolist', name: 'videolist', diff --git a/client/src/views/testvideo/certificate.vue b/client/src/views/testvideo/certificate.vue new file mode 100644 index 0000000..e6f1f51 --- /dev/null +++ b/client/src/views/testvideo/certificate.vue @@ -0,0 +1,366 @@ + + +