|
@@ -375,6 +375,7 @@ import {
|
|
|
targetReportDetail,
|
|
|
exportTargetReport,
|
|
|
targetReportSave,
|
|
|
+ targetReportChangeCheck,
|
|
|
} from "../api";
|
|
|
import { downloadByApi } from "@/plugins/download";
|
|
|
import { calcSum } from "@/plugins/utils";
|
|
@@ -452,6 +453,7 @@ export default {
|
|
|
this.parseStudentScoreTable(examStudentList);
|
|
|
},
|
|
|
async initData() {
|
|
|
+ await this.checkChange();
|
|
|
const data = await targetReportDetail({
|
|
|
examId: this.course.examId,
|
|
|
courseCode: this.course.courseCode,
|
|
@@ -459,6 +461,22 @@ export default {
|
|
|
});
|
|
|
this.buildData(data);
|
|
|
},
|
|
|
+ async checkChange() {
|
|
|
+ const res = await targetReportChangeCheck({
|
|
|
+ examId: this.course.examId,
|
|
|
+ courseCode: this.course.courseCode,
|
|
|
+ paperNumber: this.course.paperNumber,
|
|
|
+ });
|
|
|
+
|
|
|
+ if (res.courseTargetChange) {
|
|
|
+ this.$notify.warning("课程目标与已保存不一致,请重新设置权重!");
|
|
|
+ }
|
|
|
+ if (res.evaluationChange) {
|
|
|
+ this.$notify.warning(
|
|
|
+ "评价方式与已保存不一致,请重新设置权重及导入新的平时成绩!"
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
parsePaperStructs(questionInfo) {
|
|
|
if (!questionInfo || !questionInfo.length) return;
|
|
|
|