|
@@ -549,6 +549,12 @@ export default {
|
|
this.$notify({ type: "error", message: response.data.desc });
|
|
this.$notify({ type: "error", message: response.data.desc });
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
+ } else {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "试卷类型没有制定试卷",
|
|
|
|
+ type: "error",
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//音频播放次数校验
|
|
//音频播放次数校验
|
|
@@ -601,17 +607,18 @@ export default {
|
|
// $(".errorMsg_" + i + "_" + j)
|
|
// $(".errorMsg_" + i + "_" + j)
|
|
// .text("试卷不能为空")
|
|
// .text("试卷不能为空")
|
|
// .show();
|
|
// .show();
|
|
- document.getElementById("errorMsg_" + i + "_" + j).innerHTML =
|
|
|
|
- "试卷不能为空";
|
|
|
|
- document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
- "block";
|
|
|
|
|
|
+ document.getElementsByClassName(
|
|
|
|
+ "errorMsg_" + i + "_" + j
|
|
|
|
+ )[0].innerHTML = "试卷不能为空";
|
|
|
|
+ document.getElementsByClassName(
|
|
|
|
+ "errorMsg_" + i + "_" + j
|
|
|
|
+ )[0].style.display = "block";
|
|
break;
|
|
break;
|
|
} else {
|
|
} else {
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
- if (document.getElementById("errorMsg_" + i + "_" + j)) {
|
|
|
|
- document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
- "none";
|
|
|
|
- }
|
|
|
|
|
|
+ document.getElementsByClassName(
|
|
|
|
+ "errorMsg_" + i + "_" + j
|
|
|
|
+ )[0].style.display = "none";
|
|
}
|
|
}
|
|
var reg = /^([1]?\d{1,2})$/;
|
|
var reg = /^([1]?\d{1,2})$/;
|
|
if (
|
|
if (
|
|
@@ -622,16 +629,19 @@ export default {
|
|
// $(".errorMsg_" + i + "_" + j)
|
|
// $(".errorMsg_" + i + "_" + j)
|
|
// .text("请输入1-100的整数")
|
|
// .text("请输入1-100的整数")
|
|
// .show();
|
|
// .show();
|
|
- document.getElementById("errorMsg_" + i + "_" + j).innerHTML =
|
|
|
|
- "请输入1-100的整数";
|
|
|
|
- document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
- "block";
|
|
|
|
|
|
+ document.getElementsByClassName(
|
|
|
|
+ "errorMsg_" + i + "_" + j
|
|
|
|
+ )[0].innerHTML = "请输入1-100的整数";
|
|
|
|
+ document.getElementsByClassName(
|
|
|
|
+ "errorMsg_" + i + "_" + j
|
|
|
|
+ )[0].style.display = "block";
|
|
break;
|
|
break;
|
|
} else {
|
|
} else {
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
//$(".errorMsg_" + i + "_" + j).hide();
|
|
- if (document.getElementById("errorMsg_" + i + "_" + j)) {
|
|
|
|
- document.getElementById("errorMsg_" + i + "_" + j).style.display =
|
|
|
|
- "none";
|
|
|
|
|
|
+ if (document.getElementsByClassName("errorMsg_" + i + "_" + j)) {
|
|
|
|
+ document.getElementsByClassName(
|
|
|
|
+ "errorMsg_" + i + "_" + j
|
|
|
|
+ )[0].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);
|
|
@@ -671,8 +681,6 @@ export default {
|
|
},
|
|
},
|
|
//返回
|
|
//返回
|
|
back() {
|
|
back() {
|
|
- console.log("aaa");
|
|
|
|
- console.log("this.isInsert:", this.isInsert);
|
|
|
|
if (this.isInsert) {
|
|
if (this.isInsert) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/questions/extract_paper_rule/1"
|
|
path: "/questions/extract_paper_rule/1"
|