Commit b12b3516 authored by 黄奎's avatar 黄奎

也没修改

parent a56fcf16
...@@ -59,7 +59,16 @@ ...@@ -59,7 +59,16 @@
<div> <div>
<i class="iconfont icon-arrowdown2" v-if="(commonIndex==index)&&!isShow"></i> <i class="iconfont icon-arrowdown2" v-if="(commonIndex==index)&&!isShow"></i>
<i class="iconfont icon-arrowright" v-else></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>
<div> <div>
<i class="iconfont icon-img_delete_small" @click.stop="deleteQuestion(index)"></i> <i class="iconfont icon-img_delete_small" @click.stop="deleteQuestion(index)"></i>
...@@ -67,12 +76,6 @@ ...@@ -67,12 +76,6 @@
</div> </div>
</th> </th>
</tr> </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> </thead>
<tbody class="contant" v-if="(commonIndex==index)&&!isShow"> <tbody class="contant" v-if="(commonIndex==index)&&!isShow">
<tr v-for="(subItem,subIndex) in item.OptionList" :key="subIndex"> <tr v-for="(subItem,subIndex) in item.OptionList" :key="subIndex">
...@@ -90,8 +93,6 @@ ...@@ -90,8 +93,6 @@
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(item,subIndex)"></i> <i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(item,subIndex)"></i>
</td> </td>
</tr> </tr>
</tbody>
<tfoot>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<a class="addTiMuList" @click="addOption(item)"> <a class="addTiMuList" @click="addOption(item)">
...@@ -99,7 +100,7 @@ ...@@ -99,7 +100,7 @@
</a> </a>
</td> </td>
</tr> </tr>
</tfoot> </tbody>
</table> </table>
</template> </template>
<a class="add_LiteBtn" @click="addQuestion()"> <a class="add_LiteBtn" @click="addQuestion()">
......
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
<td colspan="2" class="v_singleQuestionBold">正确答案:{{data.Answer}}</td> <td colspan="2" class="v_singleQuestionBold">正确答案:{{data.Answer}}</td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <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>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
...@@ -98,6 +99,16 @@ ...@@ -98,6 +99,16 @@
}, },
//调用父组件计算学生分数 //调用父组件计算学生分数
getQuestionScore() { 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'); this.$emit('getScore');
}, },
}, },
......
...@@ -180,8 +180,7 @@ ...@@ -180,8 +180,7 @@
<div class="setCt"> <div class="setCt">
<span class="papPub_Left f1">考试限时</span> <span class="papPub_Left f1">考试限时</span>
<div class="f1"> <div class="f1">
<q-input filled bottom-slots maxlength="10" style="width:308px;" :disable="true" v-model="postMsg.ExamTimes" label="考试限时" <q-input filled bottom-slots maxlength="10" style="width:308px;" :disable="true" v-model="postMsg.ExamTimes" :dense="false">
:dense="false">
<template v-slot:append> <template v-slot:append>
<span style="font-size:12px;">分钟</span> <span style="font-size:12px;">分钟</span>
</template> </template>
...@@ -191,8 +190,8 @@ ...@@ -191,8 +190,8 @@
<div class="setCt"> <div class="setCt">
<span class="papPub_Left f1">限时提交</span> <span class="papPub_Left f1">限时提交</span>
<div class="f1"> <div class="f1">
<q-input filled bottom-slots maxlength="10" style="width:308px;" v-model="postMsg.SubmitTimes" label="限时提交" <q-input filled bottom-slots maxlength="10" @keyup.native="checkInteger(postMsg,'SubmitTimes')"
:dense="false"> style="width:308px;" v-model="postMsg.SubmitTimes" :dense="false">
<template v-slot:append> <template v-slot:append>
<span style="font-size:12px;">分钟内不允许提交</span> <span style="font-size:12px;">分钟内不允许提交</span>
</template> </template>
...@@ -202,7 +201,8 @@ ...@@ -202,7 +201,8 @@
<div class="setCt"> <div class="setCt">
<span class="papPub_Left f1">限时进入</span> <span class="papPub_Left f1">限时进入</span>
<div class="f1"> <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> <template v-slot:append>
<span style="font-size:12px;">分钟后不允许参加考试</span> <span style="font-size:12px;">分钟后不允许参加考试</span>
</template> </template>
...@@ -259,6 +259,11 @@ ...@@ -259,6 +259,11 @@
<div class="paper_QuesDes">勾选后,英文大写和小写都可以得分</div> <div class="paper_QuesDes">勾选后,英文大写和小写都可以得分</div>
<q-checkbox size="xs" v-model="postMsg.IsHalfScore" :true-value="1" :false-value="0" label="多选题未选全给一半分" /> <q-checkbox size="xs" v-model="postMsg.IsHalfScore" :true-value="1" :false-value="0" label="多选题未选全给一半分" />
<div class="paper_QuesDes">不勾选时全选对才给分</div> <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;"> <div style="display:flex;flex-wrap: wrap;">
<template v-if="postMsg.PublishPic.length>0"> <template v-if="postMsg.PublishPic.length>0">
<div v-for="(item,index) in postMsg.PublishPic"> <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