|
@@ -540,7 +540,8 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
this.$notify({ type: "success", message: "保存成功" });
|
|
this.$notify({ type: "success", message: "保存成功" });
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: "/index/extract_paper_rule/" + this.extractConfig.examId
|
|
|
|
|
|
+ path:
|
|
|
|
+ "/questions/extract_paper_rule/" + this.extractConfig.examId
|
|
});
|
|
});
|
|
},
|
|
},
|
|
response => {
|
|
response => {
|
|
@@ -579,7 +580,6 @@ export default {
|
|
},
|
|
},
|
|
//校验调卷规则数据
|
|
//校验调卷规则数据
|
|
verificationData() {
|
|
verificationData() {
|
|
- debugger;
|
|
|
|
let myExamPaperList = [];
|
|
let myExamPaperList = [];
|
|
let examPaperList = this.examPaperList;
|
|
let examPaperList = this.examPaperList;
|
|
for (let i = 0; i < examPaperList.length; i++) {
|
|
for (let i = 0; i < examPaperList.length; i++) {
|
|
@@ -608,8 +608,10 @@ export default {
|
|
break;
|
|
break;
|
|
} else {
|
|
} else {
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
- document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
- "none";
|
|
|
|
|
|
+ if (document.getElementById("errorMsg_" + i + "_" + j)) {
|
|
|
|
+ document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
+ "none";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
var reg = /^([1]?\d{1,2})$/;
|
|
var reg = /^([1]?\d{1,2})$/;
|
|
if (
|
|
if (
|
|
@@ -627,8 +629,10 @@ export default {
|
|
break;
|
|
break;
|
|
} else {
|
|
} else {
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
- document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
- "none";
|
|
|
|
|
|
+ if (document.getElementById("errorMsg_" + i + "_" + j)) {
|
|
|
|
+ document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
+ "none";
|
|
|
|
+ }
|
|
weightCount += parseInt(_paperInfoList[j].weight);
|
|
weightCount += parseInt(_paperInfoList[j].weight);
|
|
selectedPaperIds.push(_paperInfoList[j].paper.id);
|
|
selectedPaperIds.push(_paperInfoList[j].paper.id);
|
|
myExamPaperList.push({
|
|
myExamPaperList.push({
|