|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
//操作按钮
|
|
|
tableButton(type,row){
|
|
|
if(type == 1){
|
|
|
- this.$set(this, 'drawerTitle', '分级考试人员明细')
|
|
|
+ this.$set(this, 'drawerTitle', row.examTypeName+'人员明细')
|
|
|
let obj = {
|
|
|
adminType:this.adminType,
|
|
|
valueYear:this.valueYear,
|
|
|
@@ -272,7 +272,7 @@ export default {
|
|
|
}else{
|
|
|
obj.deptId = localStorage.getItem('deptId');
|
|
|
}
|
|
|
- self.download('/exam/elStatistics/exam/export', {...obj}, '考试情况统计.xlsx')
|
|
|
+ self.download('/exam/elStatistics/exam/grouped/list-export', {...obj}, '考试情况统计.xlsx')
|
|
|
}).catch(() => {})
|
|
|
},
|
|
|
//图表
|
|
|
@@ -355,6 +355,11 @@ export default {
|
|
|
],
|
|
|
yAxis: {
|
|
|
type: 'value',
|
|
|
+ max: (value) => {
|
|
|
+ // value.max 是三个 series 中的最大值,向上取整到 50 的倍数
|
|
|
+ return Math.ceil(value.max / 50) * 50
|
|
|
+ },
|
|
|
+ interval: 50,
|
|
|
splitLine: { lineStyle: { color: '#f0f0f0' } },
|
|
|
axisLabel: { fontSize: 11, color: '#aaa' },
|
|
|
axisLine: { show: false },
|
|
|
@@ -590,33 +595,34 @@ export default {
|
|
|
type:2,
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- for(let o=0;o<response.data.schoolStats.examTypeGroup.length;o++){
|
|
|
+ if(this.adminType == 1&&!this.queryParams.deptId){
|
|
|
+ for(let o=0;o<response.data.schoolStats.examTypeGroup.length;o++){
|
|
|
+ list.push({
|
|
|
+ deptName:response.data.schoolStats.deptName,
|
|
|
+ deptId:'',
|
|
|
+ examTypeId:response.data.schoolStats.examTypeGroup[o].examTypeId,
|
|
|
+ examTypeName:response.data.schoolStats.examTypeGroup[o].examTypeName,
|
|
|
+ expectedCount:response.data.schoolStats.examTypeGroup[o].expectedCount,
|
|
|
+ examCount:response.data.schoolStats.examTypeGroup[o].examCount,
|
|
|
+ passedCount:response.data.schoolStats.examTypeGroup[o].passedCount,
|
|
|
+ notPassedCount:response.data.schoolStats.examTypeGroup[o].notPassedCount,
|
|
|
+ absentCount:response.data.schoolStats.examTypeGroup[o].absentCount,
|
|
|
+ passRate:response.data.schoolStats.examTypeGroup[o].passRate,
|
|
|
+ type:3,
|
|
|
+ })
|
|
|
+ }
|
|
|
list.push({
|
|
|
deptName:response.data.schoolStats.deptName,
|
|
|
- deptId:'',
|
|
|
- examTypeId:response.data.schoolStats.examTypeGroup[o].examTypeId,
|
|
|
- examTypeName:response.data.schoolStats.examTypeGroup[o].examTypeName,
|
|
|
- expectedCount:response.data.schoolStats.examTypeGroup[o].expectedCount,
|
|
|
- examCount:response.data.schoolStats.examTypeGroup[o].examCount,
|
|
|
- passedCount:response.data.schoolStats.examTypeGroup[o].passedCount,
|
|
|
- notPassedCount:response.data.schoolStats.examTypeGroup[o].notPassedCount,
|
|
|
- absentCount:response.data.schoolStats.examTypeGroup[o].absentCount,
|
|
|
- passRate:response.data.schoolStats.examTypeGroup[o].passRate,
|
|
|
- type:3,
|
|
|
+ examTypeName:'汇总',
|
|
|
+ expectedCount:response.data.schoolStats.summary.expectedCount,
|
|
|
+ examCount:response.data.schoolStats.summary.examCount,
|
|
|
+ passedCount:response.data.schoolStats.summary.passedCount,
|
|
|
+ notPassedCount:response.data.schoolStats.summary.notPassedCount,
|
|
|
+ absentCount:response.data.schoolStats.summary.absentCount,
|
|
|
+ passRate:response.data.schoolStats.summary.passRate,
|
|
|
+ type:2,
|
|
|
})
|
|
|
}
|
|
|
- list.push({
|
|
|
- deptName:response.data.schoolStats.deptName,
|
|
|
- examTypeName:'汇总',
|
|
|
- expectedCount:response.data.schoolStats.summary.expectedCount,
|
|
|
- examCount:response.data.schoolStats.summary.examCount,
|
|
|
- passedCount:response.data.schoolStats.summary.passedCount,
|
|
|
- notPassedCount:response.data.schoolStats.summary.notPassedCount,
|
|
|
- absentCount:response.data.schoolStats.summary.absentCount,
|
|
|
- passRate:response.data.schoolStats.summary.passRate,
|
|
|
- type:2,
|
|
|
- })
|
|
|
this.$set(this,'dataList',list);
|
|
|
this.$set(this,'total',response.data.total);
|
|
|
});
|