Commit dfac6db7 authored by 黄奎's avatar 黄奎

页面下修改

parent 7409a988
......@@ -15,9 +15,9 @@
<template>
<div class="entryProblemQuestion">
<table v-if="data&&data.length>0" class="common_TiTable">
<tr v-for="(item,index) in data">
<tr v-for="(item,index) in data" :key="index">
<td style="width:40px;text-align:center;padding-top:8px;">
{{index+1}}</el-checkbox>
{{index+1}}
</td>
<td>
<div class="InpDIV" v-html="item.Content" v-if="commonIndex!=index" @click="changeEdit(index)"></div>
......
......@@ -16,9 +16,9 @@
<template>
<div class="fillInQuestion">
<table v-if="data&&data.length>0" class="common_TiTable">
<tr v-for="(item,index) in data">
<tr v-for="(item,index) in data" :key="index">
<td style="width:50px;text-align:center;padding-top:8px;">
{{index+1}}</el-checkbox>
{{index+1}}
</td>
<td>
<div class="InpDIV" v-html="item.Content" v-if="commonIndex!=index" @click="changeEdit(index)"></div>
......@@ -39,7 +39,7 @@
<br />
<div class="tk_info">
1. 一个空有多种答案时请用";"隔开。如:水;H2O
</br>
<br />
2. 若试题答案是数字,可设置范围,两个数字之间用"-"。如:1-9,学生填写1到9之间的数字都算正确(包括1和9)
</div>
</div>
......
......@@ -4,30 +4,44 @@
width: 100%;
}
.v_entryProblemBold {
font-weight: bold
}
.v_entryProblemTitle {
width: 70px;
text-align: center;
padding-top: 8px;
}
</style>
<template>
<div class="v_entryProblemQuestion">
<table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
<tbody v-if="isShowAnswer" v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td style="width:40px;text-align:center;padding-top:8px;">
{{index+1}}</el-checkbox>
</td>
<td>
<div class="InpDIV" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
</td>
</tr>
</tbody>
<tbody v-if="isOperate" v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td style="width:50px;text-align:center;padding-top:8px;">
{{index+1}}</el-checkbox>
</td>
<td>
<el-input v-model="item.Content" :placeholder="'请填写第 '+(index+1)+' 空答案'"> </el-input>
</td>
</tr>
</tbody>
<template v-if="isShowAnswer">
<tbody v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td class="v_entryProblemTitle">
{{index+1}}
</td>
<td>
<div class="InpDIV" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
</td>
</tr>
</tbody>
</template>
<template v-if="isOperate">
<tbody v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td class="v_entryProblemBold">
{{index+1}}
</td>
<td>
<el-input v-model="item.Content" :placeholder="'请填写第 '+(index+1)+' 空答案'"> </el-input>
</td>
</tr>
</tbody>
</template>
<tbody>
<tr>
<td colspan="2"><span v-if="data&&data.IsMutex==1" style="font-size:13px;">答案顺序打乱也判正确</span></td>
......@@ -41,8 +55,22 @@
</tbody>
<tfoot v-if="isShowAnswer">
<tr v-if="isShowStudentAnswer">
<td colspan="2">考生答案:{{data.StundetAnswer}}</td>
<td class="v_entryProblemBold">
考生答案
</td>
<td>
</td>
</tr>
<template v-if="isShowStudentAnswer">
<tr v-for="(item,index) in data.AnswerList" :key="index">
<td class="v_entryProblemBold">
{{index+1}}
</td>
<td class="v_entryProblemBold">
{{item}}
</td>
</tr>
</template>
<tr v-if="isShowStudentAnswer">
<td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StundetScore" label="得分:" maxlength="20" />
......
......@@ -4,30 +4,45 @@
width: 100%;
}
.v_fillInBold {
font-weight: bold
}
.v_fillInTitle {
width: 70px;
text-align: center;
padding-top: 8px;
}
</style>
<template>
<div class="v_fillInQuestion">
<table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
<tbody v-if="isShowAnswer" v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td style="width:50px;text-align:center;padding-top:8px;">
{{index+1}}</el-checkbox>
</td>
<td>
<div class="InpDIV" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
</td>
</tr>
</tbody>
<tbody v-if="isOperate" v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td style="width:50px;text-align:center;padding-top:8px;">
{{index+1}}</el-checkbox>
</td>
<td>
<el-input v-model="item.Content" :placeholder="'请填写第 '+(index+1)+' 空答案'"> </el-input>
</td>
</tr>
</tbody>
<template v-if="isShowAnswer">
<tbody v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td class="v_fillInTitle">
{{index+1}}
</td>
<td>
<div class="InpDIV" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
</td>
</tr>
</tbody>
</template>
<!--可以填写-->
<template v-if="isOperate">
<tbody v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr>
<td class="v_fillInTitle">
{{index+1}}
</td>
<td>
<el-input v-model="item.Content" :placeholder="'请填写第 '+(index+1)+' 空答案'"> </el-input>
</td>
</tr>
</tbody>
</template>
<tbody>
<tr>
<td colspan="2"><span v-if="data&&data.IsMutex==1" style="font-size:13px;">答案顺序打乱也判正确</span></td>
......@@ -41,8 +56,22 @@
</tbody>
<tfoot v-if="isShowAnswer">
<tr v-if="isShowStudentAnswer">
<td colspan="2">考生答案:{{data.StundetAnswer}}</td>
<td class="v_fillInBold">
考生答案
</td>
<td>
</td>
</tr>
<template v-if="isShowStudentAnswer">
<tr v-for="(item,index) in data.AnswerList" :key="index">
<td class="v_fillInBold">
{{index+1}}
</td>
<td class="v_fillInBold">
{{item}}
</td>
</tr>
</template>
<tr v-if="isShowStudentAnswer">
<td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StundetScore" label="得分:" maxlength="20" />
......
......@@ -34,7 +34,7 @@
<td colspan="2">正确答案:{{data.Answer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2">考生答案:{{data.StundetAnswer}}</td>
<td colspan="2" style="font-weight:bold">考生答案:{{data.StundetAnswer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2">
......
......@@ -33,7 +33,7 @@
<td colspan="2">正确答案:{{data.Answer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2">考生答案:{{data.StundetAnswer}}</td>
<td colspan="2" style="font-weight:bold">考生答案:{{data.StundetAnswer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2">
......
......@@ -185,6 +185,11 @@
type: Boolean,
default: false,
},
//是否显示学生答案
isShowStudentAnswer: {
type: Boolean,
default: false
}
},
data() {
return {
......
......@@ -33,7 +33,7 @@
<td colspan="2">正确答案:{{data.Answer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2">考生答案:{{data.StundetAnswer}}</td>
<td colspan="2" style="font-weight:bold">考生答案:{{data.StundetAnswer}}</td>
</tr>
<tr v-if="isShowStudentAnswer">
<td colspan="2">
......
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