|
@@ -23,12 +23,12 @@
|
|
class="part-filter-form"
|
|
class="part-filter-form"
|
|
>
|
|
>
|
|
<el-form-item label="课程">
|
|
<el-form-item label="课程">
|
|
- <el-select v-model="course" :disabled="true" placeholder="请选择">
|
|
|
|
|
|
+ <el-select v-model="courseId" :disabled="true" placeholder="请选择">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in courseList"
|
|
v-for="item in courseList"
|
|
- :key="item.value"
|
|
|
|
|
|
+ :key="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
- :value="item.value"
|
|
|
|
|
|
+ :value="item.id"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -48,14 +48,6 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="题干">
|
|
|
|
- <el-input
|
|
|
|
- v-model="formSearch.quesBody"
|
|
|
|
- placeholder="请输入题干"
|
|
|
|
- @blur="searchQuestionPaper"
|
|
|
|
- >
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item> </el-form-item>
|
|
<el-form-item> </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
@@ -134,6 +126,7 @@ export default {
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
total: 10,
|
|
total: 10,
|
|
|
|
+ courseId: "",
|
|
courseName: "",
|
|
courseName: "",
|
|
quesModel: {},
|
|
quesModel: {},
|
|
questionTypes: [],
|
|
questionTypes: [],
|
|
@@ -163,11 +156,14 @@ export default {
|
|
});
|
|
});
|
|
this.paperId = this.$route.params.id;
|
|
this.paperId = this.$route.params.id;
|
|
this.courseName = this.$route.params.courseName;
|
|
this.courseName = this.$route.params.courseName;
|
|
- var courseNo = this.$route.params.courseNo;
|
|
|
|
|
|
+ this.courseId = parseInt(this.$route.params.courseId);
|
|
this.paperDetailId = this.$route.params.paperDetailId;
|
|
this.paperDetailId = this.$route.params.paperDetailId;
|
|
this.parentView = this.$route.params.parentView;
|
|
this.parentView = this.$route.params.parentView;
|
|
- this.courseList.push({ name: this.courseName, value: courseNo });
|
|
|
|
- this.course = this.courseList[0].value;
|
|
|
|
|
|
+ this.$http
|
|
|
|
+ .get(QUESTION_API + "/course/" + this.courseId)
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.courseList.push(response.data);
|
|
|
|
+ });
|
|
this.searchQuestionPaper();
|
|
this.searchQuestionPaper();
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -259,9 +255,16 @@ export default {
|
|
},
|
|
},
|
|
//返回
|
|
//返回
|
|
back() {
|
|
back() {
|
|
- this.$router.push({
|
|
|
|
- path: "/edit_paper/" + this.paperId + "/" + this.parentView,
|
|
|
|
- });
|
|
|
|
|
|
+ if ("exam_paper_pending_trial" == this.parentView) {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path:
|
|
|
|
+ "/edit_paper_pending_trial/" + this.paperId + "/" + this.parentView,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/edit_paper/" + this.paperId + "/" + this.parentView,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//全选
|
|
//全选
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|