Browse Source

增加图片下载按钮

ting.yin 6 years ago
parent
commit
77a8c6dea5

+ 5 - 0
stmms-web/src/main/webapp/WEB-INF/views/modules/report/reportSubjectClass.jsp

@@ -125,6 +125,11 @@
             legend: {
                 data: ['平均分','最高分','最低分','及格率','优秀率']
             },
+            toolbox: {
+                feature : {
+                    saveAsImage : {show: true}
+                }
+            },
             dataZoom: [{
                 type: 'slider',
                 show: true,

+ 5 - 0
stmms-web/src/main/webapp/WEB-INF/views/modules/report/reportSubjectCollege.jsp

@@ -131,6 +131,11 @@ $("#export-button").click(function(){
             legend: {
                 data: ['平均分','最高分','最低分','优秀率','及格率']
             },
+            toolbox: {
+                feature : {
+                    saveAsImage : {show: true}
+                }
+            },
             dataZoom: [{
                 type: 'slider',
                 show: true,

+ 6 - 1
stmms-web/src/main/webapp/WEB-INF/views/modules/report/reportSubjectGroup.jsp

@@ -160,6 +160,11 @@ $('#subject-select').trigger('change');
             legend: {
                 data: ['满分', '最高分', '最低分', '平均分', '标准差']
             },
+            toolbox: {
+                feature : {
+                    saveAsImage : {show: true}
+                }
+            },
             dataZoom: [{
                 type: 'slider',
                 show: true,
@@ -202,7 +207,7 @@ $('#subject-select').trigger('change');
                 type: 'line',
                 data: avgScores
             }, {
-                name: '标差',
+                name: '标差',
                 type: 'line',
                 yAxisIndex: 1,
                 data: sds

+ 5 - 0
stmms-web/src/main/webapp/WEB-INF/views/modules/report/reportSubjectQuestion.jsp

@@ -134,6 +134,11 @@ $("#export-button").click(function(){
             legend: {
                 data: ['平均分','得分率','满分率']
             },
+            toolbox: {
+                feature : {
+                    saveAsImage : {show: true}
+                }
+            },
             dataZoom: [{
                 type: 'slider',
                 show: true,

+ 5 - 0
stmms-web/src/main/webapp/WEB-INF/views/modules/report/reportSubjectRange.jsp

@@ -140,6 +140,11 @@ $("#export-button").click(function(){
             legend: {
                 data: [title]
             },
+            toolbox: {
+                feature : {
+                    saveAsImage : {show: true}
+                }
+            },
             xAxis: {
                 data: ["0-49占比(%)", "50-59占比(%)", "60-69占比(%)", "70-79占比(%)", "80-89占比(%)", "90-100占比(%)"]
             },

+ 6 - 1
stmms-web/src/main/webapp/WEB-INF/views/modules/report/reportSubjectTeacher.jsp

@@ -139,7 +139,12 @@ $("#export-button").click(function(){
             },
             tooltip: {},
             legend: {
-                data: ['最高分','最低分','平均分','相对平均分','优秀率','及格率']
+                data: ['最高分','最低分','平均分','平均相对分','优秀率','及格率']
+            },
+            toolbox: {
+                feature : {
+                    saveAsImage : {show: true}
+                }
             },
             dataZoom: [{
                 type: 'slider',

+ 6 - 1
stmms-web/src/main/webapp/WEB-INF/views/modules/report/reportSubjectTeacherClass.jsp

@@ -114,7 +114,7 @@ $("#export-button").click(function(){
             },
             tooltip: {},
             legend: {
-                data: ['最高分','最低分','平均分','相对平均分','优秀率','及格率']
+                data: ['最高分','最低分','平均分','平均相对分','优秀率','及格率']
             },
             dataZoom: [{
                 type: 'slider',
@@ -125,6 +125,11 @@ $("#export-button").click(function(){
                 start: 10,
                 end: 90 //初始化滚动条
             }],
+            toolbox: {
+                feature : {
+                    saveAsImage : {show: true}
+                }
+            },
             xAxis: {
                 axisLabel: {
                     interval:0,