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 b0e11153c..b28c8579a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -167,6 +167,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'); @@ -618,6 +619,11 @@ export const publicAsyncRoute = [ component: GradeList, hidden: true }, + { + path: 'gradeStatistics', + component: GradeStatistics, + hidden: true + }, { path: 'createRule', component: CreateRule, @@ -919,14 +925,14 @@ export const asyncRouter = [ i18n: 'router.mapGroup' } }, - { //发布模型管理 + { // 发布模型管理 path: 'userModel', component: PublishModel, meta: { i18n: 'router.userModel' - }, + } }, - { //模型历史版本 + { // 模型历史版本 path: 'userModel/history', name: 'modelHistory', component: PublishModelHistory, 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 0424ce711..396c06597 100644 --- a/src/views/organization/examManage/index.vue +++ b/src/views/organization/examManage/index.vue @@ -122,13 +122,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, @@ -180,6 +185,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' } }); },