| | |
| | | } |
| | | }, |
| | | created: function() { |
| | | console.log("created......", this.$route.query.formDo, typeof(this.$route.query.formDo)) |
| | | console.log("created......", this.$route.query.formDo) |
| | | //console.log(".....................Test. config start......................") |
| | | //if(this.memberToken == '' || this.memberToken == undefined) this.setMemberTocken("4bdcf437-185c-4f4e-9528-382c99509ea6") |
| | | //console.log(".....................Test. config ednd.......................") |
| | |
| | | this.caculateScoreRangeSelectedById(sid, 1) |
| | | }, |
| | | step3Change(value, question) { |
| | | console.log('step3Change...', this.step3ChangeSrc) |
| | | if (this.step3ChangeSrc.id == null) { |
| | | //首次点击,临时存储 |
| | | this.step3ChangeSrc.id = question.id |
| | |
| | | //设置每项已选择的数量 |
| | | _this.step2ScoreRanges[i]['selected'] = 0 |
| | | } |
| | | console.log('initStep2ScoreRanges...', this.step2ScoreRanges) |
| | | //console.log('initStep2ScoreRanges...', this.step2ScoreRanges) |
| | | }, |
| | | getStep2StepTagType(step) { |
| | | if (this.step2SubStep > step) { |
| | |
| | | answerSubmit['scoreRanges'] = _this.form.titleItems[0].scoreRanges |
| | | } else { |
| | | let item = _this.getStep2StepItem(_this.step2SubStep) |
| | | console.log('getStep2StepItem', _this.step2SubStep, item) |
| | | //console.log('getStep2StepItem', _this.step2SubStep, item) |
| | | answerSubmit['scoreRanges'] = [] |
| | | answerSubmit['scoreRanges'].push(item) |
| | | } |
| | | console.log('answerSubmit.scoreRanges=', answerSubmit['scoreRanges']) |
| | | //console.log('answerSubmit.scoreRanges=', answerSubmit['scoreRanges']) |
| | | for (let item of answerSubmit['scoreRanges']) { |
| | | item['completed'] = true |
| | | item['questionReports'] = [] |
| | |
| | | examPaperAnswerApi.answerSubmit(answerSubmit, _this.memberToken).then(re => { |
| | | loading.close() |
| | | if (re.code === 1) { |
| | | console.log('answerSubmit...', re) |
| | | //console.log('answerSubmit...', re) |
| | | } |
| | | _this.formLoading = false |
| | | }).catch(e => { |