|
@@ -222,7 +222,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
changeExam(examId) {
|
|
|
- this.form.examStageId = "";
|
|
|
+ // if (this.form.clearStageOnChangeExam != false) {
|
|
|
+ // this.form.examStageId = "";
|
|
|
+ // }
|
|
|
+
|
|
|
this.examList.forEach(exam => {
|
|
|
if (exam.id == examId) {
|
|
|
this.form.examType = exam.examType;
|
|
@@ -244,6 +247,7 @@ export default {
|
|
|
} else {
|
|
|
this.examStageList4Search = [];
|
|
|
this.examStageDisabled4Search = true;
|
|
|
+ this.form.examStageId = "";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -285,6 +289,16 @@ export default {
|
|
|
if ("search" == where) {
|
|
|
this.queryExamStages4SearchLoading = false;
|
|
|
this.examStageList4Search = response.data;
|
|
|
+ if (
|
|
|
+ !(
|
|
|
+ this.examStageList4Search.length > 0 &&
|
|
|
+ this.examStageList4Search.some(
|
|
|
+ p => p.id == this.form.examStageId
|
|
|
+ )
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ this.form.examStageId = "";
|
|
|
+ }
|
|
|
} else if ("insertOrUpdate" == where) {
|
|
|
this.queryExamStages4InsertOrUpdateLoading = false;
|
|
|
this.examStageList4InsertOrUpdate = response.data;
|