| | |
| | | item.status = '0' |
| | | item.selAnswer = null |
| | | }) |
| | | console.log(res.data) |
| | | this.list = res.data |
| | | } |
| | | // res.param.problemsDOList.forEach(item => { |
| | |
| | | }, |
| | | // 单选选择中题目 |
| | | select(line, i) { |
| | | if (this.status === '2') return |
| | | if (this.status != '0') return |
| | | this.list.forEach((item, index) => { |
| | | if (index === i) { |
| | | item.selAnswer = line.code |
| | |
| | | // this.problemIndex = index |
| | | }, |
| | | changeBox(index, jeck) { |
| | | if (this.status === '2') return |
| | | if (this.status != '0') return |
| | | this.list.forEach((item, i) => { |
| | | if (index === i) { |
| | | item.options.forEach((item2, j) => { |