|
@@ -6,7 +6,7 @@
|
|
|
<el-form class="part-filter-form" :inline="true" :model="formSearch">
|
|
|
<el-form-item label="课程名称">
|
|
|
<el-select
|
|
|
- v-model="formSearch.courseNo"
|
|
|
+ v-model="formSearch.courseId"
|
|
|
filterable
|
|
|
:remote-method="getCourses"
|
|
|
remote
|
|
@@ -16,9 +16,9 @@
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in courseInfoSelect"
|
|
|
- :key="item.courseNo"
|
|
|
+ :key="item.courseId"
|
|
|
:label="item.courseInfo"
|
|
|
- :value="item.courseNo"
|
|
|
+ :value="item.courseId"
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -321,7 +321,7 @@ export default {
|
|
|
isClear: 0,
|
|
|
courseLoading: false,
|
|
|
formSearch: {
|
|
|
- courseNo: "",
|
|
|
+ courseId: "",
|
|
|
courseName: "",
|
|
|
creator: "",
|
|
|
lastModifyName: "",
|
|
@@ -374,10 +374,10 @@ export default {
|
|
|
var courseList = [];
|
|
|
for (let course of this.courseList) {
|
|
|
var courseInfo = course.name + "(" + course.code + ")";
|
|
|
- var courseNo = course.code;
|
|
|
+ var courseId = course.id;
|
|
|
var courseName = course.name;
|
|
|
courseList.push({
|
|
|
- courseNo: courseNo,
|
|
|
+ courseId: courseId,
|
|
|
courseInfo: courseInfo,
|
|
|
courseName: courseName,
|
|
|
});
|
|
@@ -395,16 +395,16 @@ export default {
|
|
|
this.initVue();
|
|
|
},
|
|
|
methods: {
|
|
|
- getCourseName(courseNo) {
|
|
|
+ getCourseName(courseId) {
|
|
|
for (let course of this.courseList) {
|
|
|
- if (course.code == courseNo) {
|
|
|
+ if (course.courseId == courseId) {
|
|
|
this.formSearch.courseName = course.name;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
editImportPaper(row) {
|
|
|
//缓存查询对象
|
|
|
- this.getCourseName(this.formSearch.courseNo);
|
|
|
+ this.getCourseName(this.formSearch.courseId);
|
|
|
sessionStorage.setItem("paper", JSON.stringify(this.formSearch));
|
|
|
sessionStorage.setItem("paper_currentPage", this.currentPage);
|
|
|
sessionStorage.setItem("question_back", "false");
|
|
@@ -679,7 +679,7 @@ export default {
|
|
|
},
|
|
|
resetForm() {
|
|
|
this.formSearch = {
|
|
|
- courseNo: "",
|
|
|
+ courseId: "",
|
|
|
courseName: "",
|
|
|
level: "",
|
|
|
name: "",
|
|
@@ -713,14 +713,6 @@ export default {
|
|
|
this.currentPage = 1;
|
|
|
this.searchPaper();
|
|
|
},
|
|
|
- getCourseObj(courseNo) {
|
|
|
- for (let course of this.courseList) {
|
|
|
- if (course.code == courseNo) {
|
|
|
- return course;
|
|
|
- }
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
selectChange(row) {
|
|
|
this.selectedPaperIds = [];
|
|
|
row.forEach((element) => {
|
|
@@ -757,7 +749,7 @@ export default {
|
|
|
if (this.isClear == 0 || !this.isClear) {
|
|
|
this.removeItem();
|
|
|
this.formSearch = {
|
|
|
- courseNo: "",
|
|
|
+ courseId: "",
|
|
|
courseName: "",
|
|
|
level: "",
|
|
|
name: "",
|