From 6cd7fe5e2e2ddb2cb9d7d3e2137ff8d48302e42d Mon Sep 17 00:00:00 2001 From: Vce Date: Sat, 25 May 2024 00:04:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../examManagement/examManagement.vue | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/src/views/projectFront/examSystem2/examManagement/examManagement.vue b/src/views/projectFront/examSystem2/examManagement/examManagement.vue index b62d1510..ed444c61 100644 --- a/src/views/projectFront/examSystem2/examManagement/examManagement.vue +++ b/src/views/projectFront/examSystem2/examManagement/examManagement.vue @@ -862,17 +862,33 @@ export default { if(this.$refs.questionListTable){ this.examForm.questions = this.$refs.questionListTable.selection; } else { - let arr = []; - this.questionList.map(item => { - this.examForm.questions.split(',').map(item2 => { - if(item.id === item2){ - // arr.push({id: item.id,type: item.type}) - arr.push(item) - } + // if(this.examForm.checkQuestionType === 1){ + let arr = []; + this.questionList.map(item => { + this.examForm.questions.split(',').map(item2 => { + if(item.id === item2){ + // arr.push({id: item.id,type: item.type}) + arr.push(item) + } + }) }) - }) - this.examForm.questions = arr; + this.examForm.questions = arr; + // }else{ + console.log("==========================") + console.log(this.examForm) + console.log("==========================") + // } } + console.log("123123131231231313123123") + console.log(this.examForm) + console.log("123123131231231313123123") + if(this.examForm.checkQuestionType === 2){ + this.randomQuestionList = this.examForm.questions + } + console.log(this.randomQuestionList) + console.log("123123131231231313123123") + console.log(this.randomQuestionList.map(item => item.id).join(',')) + let examInfo = { checkQuestionType:this.examForm.checkQuestionType, name:this.examForm.name,