From 643467f9d2df6843ad7d74c5eef716c7d3b6efd3 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 13 Apr 2022 17:26:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=8D=95=E6=AC=A1=E8=80=83?= =?UTF-8?q?=E8=AF=95=E6=88=90=E7=BB=A9=20=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/management/userexam.js | 8 ++ src/router/index.js | 6 ++ .../examManage/gradeStatistics.vue | 92 +++++++++++++++++++ src/views/organization/examManage/index.vue | 10 +- 4 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 src/views/organization/examManage/gradeStatistics.vue diff --git a/src/api/management/userexam.js b/src/api/management/userexam.js index 1f466f37a..36908ee4c 100644 --- a/src/api/management/userexam.js +++ b/src/api/management/userexam.js @@ -66,3 +66,11 @@ export function getClassGradeList(examId, params) { params }); } + +/** 查询组织学生单次考试成绩曲线 */ +export function getClassGradeStatistic(orgId, examId) { + return request({ + url: `/api/userExam/curve/${orgId}/${examId}`, + method: 'get' + }); +} diff --git a/src/router/index.js b/src/router/index.js index 749b8ded2..6add0a02e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -171,6 +171,7 @@ const SortLesson = () => import('@/views/organization/draftLessonManage/sortLess const StudentManage = () => import('@/views/organization/classManage/studentManage/index'); const DurationView = () => import('@/views/organization/classManage/durationView'); const GradeList = () => import('@/views/organization/examManage/gradeList'); +const GradeStatistics = () => import('@/views/organization/examManage/gradeStatistics'); const CreateRule = () => import('@/views/organization/ruleManage/createRule'); const TotalGrade = () => import('@/views/organization/ruleManage/totalGrade'); const InfoLessonDetail = () => import('@/views/organization/lessonManage/lessonDetail'); @@ -652,6 +653,11 @@ export const publicAsyncRoute = [ component: GradeList, hidden: true }, + { + path: 'gradeStatistics', + component: GradeStatistics, + hidden: true + }, { path: 'createRule', component: CreateRule, diff --git a/src/views/organization/examManage/gradeStatistics.vue b/src/views/organization/examManage/gradeStatistics.vue new file mode 100644 index 000000000..85ec225ce --- /dev/null +++ b/src/views/organization/examManage/gradeStatistics.vue @@ -0,0 +1,92 @@ + + + diff --git a/src/views/organization/examManage/index.vue b/src/views/organization/examManage/index.vue index 186b195a7..ff494feba 100644 --- a/src/views/organization/examManage/index.vue +++ b/src/views/organization/examManage/index.vue @@ -132,13 +132,18 @@ export default { { type: 'button', title: this.$t('global.operate'), - width: '250', + width: '350', buttons: [ { name: '成绩查询', handleClick: this.handleQueryGrade, type: 'primary' }, + { + name: '成绩统计', + handleClick: this.handleGradeStatistics, + type: 'success' + }, { name: '编辑', handleClick: this.handleEditExam, @@ -190,6 +195,9 @@ export default { handleQueryGrade(index, row) { this.$router.push({ path: '/info/gradeList', query: { examId: row.id, name: row.name } }); }, + handleGradeStatistics(index, row) { + this.$router.push({ path: '/info/gradeStatistics', query: { examId: row.id, name: row.name } }); + }, handleEditExam(index, row) { this.$router.push({ path: `/info/examRule/draft/edit/${row.id}/0`, query: { source: 'org' } }); },