Merge branch 'bjxz-cjw' into bjxz-dev
This commit is contained in:
commit
a3c6296f80
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user