|
|
@ -252,7 +252,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
methods:{
|
|
|
|
getStatus(cq){
|
|
|
|
getStatus(cq){
|
|
|
|
console.log(cq.item)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var myAnswer = this.getMyAnswer(cq.item.id,0)
|
|
|
|
var myAnswer = this.getMyAnswer(cq.item.id,0)
|
|
|
|
if(myAnswer == ''){
|
|
|
|
if(myAnswer == ''){
|
|
|
@ -260,7 +259,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var rightAnswer = this.getRightAnswer(cq.item,0)
|
|
|
|
var rightAnswer = this.getRightAnswer(cq.item,0)
|
|
|
|
|
|
|
|
|
|
|
|
console.log("my:"+myAnswer,"right:"+rightAnswer)
|
|
|
|
|
|
|
|
if(myAnswer == rightAnswer){
|
|
|
|
if(myAnswer == rightAnswer){
|
|
|
|
return "right";
|
|
|
|
return "right";
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -302,7 +301,7 @@ export default {
|
|
|
|
qList=qList.concat(this.getQList(this.judgeQuestion))
|
|
|
|
qList=qList.concat(this.getQList(this.judgeQuestion))
|
|
|
|
qList=qList.concat(this.getQList(this.anliQuestion))
|
|
|
|
qList=qList.concat(this.getQList(this.anliQuestion))
|
|
|
|
examApi.submit(this.compId,this.stageId,qList).then(res=>{
|
|
|
|
examApi.submit(this.compId,this.stageId,qList).then(res=>{
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
if(res.code == 200){
|
|
|
|
if(res.code == 200){
|
|
|
|
alert("考试得分"+res.data.score)
|
|
|
|
alert("考试得分"+res.data.score)
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|