|
@@ -158,9 +158,9 @@
|
|
>
|
|
>
|
|
<span>第{{ i + 1 }}题</span>
|
|
<span>第{{ i + 1 }}题</span>
|
|
<el-progress
|
|
<el-progress
|
|
- :percentage="item.bfb"
|
|
|
|
|
|
+ :percentage="item.marked_amount == 0 ? 0 : (item.marked_amount / item.question_amount) * 100"
|
|
:stroke-width="10"
|
|
:stroke-width="10"
|
|
- :color="item.marked_amount == tk_list.length ? '#0A9DFF' : '#FA0A2F'"
|
|
|
|
|
|
+ :color="item.marked_amount == item.question_amount ? '#0A9DFF' : '#FA0A2F'"
|
|
></el-progress>
|
|
></el-progress>
|
|
<span>{{ item.marked_amount }}/{{ item.question_amount}}</span>
|
|
<span>{{ item.marked_amount }}/{{ item.question_amount}}</span>
|
|
</li>
|
|
</li>
|
|
@@ -241,9 +241,9 @@
|
|
<div class="bg_box" v-if="is_answer">
|
|
<div class="bg_box" v-if="is_answer">
|
|
<div class="answers">
|
|
<div class="answers">
|
|
<span class="el-icon-circle-close" @click="is_answer=false"></span>
|
|
<span class="el-icon-circle-close" @click="is_answer=false"></span>
|
|
- <img :src="answer.full_img" alt="">
|
|
|
|
|
|
+ <!-- <img :src="answer.full_img" alt=""> -->
|
|
<div> <span>答案:</span> <span class="option">{{answer.answer}}</span></div>
|
|
<div> <span>答案:</span> <span class="option">{{answer.answer}}</span></div>
|
|
- <div> <span>解析:</span> <span>{{answer.analysis}}</span></div>
|
|
|
|
|
|
+ <div> <span>解析:</span> <span v-html="answer.analysis"></span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<full v-if="full" @sign="sign" @fatherMethod='review_succ' :tk_lists='tk_list' :tk_nums='tk_num' :selectIds='selectId' :num_ids='num_id' :navIds='nav_id' @pnoChange='pnoChange'></full>
|
|
<full v-if="full" @sign="sign" @fatherMethod='review_succ' :tk_lists='tk_list' :tk_nums='tk_num' :selectIds='selectId' :num_ids='num_id' :navIds='nav_id' @pnoChange='pnoChange'></full>
|
|
@@ -420,14 +420,6 @@ export default {
|
|
var that = this;
|
|
var that = this;
|
|
get("/v1/api/tasks/"+ this.id +"/process").then((res) => {
|
|
get("/v1/api/tasks/"+ this.id +"/process").then((res) => {
|
|
if (res.errcode == 0) {
|
|
if (res.errcode == 0) {
|
|
- res.data.forEach((item,i) => {
|
|
|
|
- if(item.marked_amount){
|
|
|
|
- item.bfb = (item.question_amount/that.tk_list.length).toFixed(2)*100
|
|
|
|
- // console.log(item.bfb)
|
|
|
|
- }else{
|
|
|
|
- item.bfb =0
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
that.tk_num = res.data;
|
|
that.tk_num = res.data;
|
|
that.lock = true;
|
|
that.lock = true;
|
|
}
|
|
}
|
|
@@ -440,7 +432,6 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
this.lock = false;
|
|
this.lock = false;
|
|
- // console.log(id,score)
|
|
|
|
var pattern=/^([1-9]\d*|0)$/;
|
|
var pattern=/^([1-9]\d*|0)$/;
|
|
if (!score) {
|
|
if (!score) {
|
|
this.$message.warning("还没打分哦~");
|
|
this.$message.warning("还没打分哦~");
|
|
@@ -448,6 +439,9 @@ export default {
|
|
}else if(!pattern.test(this.score)){
|
|
}else if(!pattern.test(this.score)){
|
|
this.$message.warning('分数输入不正确');
|
|
this.$message.warning('分数输入不正确');
|
|
return
|
|
return
|
|
|
|
+ }else if(Number(this.score) > this.tk_list[this.selectId].score){
|
|
|
|
+ this.$message.warning('批阅得分大于试题满分,本题满分为:'+this.tk_list[this.selectId].score+'分');
|
|
|
|
+ return
|
|
}
|
|
}
|
|
this.downLoadImage(id,score);
|
|
this.downLoadImage(id,score);
|
|
},
|
|
},
|