| | |
| | | let oldObj = ""; |
| | | if (oldList) |
| | | oldObj = oldList.find((oldItem) => oldItem.id == item.id); |
| | | console.log(item.Embedded_QuestionBank_Stem, 111) |
| | | // console.log(item.Embedded_QuestionBank_Stem, 111) |
| | | let questionObj = { |
| | | // num: index, // 题号 |
| | | id: item.id, |
| | |
| | | questionObj.questionType == "completion" || |
| | | questionObj.questionType == "multipleChoice" |
| | | ) { |
| | | console.log(questionObj.answer, "111") |
| | | // console.log(questionObj.answer, "111") |
| | | try { |
| | | questionObj.answer = JSON.parse(questionObj.answer).toString(); |
| | | } catch (error) { |
| | |
| | | if (src) { |
| | | questionObj.src = src |
| | | questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) |
| | | console.log('题干', questionObj.stem.stemTxt); |
| | | // console.log('题干', questionObj.stem.stemTxt); |
| | | } |
| | | } |
| | | if (item.Embedded_QuestionBank_QuestionType == "judge") { |
| | |
| | | cardList: cardList, |
| | | loading: false, |
| | | }); |
| | | console.log(this.data.questionDataList, "questionDataList"); |
| | | // console.log(this.data.questionDataList, "questionDataList"); |
| | | }); |
| | | }, |
| | | // 获取组卷结果 |
| | |
| | | JSON.parse(res[0].value).time : 1000, |
| | | "mockData.answer": JSON.parse(res[0].value).answerData, |
| | | }); |
| | | console.log(JSON.parse(res[0].value)); |
| | | // console.log(JSON.parse(res[0].value)); |
| | | data = JSON.parse(res[0].value).answerData; |
| | | } |
| | | }); |
| | |
| | | this.setData({ |
| | | saveTime: 20, |
| | | }); |
| | | console.log("模考答题数据已记录"); |
| | | // console.log("模考答题数据已记录"); |
| | | }); |
| | | }, |
| | | |
| | |
| | | // 做完了且加入了班级,提交到message |
| | | if (this.data.classList.length && this.data.joinGroup) { |
| | | this.data.classList.forEach(item => { |
| | | if (item.linkProductDto.product.id == this.data.bookId && item.topicId) |
| | | if (item.linkProductDto.product.id == this.data.bookId && item.topicId) { |
| | | this.newTopicMessage(item.topicId) |
| | | } |
| | | }) |
| | | this.setinteractionInfo() |
| | | } else { |