| | |
| | | memberName: '', |
| | | itemSize: '', // 题目长度 |
| | | startDoDisable: true, |
| | | ismobile: false |
| | | ismobile: false, |
| | | hasShownSubmitTip: false // 标志是否已经显示过提交提示 |
| | | } |
| | | }, |
| | | created: function () { |
| | |
| | | // 加载题目 |
| | | examPaperApi.select(_this.memberToken, _this.langType).then(re => { |
| | | _this.form = re.response |
| | | // // 测试模式:只保留前3道题 |
| | | // if (_this.form.titleItems[0].questionItems.length > 3) { |
| | | // _this.form.titleItems[0].questionItems = _this.form.titleItems[0].questionItems.slice(0, 3) |
| | | // } |
| | | _this.remainTime = re.response.suggestTime * 60 |
| | | _this.problemLength = _this.form.titleItems[0].questionItems.length - 1 |
| | | _this.titleItemsLength = _this.form.titleItems.length |
| | |
| | | if (i === _this.answer.answerItems.length - 1 && _this.order !== _this.answer.answerItems.length - 1) { |
| | | _this.submitForm() |
| | | return |
| | | } |
| | | } |
| | | |
| | | // 检查是否是最后一题且已答完,弹出提示框 |
| | | if (_this.order === _this.answer.answerItems.length - 1 && _this.isContentNotEmpty(_this.order)) { |
| | | if (!_this.hasShownSubmitTip) { |
| | | _this.hasShownSubmitTip = true |
| | | _this.$alert(_this.$t('submit_tip'), _this.$t('prompt'), { |
| | | confirmButtonText: _this.$t('determine'), |
| | | customClass: 'submit-tip-dialog' |
| | | }) |
| | | } |
| | | } |
| | | this.answer.answerItems[_this.order].readOnly = true |
| | |
| | | z-index: 1000; |
| | | bottom: 0px; |
| | | } |
| | | |
| | | </style> |