考試bug 修復,同时2台电脑登录考试页面时,会产生2个成绩修改
| | |
| | | }) || {}, |
| | | // 签到 |
| | | scoreId: '', |
| | | scoreType: 0, |
| | | isClears: false, |
| | | cardInfor: {}, |
| | | haveCardid: false, |
| | |
| | | window.localStorage.setItem("scoreId", data) |
| | | state.scoreId = data; |
| | | }, |
| | | SetScoreType(state, data) { |
| | | window.localStorage.setItem("scoreType", data) |
| | | state.scoreType = data; |
| | | }, |
| | | SetexamUserData(state, data) { |
| | | window.localStorage.setItem("useInfo", JSON.stringify(data)) |
| | | state.examUserData = data; |
| | |
| | | // return; |
| | | // debugger; |
| | | updateApplyStatus(data).then(res => { |
| | | that.resData["examScoreId"] = res.data.id; |
| | | this.$store.commit("SetScoreId", res.data.id); |
| | | // console.log(res.data.id, "ididididiidididididid"); |
| | | that.resData["examScoreId"] = res.data.examScore.id; |
| | | this.$store.commit("SetScoreId", res.data.examScore.id); |
| | | this.$store.commit("SetScoreType", res.data.type); |
| | | window.name = ""; |
| | | this.$notify({ |
| | | message: |
| | |
| | | }); |
| | | }, |
| | | getUserInfoBYExam() { |
| | | console.log(this.option,456123) |
| | | var that = this; |
| | | let setData = ({ color, subtext, isExam }) => { |
| | | that.option.data = [ |
| | |
| | | created() { |
| | | var useInfo = this.$store.state.exam.examUserData; |
| | | |
| | | var scoreType = this.$store.state.exam.scoreType |
| | | |
| | | if (useInfo.isExam == 3) { |
| | | window.name = "first"; |
| | | this.first = false; |
| | |
| | | } |
| | | } |
| | | |
| | | if(scoreType==1){ |
| | | this.first = false; |
| | | } |
| | | |
| | | const examInfo = this.$route.params.id; |
| | | |
| | | if (isNotEmpty(examInfo)) { |