Sfoglia il codice sorgente

Merge branch 'master' into xbnl_20260904(应知应会区分学生/教职工)

dedsudiyu 16 ore fa
parent
commit
23e7174873

+ 3 - 1
src/views/safetyEducationExaminationNew/dataStatistics/components/dataReport/StudyHourStats.vue

@@ -206,7 +206,9 @@ export default {
           type: 'value',
           type: 'value',
           name: '学时',
           name: '学时',
           nameTextStyle: { fontSize: 11, color: '#aaa', padding: [0, 30, 0, 0] },
           nameTextStyle: { fontSize: 11, color: '#aaa', padding: [0, 30, 0, 0] },
-          max: 350,
+          max: (value) => {
+            return Math.ceil(value.max / 50) * 50
+          },
           interval: 50,
           interval: 50,
           splitLine: { lineStyle: { color: '#f0f0f0' } },
           splitLine: { lineStyle: { color: '#f0f0f0' } },
           axisLabel: { fontSize: 11, color: '#aaa' },
           axisLabel: { fontSize: 11, color: '#aaa' },

+ 3 - 1
src/views/safetyEducationExaminationNew/dataStatistics/components/regularExam/StudyHourStats.vue

@@ -206,7 +206,9 @@ export default {
           type: 'value',
           type: 'value',
           name: '学时',
           name: '学时',
           nameTextStyle: { fontSize: 11, color: '#aaa', padding: [0, 30, 0, 0] },
           nameTextStyle: { fontSize: 11, color: '#aaa', padding: [0, 30, 0, 0] },
-          max: 350,
+          max: (value) => {
+            return Math.ceil(value.max / 50) * 50
+          },
           interval: 50,
           interval: 50,
           splitLine: { lineStyle: { color: '#f0f0f0' } },
           splitLine: { lineStyle: { color: '#f0f0f0' } },
           axisLabel: { fontSize: 11, color: '#aaa' },
           axisLabel: { fontSize: 11, color: '#aaa' },