From f9cfd0f83b0a595bcaea4b3634d70da8f73af3ae Mon Sep 17 00:00:00 2001 From: zty Date: Tue, 21 May 2024 17:25:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E8=80=83=E8=AF=95?= =?UTF-8?q?=E6=97=B6=E9=80=89=E6=8B=A9=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/api/edu.js | 1 - client/src/api/exam.js | 18 ++- client/src/api/userexam.js | 8 + client/src/views/exam/index.vue | 92 ++++++++++- .../informatiomCollect/qualityCommend.vue | 1 - client/src/views/system/userExam.vue | 153 ++++++++++-------- server/apps/exam/models.py | 4 +- server/apps/exam/views.py | 7 - 8 files changed, 201 insertions(+), 83 deletions(-) diff --git a/client/src/api/edu.js b/client/src/api/edu.js index 7a7af7a..b6000d9 100644 --- a/client/src/api/edu.js +++ b/client/src/api/edu.js @@ -51,7 +51,6 @@ export function createCertificate(data) { - //课程 export function getCourseList(query) { return request({ diff --git a/client/src/api/exam.js b/client/src/api/exam.js index 1e374b5..5640707 100644 --- a/client/src/api/exam.js +++ b/client/src/api/exam.js @@ -210,4 +210,20 @@ export function deleteExamRecord(id) { url: `/exam/examrecord/${id}/`, method: 'delete' }) -} \ No newline at end of file +} + +// 获取课程列表 +export function getCourse() { + return request({ + url: `/edu/course/`, + method: 'get' + }) +} + +// 获取当前部门下的所有部门 +export function getDepartment() { + return request({ + url: `/system/organization/sub/`, + method: 'get' + }) +} diff --git a/client/src/api/userexam.js b/client/src/api/userexam.js index 6cf0dbd..7333cbc 100644 --- a/client/src/api/userexam.js +++ b/client/src/api/userexam.js @@ -48,4 +48,12 @@ export function changePassword(data) { method: 'put', data }) +} + +export function impData(data) { + return request({ + url: '/system/userexam/imp/', + method: 'post', + data + }) } \ No newline at end of file diff --git a/client/src/views/exam/index.vue b/client/src/views/exam/index.vue index fc6cfcb..38c258c 100644 --- a/client/src/views/exam/index.vue +++ b/client/src/views/exam/index.vue @@ -53,6 +53,12 @@ {{ scope.row.create_admin_username }} + + + + + +