|
|
@@ -162,9 +162,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
fetchData() {
|
|
|
- console.log(this.stem);
|
|
|
- console.log(this.tags);
|
|
|
- console.log(this.knowledgeName);
|
|
|
this.$apis.getQuestionList(
|
|
|
{pageSize: this.pageSize, pageNum: this.pageNum},
|
|
|
this.stem,
|
|
|
@@ -182,14 +179,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
deleteItem(index,item) {
|
|
|
- console.log(item);
|
|
|
- console.log(this.selectedQuestions);
|
|
|
- // this.selectedQuestions = this.selectedQuestions.filter(
|
|
|
- // (val) => val.id !== item.id
|
|
|
- // );
|
|
|
this.selectedQuestions.splice(index,1);
|
|
|
this.$refs.questionsTable.toggleRowSelection(item, false);
|
|
|
- console.log(this.selectedQuestions);
|
|
|
},
|
|
|
increasePoints(item) {
|
|
|
let selectedIndex = this.selectedQuestions.indexOf(item);
|
|
|
@@ -253,8 +244,6 @@ export default {
|
|
|
this.selectedQuestions.forEach((val) => {
|
|
|
idAndScore.set(val.id, val.score);
|
|
|
});
|
|
|
- console.log("submit");
|
|
|
- console.log(idAndScore);
|
|
|
this.$apis.setExamPaperQuestions(this.examId, Object.fromEntries(idAndScore)).then(() => {
|
|
|
this.selectQuestionsSuccess = true;
|
|
|
ElMessage({
|