|
@@ -7,7 +7,7 @@
|
|
<el-form class="part-filter-form" :inline="true" :model="formSearch">
|
|
<el-form class="part-filter-form" :inline="true" :model="formSearch">
|
|
<el-form-item label="课程名称">
|
|
<el-form-item label="课程名称">
|
|
<el-select
|
|
<el-select
|
|
- v-model="formSearch.courseNo"
|
|
|
|
|
|
+ v-model="formSearch.courseId"
|
|
filterable
|
|
filterable
|
|
:remote-method="getCourses"
|
|
:remote-method="getCourses"
|
|
remote
|
|
remote
|
|
@@ -17,9 +17,9 @@
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in courseInfoSelect"
|
|
v-for="item in courseInfoSelect"
|
|
- :key="item.courseNo"
|
|
|
|
|
|
+ :key="item.courseId"
|
|
:label="item.courseInfo"
|
|
:label="item.courseInfo"
|
|
- :value="item.courseNo"
|
|
|
|
|
|
+ :value="item.courseId"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -304,9 +304,9 @@
|
|
placeholder="请输试卷名称"
|
|
placeholder="请输试卷名称"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="课程名称" prop="courseNo">
|
|
|
|
|
|
+ <el-form-item label="课程名称" prop="courseId">
|
|
<el-select
|
|
<el-select
|
|
- v-model="copyPaperForm.courseNo"
|
|
|
|
|
|
+ v-model="copyPaperForm.courseId"
|
|
class="dialog-input-width"
|
|
class="dialog-input-width"
|
|
:remote-method="getCourses"
|
|
:remote-method="getCourses"
|
|
remote
|
|
remote
|
|
@@ -317,9 +317,9 @@
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in courseInfoSelect"
|
|
v-for="item in courseInfoSelect"
|
|
- :key="item.courseNo"
|
|
|
|
|
|
+ :key="item.courseId"
|
|
:label="item.courseInfo"
|
|
:label="item.courseInfo"
|
|
- :value="item.courseNo"
|
|
|
|
|
|
+ :value="item.courseId"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -413,7 +413,7 @@ export default {
|
|
courseLoading: false,
|
|
courseLoading: false,
|
|
quesLoading: false,
|
|
quesLoading: false,
|
|
formSearch: {
|
|
formSearch: {
|
|
- courseNo: "",
|
|
|
|
|
|
+ courseId: "",
|
|
courseName: "",
|
|
courseName: "",
|
|
creator: "",
|
|
creator: "",
|
|
lastModifyName: "",
|
|
lastModifyName: "",
|
|
@@ -434,7 +434,7 @@ export default {
|
|
copyPaperDialog: false,
|
|
copyPaperDialog: false,
|
|
copyPaperForm: {
|
|
copyPaperForm: {
|
|
paperName: "",
|
|
paperName: "",
|
|
- courseNo: null,
|
|
|
|
|
|
+ courseId: null,
|
|
},
|
|
},
|
|
copyPaperId: "",
|
|
copyPaperId: "",
|
|
quesPropertyDialog: false,
|
|
quesPropertyDialog: false,
|
|
@@ -458,7 +458,7 @@ export default {
|
|
paperName: [
|
|
paperName: [
|
|
{ required: true, message: "请输试卷名称", trigger: "blur" },
|
|
{ required: true, message: "请输试卷名称", trigger: "blur" },
|
|
],
|
|
],
|
|
- courseNo: [
|
|
|
|
|
|
+ courseId: [
|
|
{ required: true, message: "请选择课程名称", trigger: "change" },
|
|
{ required: true, message: "请选择课程名称", trigger: "change" },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
@@ -480,8 +480,8 @@ export default {
|
|
var courseList = [];
|
|
var courseList = [];
|
|
for (let course of this.courseList) {
|
|
for (let course of this.courseList) {
|
|
var courseInfo = course.name + "(" + course.code + ")";
|
|
var courseInfo = course.name + "(" + course.code + ")";
|
|
- var courseNo = course.code;
|
|
|
|
- courseList.push({ courseNo: courseNo, courseInfo: courseInfo });
|
|
|
|
|
|
+ var courseId = course.id;
|
|
|
|
+ courseList.push({ courseId: courseId, courseInfo: courseInfo });
|
|
}
|
|
}
|
|
return courseList;
|
|
return courseList;
|
|
},
|
|
},
|
|
@@ -526,16 +526,16 @@ export default {
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
this.searchImportPaper();
|
|
this.searchImportPaper();
|
|
},
|
|
},
|
|
- getCourseName(courseNo) {
|
|
|
|
|
|
+ getCourseName(courseId) {
|
|
for (let course of this.courseList) {
|
|
for (let course of this.courseList) {
|
|
- if (course.code == courseNo) {
|
|
|
|
|
|
+ if (course.code == courseId) {
|
|
this.formSearch.courseName = course.name;
|
|
this.formSearch.courseName = course.name;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
editImportPaper(row) {
|
|
editImportPaper(row) {
|
|
//缓存查询对象
|
|
//缓存查询对象
|
|
- this.getCourseName(this.formSearch.courseNo);
|
|
|
|
|
|
+ this.getCourseName(this.formSearch.courseId);
|
|
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);
|
|
sessionStorage.setItem("question_back", "false");
|
|
sessionStorage.setItem("question_back", "false");
|
|
@@ -646,7 +646,7 @@ export default {
|
|
//克隆试卷
|
|
//克隆试卷
|
|
copyImportPaper(row) {
|
|
copyImportPaper(row) {
|
|
this.copyPaperForm.paperName = "";
|
|
this.copyPaperForm.paperName = "";
|
|
- this.copyPaperForm.courseNo = "";
|
|
|
|
|
|
+ this.copyPaperForm.courseId = "";
|
|
this.copyPaperId = row.id;
|
|
this.copyPaperId = row.id;
|
|
this.copyPaperDialog = true;
|
|
this.copyPaperDialog = true;
|
|
},
|
|
},
|
|
@@ -662,8 +662,8 @@ export default {
|
|
this.copyPaperId +
|
|
this.copyPaperId +
|
|
"?paperName=" +
|
|
"?paperName=" +
|
|
encodeURIComponent(this.copyPaperForm.paperName) +
|
|
encodeURIComponent(this.copyPaperForm.paperName) +
|
|
- "&courseNo=" +
|
|
|
|
- encodeURIComponent(this.copyPaperForm.courseNo)
|
|
|
|
|
|
+ "&courseId=" +
|
|
|
|
+ encodeURIComponent(this.copyPaperForm.courseId)
|
|
)
|
|
)
|
|
.then(() => {
|
|
.then(() => {
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -691,7 +691,7 @@ export default {
|
|
sessionStorage.removeItem("import_paper_currentPage");
|
|
sessionStorage.removeItem("import_paper_currentPage");
|
|
},
|
|
},
|
|
expQuesType() {
|
|
expQuesType() {
|
|
- if (!this.formSearch.courseNo) {
|
|
|
|
|
|
+ if (!this.formSearch.courseId) {
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "警告",
|
|
title: "警告",
|
|
message: "请输入课程",
|
|
message: "请输入课程",
|
|
@@ -704,7 +704,7 @@ export default {
|
|
window.location.href =
|
|
window.location.href =
|
|
QUESTION_API +
|
|
QUESTION_API +
|
|
"/paper/export/course/question/" +
|
|
"/paper/export/course/question/" +
|
|
- this.formSearch.courseNo +
|
|
|
|
|
|
+ this.formSearch.courseId +
|
|
"?$key=" +
|
|
"?$key=" +
|
|
key +
|
|
key +
|
|
"&$token=" +
|
|
"&$token=" +
|
|
@@ -749,7 +749,7 @@ export default {
|
|
},
|
|
},
|
|
resetForm2(formData) {
|
|
resetForm2(formData) {
|
|
this.copyPaperForm.paperName = "";
|
|
this.copyPaperForm.paperName = "";
|
|
- this.copyPaperForm.courseNo = "";
|
|
|
|
|
|
+ this.copyPaperForm.courseId = "";
|
|
this.$refs[formData].clearValidate();
|
|
this.$refs[formData].clearValidate();
|
|
},
|
|
},
|
|
back2(formData) {
|
|
back2(formData) {
|
|
@@ -771,7 +771,7 @@ export default {
|
|
},
|
|
},
|
|
//课程修改属性 openQuesProC
|
|
//课程修改属性 openQuesProC
|
|
openQuesProC() {
|
|
openQuesProC() {
|
|
- if (!this.formSearch.courseNo) {
|
|
|
|
|
|
+ if (!this.formSearch.courseId) {
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "警告",
|
|
title: "警告",
|
|
message: "请输入课程",
|
|
message: "请输入课程",
|
|
@@ -828,7 +828,7 @@ export default {
|
|
.put(
|
|
.put(
|
|
QUESTION_API +
|
|
QUESTION_API +
|
|
"/question/updatePro/courseCode/" +
|
|
"/question/updatePro/courseCode/" +
|
|
- this.formSearch.courseNo +
|
|
|
|
|
|
+ this.formSearch.courseId +
|
|
"/" +
|
|
"/" +
|
|
this.difficultyDegree +
|
|
this.difficultyDegree +
|
|
"/" +
|
|
"/" +
|
|
@@ -858,7 +858,7 @@ export default {
|
|
if (this.isClear == 0 || !this.isClear) {
|
|
if (this.isClear == 0 || !this.isClear) {
|
|
this.removeItem();
|
|
this.removeItem();
|
|
this.formSearch = {
|
|
this.formSearch = {
|
|
- courseNo: "",
|
|
|
|
|
|
+ courseId: "",
|
|
level: "",
|
|
level: "",
|
|
name: "",
|
|
name: "",
|
|
};
|
|
};
|