|
@@ -355,6 +355,7 @@ export default {
|
|
quesLoading: false,
|
|
quesLoading: false,
|
|
formSearch: {
|
|
formSearch: {
|
|
courseNo: "",
|
|
courseNo: "",
|
|
|
|
+ courseName: "",
|
|
level: "",
|
|
level: "",
|
|
name: ""
|
|
name: ""
|
|
},
|
|
},
|
|
@@ -421,8 +422,17 @@ export default {
|
|
this.currentPage = val;
|
|
this.currentPage = val;
|
|
this.searchImportPaper();
|
|
this.searchImportPaper();
|
|
},
|
|
},
|
|
|
|
+ getCourseName(courseNo) {
|
|
|
|
+ for (let course of this.courseList) {
|
|
|
|
+ if (course.code == courseNo) {
|
|
|
|
+ this.formSearch.courseName = course.name;
|
|
|
|
+ this.formSearch.level = course.level;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
editImportPaper(row) {
|
|
editImportPaper(row) {
|
|
//缓存查询对象
|
|
//缓存查询对象
|
|
|
|
+ this.getCourseName(this.formSearch.courseNo);
|
|
sessionStorage.setItem("import_paper", JSON.stringify(this.formSearch));
|
|
sessionStorage.setItem("import_paper", JSON.stringify(this.formSearch));
|
|
sessionStorage.setItem("import_paper_currentPage", this.currentPage);
|
|
sessionStorage.setItem("import_paper_currentPage", this.currentPage);
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -754,7 +764,7 @@ export default {
|
|
? 1
|
|
? 1
|
|
: parseInt(sessionStorage.getItem("import_paper_currentPage"));
|
|
: parseInt(sessionStorage.getItem("import_paper_currentPage"));
|
|
}
|
|
}
|
|
- this.getCourses(this.formSearch.courseNo);
|
|
|
|
|
|
+ this.getCourses(this.formSearch.courseName);
|
|
this.searchImportPaper();
|
|
this.searchImportPaper();
|
|
}
|
|
}
|
|
},
|
|
},
|