| | |
| | | paramsInfo: {}, |
| | | parasInfos: [], |
| | | parasInfoIds: {}, |
| | | formDo: {}, |
| | | // formDo: {}, |
| | | submitDisable: false, |
| | | isStart: this.$route.query.isStart === 'true' |
| | | } |
| | |
| | | demographyApi.submitDemography(_this.memberToken, _this.langType, _this.parasInfos).then(function (result) { |
| | | if (result && result.code === 1) { |
| | | examPaperApi.select(_this.memberToken, _this.langType).then(re => { |
| | | _this.formDo = re.response |
| | | _this.setFormDo(re.response) |
| | | _this.setDoUrl(re.response.questionTemplateId) |
| | | if (_this.isStart) { |
| | | _this.$router.push({ path: '/exam/' + _this.doUrl }) |
| | |
| | | }, |
| | | ...mapMutations('user', ['setMemberTocken']), |
| | | ...mapMutations('exam', ['setDoUrl']), |
| | | ...mapMutations('user', ['setLangType']) |
| | | ...mapMutations('user', ['setLangType']), |
| | | ...mapMutations('user', ['setFormDo']) |
| | | }, |
| | | computed: { |
| | | ...mapState('user', { memberToken: state => state.memberToken }), |