Commit b12b3516 authored by 黄奎's avatar 黄奎

也没修改

parent a56fcf16
......@@ -59,7 +59,16 @@
<div>
<i class="iconfont icon-arrowdown2" v-if="(commonIndex==index)&&!isShow"></i>
<i class="iconfont icon-arrowright" v-else></i>
{{index+1}}小题
<template v-if="!isShowScore">
{{index+1}}小题
</template>
<template v-if="isShowScore">
<q-input filled v-model="email" standout type="email" suffix="分数" input-style="height:30px;">
<template v-slot:before>
<span style="font-size:12px;">{{index+1}}小题</span>
</template>
</q-input>
</template>
</div>
<div>
<i class="iconfont icon-img_delete_small" @click.stop="deleteQuestion(index)"></i>
......@@ -67,12 +76,6 @@
</div>
</th>
</tr>
<tr v-if="isShowScore">
<th colspan="3">
<q-input filled stack-label maxlength="5" style="width:170px;" :dense="false" @keyup.native="checkPrice(item,'SubScore')"
v-model="item.SubScore" class="col-3 q-pb-lg" label="分数" @input="getQuestionScore" />
</th>
</tr>
</thead>
<tbody class="contant" v-if="(commonIndex==index)&&!isShow">
<tr v-for="(subItem,subIndex) in item.OptionList" :key="subIndex">
......@@ -90,8 +93,6 @@
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(item,subIndex)"></i>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">
<a class="addTiMuList" @click="addOption(item)">
......@@ -99,7 +100,7 @@
</a>
</td>
</tr>
</tfoot>
</tbody>
</table>
</template>
<a class="add_LiteBtn" @click="addQuestion()">
......
......@@ -37,7 +37,8 @@
<td colspan="2" class="v_singleQuestionBold">正确答案:{{data.Answer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2" class="v_singleQuestionBold" :style="{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}">考生答案:{{data.StundetAnswer}}</td>
<td colspan="2" class="v_singleQuestionBold"
:style="{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}">考生答案:{{data.StundetAnswer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2">
......@@ -98,6 +99,16 @@
},
//调用父组件计算学生分数
getQuestionScore() {
var stuScore = 0;
if (this.data.StudentScore != "") {
stuScore = this.data.StudentScore;
}
if (stuScore > this.data.Score) {
this.data.StudentScore = this.data.Score;
}
if (stuScore < 0) {
this.data.StudentScore = 0;
}
this.$emit('getScore');
},
},
......
......@@ -180,8 +180,7 @@
<div class="setCt">
<span class="papPub_Left f1">考试限时</span>
<div class="f1">
<q-input filled bottom-slots maxlength="10" style="width:308px;" :disable="true" v-model="postMsg.ExamTimes" label="考试限时"
:dense="false">
<q-input filled bottom-slots maxlength="10" style="width:308px;" :disable="true" v-model="postMsg.ExamTimes" :dense="false">
<template v-slot:append>
<span style="font-size:12px;">分钟</span>
</template>
......@@ -191,8 +190,8 @@
<div class="setCt">
<span class="papPub_Left f1">限时提交</span>
<div class="f1">
<q-input filled bottom-slots maxlength="10" style="width:308px;" v-model="postMsg.SubmitTimes" label="限时提交"
:dense="false">
<q-input filled bottom-slots maxlength="10" @keyup.native="checkInteger(postMsg,'SubmitTimes')"
style="width:308px;" v-model="postMsg.SubmitTimes" :dense="false">
<template v-slot:append>
<span style="font-size:12px;">分钟内不允许提交</span>
</template>
......@@ -202,7 +201,8 @@
<div class="setCt">
<span class="papPub_Left f1">限时进入</span>
<div class="f1">
<q-input filled bottom-slots maxlength="10" v-model="postMsg.EnterTimes" label="限时进入" :dense="false">
<q-input filled bottom-slots maxlength="10" @keyup.native="checkInteger(postMsg,'EnterTimes')"
v-model="postMsg.EnterTimes" :dense="false">
<template v-slot:append>
<span style="font-size:12px;">分钟后不允许参加考试</span>
</template>
......@@ -259,6 +259,11 @@
<div class="paper_QuesDes">勾选后,英文大写和小写都可以得分</div>
<q-checkbox size="xs" v-model="postMsg.IsHalfScore" :true-value="1" :false-value="0" label="多选题未选全给一半分" />
<div class="paper_QuesDes">不勾选时全选对才给分</div>
</div>
</div>
<div class="setCt">
<span class="papPub_Left f1">试卷封面图</span>
<div class="f1">
<div style="display:flex;flex-wrap: wrap;">
<template v-if="postMsg.PublishPic.length>0">
<div v-for="(item,index) in postMsg.PublishPic">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment