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){
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,