diff --git a/src/api/management/userexam.js b/src/api/management/userexam.js
index b19683b4d..7dec56fc6 100644
--- a/src/api/management/userexam.js
+++ b/src/api/management/userexam.js
@@ -76,10 +76,34 @@ export function getClassGradeStatistic(orgId, examId) {
}
/** 查询组织学生单次考试成绩曲线 */
-export function getStuGradeStatistic() {
+export function getStuGradeStatistic(params) {
return request({
url: `/api/userExam/curve/personal`,
+ method: 'get',
+ params
+ });
+}
+
+/** 个人仿真数据统计 */
+export function getSimulationTimeChart(mapId) {
+ return request({
+ url: `/api/stats/simulation/${mapId}/stats`,
method: 'get'
});
}
+// 课程内实训数据统计
+export function getLessonTimeChart(id) {
+ return request({
+ url: `/api/stats/lesson/${id}/stats`,
+ method: 'get'
+ });
+}
+
+// 课程列表
+export function getLessonList() {
+ return request({
+ url: '/api/stats/lesson/list',
+ method: 'get'
+ });
+}
diff --git a/src/layout/components/Logout.vue b/src/layout/components/Logout.vue
index 4e39503e7..d3f4d65b8 100644
--- a/src/layout/components/Logout.vue
+++ b/src/layout/components/Logout.vue
@@ -53,6 +53,7 @@ export default {
},
isCGY() {
return getSessionStorage('project') === 'cgy';
+ // gzb
}
},
mounted() {
diff --git a/src/router/index.js b/src/router/index.js
index 59471c241..f103d84b2 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -172,6 +172,7 @@ const StudentManage = () => import('@/views/organization/classManage/studentMana
const DurationView = () => import('@/views/organization/classManage/durationView');
const GradeList = () => import('@/views/organization/examManage/gradeList');
const GradeStatistics = () => import('@/views/organization/examManage/gradeStatistics');
+const StudentGradeStatis = () => import('@/views/organization/studentStatistics/studentGradeStatis');
const StudentStatistics = () => import('@/views/organization/studentStatistics/index');
const CreateRule = () => import('@/views/organization/ruleManage/createRule');
const TotalGrade = () => import('@/views/organization/ruleManage/totalGrade');
@@ -664,6 +665,11 @@ export const publicAsyncRoute = [
component: StudentStatistics,
hidden: true
},
+ {
+ path: 'studentGradeStatis',
+ component: StudentGradeStatis,
+ hidden: true
+ },
{
path: 'createRule',
component: CreateRule,
diff --git a/src/views/organization/classManage/studentManage/index.vue b/src/views/organization/classManage/studentManage/index.vue
index b06a77ef2..4ff635e2c 100644
--- a/src/views/organization/classManage/studentManage/index.vue
+++ b/src/views/organization/classManage/studentManage/index.vue
@@ -70,6 +70,14 @@ export default {
showControl: (row) => {
return this.$route.query.creatorId == this.$store.state.user.id;
}
+ },
+ {
+ name: '成绩曲线',
+ handleClick: this.gradeStatistic,
+ type: 'success',
+ // showControl: (row) => {
+ // return this.$route.query.creatorId == this.$store.state.user.id;
+ // }
}
]
}
@@ -199,6 +207,16 @@ export default {
XLSX.utils.book_append_sheet(wb, ws, 'file');
XLSX.writeFile(wb, '学生信息模板' + '.xlsx');
},
+ gradeStatistic(index,row){
+ this.$router.push({ path: '/info/studentGradeStatis',
+ query: {
+ username: row.name,
+ departmentId: row.departmentId,
+ userId: row.userId,
+ orgRole: row.orgRole
+ }
+ });
+ },
removeStudent(index, row) {
const _that = this;
this.$confirm(`是否确认将${row.name}移出班级?`, this.$t('tip.hint'), {
diff --git a/src/views/organization/studentStatistics/examStatistic.vue b/src/views/organization/studentStatistics/examStatistic.vue
new file mode 100644
index 000000000..baa0dc607
--- /dev/null
+++ b/src/views/organization/studentStatistics/examStatistic.vue
@@ -0,0 +1,66 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/views/organization/studentStatistics/gradeStatistic.vue b/src/views/organization/studentStatistics/gradeStatistic.vue
new file mode 100644
index 000000000..8db1358c2
--- /dev/null
+++ b/src/views/organization/studentStatistics/gradeStatistic.vue
@@ -0,0 +1,151 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/views/organization/studentStatistics/index.vue b/src/views/organization/studentStatistics/index.vue
index 9185abd14..7de972361 100644
--- a/src/views/organization/studentStatistics/index.vue
+++ b/src/views/organization/studentStatistics/index.vue
@@ -1,28 +1,37 @@
\ No newline at end of file