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 }} + + + + + +