Merge branch 'bjxz-cjw' into bjxz-dev

This commit is contained in:
Vce 2024-05-25 00:05:06 +08:00
commit a3c6296f80

View File

@ -862,17 +862,33 @@ export default {
if(this.$refs.questionListTable){ if(this.$refs.questionListTable){
this.examForm.questions = this.$refs.questionListTable.selection; this.examForm.questions = this.$refs.questionListTable.selection;
} else { } else {
let arr = []; // if(this.examForm.checkQuestionType === 1){
this.questionList.map(item => { let arr = [];
this.examForm.questions.split(',').map(item2 => { this.questionList.map(item => {
if(item.id === item2){ this.examForm.questions.split(',').map(item2 => {
// arr.push({id: item.id,type: item.type}) if(item.id === item2){
arr.push(item) // 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 = { let examInfo = {
checkQuestionType:this.examForm.checkQuestionType, checkQuestionType:this.examForm.checkQuestionType,
name:this.examForm.name, name:this.examForm.name,