|
@@ -241,6 +241,7 @@ export default {
|
|
name: "",
|
|
name: "",
|
|
totalScore: 0, //结构总分
|
|
totalScore: 0, //结构总分
|
|
courseNo: "", //课程
|
|
courseNo: "", //课程
|
|
|
|
+ courseName: "",
|
|
coursePropertyId: "", //课程属性
|
|
coursePropertyId: "", //课程属性
|
|
coursePropertyName: "", //课程属性名称
|
|
coursePropertyName: "", //课程属性名称
|
|
paperDetailStructs: [],
|
|
paperDetailStructs: [],
|
|
@@ -287,6 +288,7 @@ export default {
|
|
var blueStructStorge = sessionStorage.getItem("blueStruct");
|
|
var blueStructStorge = sessionStorage.getItem("blueStruct");
|
|
if (typeof blueStructStorge == "string") {
|
|
if (typeof blueStructStorge == "string") {
|
|
var blueStruct = JSON.parse(blueStructStorge);
|
|
var blueStruct = JSON.parse(blueStructStorge);
|
|
|
|
+ this.getCourses(blueStruct.courseName);
|
|
this.blueStruct = blueStruct;
|
|
this.blueStruct = blueStruct;
|
|
this.$http
|
|
this.$http
|
|
.get(
|
|
.get(
|
|
@@ -542,6 +544,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ getCourseName(courseNo) {
|
|
|
|
+ for (let course of this.courseList) {
|
|
|
|
+ if (course.code == courseNo) {
|
|
|
|
+ this.blueStruct.courseName = course.name;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//大题详情
|
|
//大题详情
|
|
detailInfo(row) {
|
|
detailInfo(row) {
|
|
if (!this.blueStruct.coursePropertyId) {
|
|
if (!this.blueStruct.coursePropertyId) {
|
|
@@ -551,6 +560,7 @@ export default {
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ this.getCourseName(this.blueStruct.courseNo);
|
|
sessionStorage.setItem("blueStruct", JSON.stringify(this.blueStruct));
|
|
sessionStorage.setItem("blueStruct", JSON.stringify(this.blueStruct));
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path:
|
|
path:
|
|
@@ -600,6 +610,7 @@ export default {
|
|
clearCourseProperty() {
|
|
clearCourseProperty() {
|
|
this.blueStruct.coursePropertyId = "";
|
|
this.blueStruct.coursePropertyId = "";
|
|
this.coursePropertyList = [];
|
|
this.coursePropertyList = [];
|
|
|
|
+ this.getCoursePropertyList();
|
|
},
|
|
},
|
|
resetForm(formData) {
|
|
resetForm(formData) {
|
|
this.paperDetailStructForm.name = "";
|
|
this.paperDetailStructForm.name = "";
|