Commit 42920565 authored by 黄奎's avatar 黄奎

页面修改

parent 2e105b21
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<template> <template>
<div class="singleQuestion"> <div class="singleQuestion">
<table v-if="data&&data.length>0" class="common_TiTable"> <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;"> <td style="width:40px;text-align:center;">
<div class="Answer_List" @click="ChangeItem(item)" :class="{'Is_Answer':item.IsAnswer}"> <div class="Answer_List" @click="ChangeItem(item)" :class="{'Is_Answer':item.IsAnswer}">
{{item.Name}} {{item.Name}}
......
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
cursor: pointer; cursor: pointer;
} }
.vClozeQuestionBold {
font-weight: bold;
}
</style> </style>
<template> <template>
<div class="vClozeQuestion"> <div class="vClozeQuestion">
...@@ -66,19 +70,20 @@ ...@@ -66,19 +70,20 @@
</tbody> </tbody>
<tfoot v-if="isShowAnswer"> <tfoot v-if="isShowAnswer">
<tr> <tr>
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="vClozeQuestionBold">
答案: {{data.QuestionAnswerList[index].SubAnswer}} 答案: {{data.QuestionAnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr> <tr>
<td v-if="isShowStudentAnswer" colspan="2" style="font-weight:bold"> <td v-if="isShowStudentAnswer" colspan="2" class="vClozeQuestionBold">
考生答案: {{data.AnswerList[index].SubAnswer}} 考生答案: {{data.AnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.AnswerList[index].StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white"
@input="getQuestionScore" /> v-model="data.AnswerList[index].StudentScore" label="得分:" maxlength="20" @input="getQuestionScore" />
<span v-else class="vClozeQuestionBold">考生得分:{{data.AnswerList[index].StudentScore}}</span>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
...@@ -118,6 +123,11 @@ ...@@ -118,6 +123,11 @@
isShowScore: { isShowScore: {
type: Boolean, type: Boolean,
default: false, default: false,
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -73,8 +73,9 @@ ...@@ -73,8 +73,9 @@
</template> </template>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
@input="getQuestionScore" /> maxlength="20" @input="getQuestionScore" />
<span v-else class="v_entryProblemBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -104,6 +105,11 @@ ...@@ -104,6 +105,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -74,8 +74,9 @@ ...@@ -74,8 +74,9 @@
</template> </template>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20"
@input="getQuestionScore" /> @input="getQuestionScore" />
<span v-else class="v_fillInBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -104,6 +105,11 @@ ...@@ -104,6 +105,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
width: 100%; width: 100%;
} }
.v_judgeQuestionBold {
font-weight: bold
}
</style> </style>
<template> <template>
<div class="v_judgeQuestion"> <div class="v_judgeQuestion">
...@@ -31,15 +35,16 @@ ...@@ -31,15 +35,16 @@
</tbody> </tbody>
<tfoot v-if="isShowAnswer"> <tfoot v-if="isShowAnswer">
<tr> <tr>
<td colspan="2">正确答案:{{data.Answer}}</td> <td colspan="2" class="v_judgeQuestionBold">正确答案:{{data.Answer}}</td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2" style="font-weight:bold">考生答案:{{data.StundetAnswer}}</td> <td colspan="2" class="v_judgeQuestionBold">考生答案:{{data.StundetAnswer}}</td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
@input="getQuestionScore" /> maxlength="20" @input="getQuestionScore" />
<span v-else class="v_judgeQuestionBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -69,6 +74,11 @@ ...@@ -69,6 +74,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
margin: 13px 12px 0 0; margin: 13px 12px 0 0;
} }
.v_matchingQuestionBold {
font-weight: bold;
}
</style> </style>
<template> <template>
<div class="v_matchingQuestion"> <div class="v_matchingQuestion">
...@@ -79,14 +83,15 @@ ...@@ -79,14 +83,15 @@
</tr> </tr>
<tfoot> <tfoot>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="3" style="font-weight:bold"> <td colspan="3" class="v_matchingQuestionBold">
考生答案:{{data.StundetAnswer}} 考生答案:{{data.StundetAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="3"> <td colspan="3">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
@input="getQuestionScore" /> maxlength="20" @input="getQuestionScore" />
<span v-else class="v_matchingQuestionBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -118,6 +123,11 @@ ...@@ -118,6 +123,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
width: 100%; width: 100%;
} }
.v_multipleQuestionBold {
font-weight: bold;
}
</style> </style>
<template> <template>
<div class="v_multipleQuestion"> <div class="v_multipleQuestion">
...@@ -30,14 +34,16 @@ ...@@ -30,14 +34,16 @@
</tbody> </tbody>
<tfoot v-if="isShowAnswer"> <tfoot v-if="isShowAnswer">
<tr> <tr>
<td colspan="2">正确答案:{{data.Answer}}</td> <td colspan="2" class="v_multipleQuestionBold">正确答案:{{data.Answer}}</td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2" style="font-weight:bold">考生答案:{{data.StundetAnswer}}</td> <td colspan="2" class="v_multipleQuestionBold">考生答案:{{data.StundetAnswer}}</td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" @input="getQuestionScore" /> <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
maxlength="20" @input="getQuestionScore" />
<span v-else class="v_multipleQuestionBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -67,6 +73,11 @@ ...@@ -67,6 +73,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
cursor: pointer; cursor: pointer;
} }
.v_readingComprehensioQuestionBold {
font-weight: bold;
}
</style> </style>
<template> <template>
<div class="v_readingComprehensioQuestion"> <div class="v_readingComprehensioQuestion">
...@@ -85,19 +89,20 @@ ...@@ -85,19 +89,20 @@
</td> </td>
</tr> </tr>
<tr v-if="isShowAnswer"> <tr v-if="isShowAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
答案: {{data.QuestionAnswerList[index].SubAnswer}} 答案: {{data.QuestionAnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
学生答案: {{data.AnswerList[index].SubAnswer}} 学生答案: {{data.AnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.AnswerList[index].StudentScore" label="得分:" <q-input v-if="isEditStudentScore" standout="bg-primary text-white"
maxlength="20" @input="getQuestionScore" /> v-model="data.AnswerList[index].StudentScore" label="得分:" maxlength="20" @input="getQuestionScore" />
<span v-else class="v_readingComprehensioQuestionBold">考生得分:{{data.AnswerList[index].StudentScore}}</span>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -114,19 +119,20 @@ ...@@ -114,19 +119,20 @@
</tr> </tr>
</template> </template>
<tr v-if="isShowAnswer"> <tr v-if="isShowAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
答案: {{data.QuestionAnswerList[index].SubAnswer}} 答案: {{data.QuestionAnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
学生答案: {{data.AnswerList[index].SubAnswer}} 学生答案: {{data.AnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.AnswerList[index].StudentScore" label="得分:" <q-input v-if="isEditStudentScore" standout="bg-primary text-white"
maxlength="20" @input="getQuestionScore" /> v-model="data.AnswerList[index].StudentScore" label="得分:" maxlength="20" @input="getQuestionScore" />
<span v-else class="v_readingComprehensioQuestionBold">考生得分:{{data.AnswerList[index].StudentScore}}</span>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -157,19 +163,20 @@ ...@@ -157,19 +163,20 @@
</tr> </tr>
</template> </template>
<tr v-if="isShowAnswer"> <tr v-if="isShowAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
答案: {{data.QuestionAnswerList[index].SubAnswer}} 答案: {{data.QuestionAnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
学生答案: {{data.AnswerList[index].SubAnswer}} 学生答案: {{data.AnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.AnswerList[index].StudentScore" label="得分:" <q-input v-if="isEditStudentScore" standout="bg-primary text-white"
maxlength="20" @input="getQuestionScore" /> v-model="data.AnswerList[index].StudentScore" label="得分:" maxlength="20" @input="getQuestionScore" />
<span v-else class="v_readingComprehensioQuestionBold">考生得分:{{data.AnswerList[index].StudentScore}}</span>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -183,19 +190,20 @@ ...@@ -183,19 +190,20 @@
</tr> </tr>
</template> </template>
<tr v-if="isShowAnswer"> <tr v-if="isShowAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
答案: {{data.QuestionAnswerList[index].SubAnswer}} 答案: {{data.QuestionAnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2" style="font-weight:bold"> <td colspan="2" class="v_readingComprehensioQuestionBold">
学生答案: {{data.AnswerList[index].SubAnswer}} 学生答案: {{data.AnswerList[index].SubAnswer}}
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.AnswerList[index].StudentScore" label="得分:" <q-input v-if="isEditStudentScore" standout="bg-primary text-white"
maxlength="20" @input="getQuestionScore" /> v-model="data.AnswerList[index].StudentScore" label="得分:" maxlength="20" @input="getQuestionScore" />
<span v-else class="v_readingComprehensioQuestionBold">考生得分:{{data.AnswerList[index].StudentScore}}</span>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -229,6 +237,11 @@ ...@@ -229,6 +237,11 @@
isShowScore: { isShowScore: {
type: Boolean, type: Boolean,
default: false, default: false,
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
<!--共用选择题--> <!--共用选择题-->
<style> <style>
.sharingChooseQuestion { .v_sharingChooseQuestion {
width: 100%; width: 100%;
} }
...@@ -11,9 +11,13 @@ ...@@ -11,9 +11,13 @@
margin-left: 13px; margin-left: 13px;
} }
.v_sharingChooseQuestionBold {
font-weight: bold;
}
</style> </style>
<template> <template>
<div class="sharingChooseQuestion"> <div class="v_sharingChooseQuestion">
<table v-if="data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable"> <table v-if="data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
<thead> <thead>
<tr> <tr>
...@@ -63,14 +67,15 @@ ...@@ -63,14 +67,15 @@
</tbody> </tbody>
<tfoot v-if="isShowStudentAnswer"> <tfoot v-if="isShowStudentAnswer">
<tr> <tr>
<td colspan="2" style="font-weight:bold;"> <td colspan="2" class="v_sharingChooseQuestionBold">
考生答案:{{data.StundetAnswer}} 考生答案:{{data.StundetAnswer}}
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
@input="getQuestionScore" /> maxlength="20" @input="getQuestionScore" />
<span v-else class="v_sharingChooseQuestionBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
...@@ -97,6 +102,11 @@ ...@@ -97,6 +102,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
components: { components: {
......
...@@ -5,26 +5,31 @@ ...@@ -5,26 +5,31 @@
margin-bottom: 20px; margin-bottom: 20px;
} }
.v_shortAnswerQuestionBold {
font-weight: bold;
}
</style> </style>
<template> <template>
<div class="v_shortAnswerQuestion"> <div class="v_shortAnswerQuestion">
<div style="display:flex;" v-if="isShowAnswer"> <div style="display:flex;" v-if="isShowAnswer">
<div style="font-weight:bold;">答案:</div> <div class="v_shortAnswerQuestionBold">答案:</div>
<div v-html="data.Answer"></div> <div v-html="data.Answer"></div>
</div> </div>
<div style="display:flex;" v-if="isOperate"> <div style="display:flex;" v-if="isOperate">
<el-input v-model="data.Answer" placeholder="请填写问题答案"> </el-input> <el-input v-model="data.Answer" placeholder="请填写问题答案"> </el-input>
</div> </div>
<div v-if="isShowStudentAnswer" style="display:flex;"> <div v-if="isShowStudentAnswer" style="display:flex;">
<div style="font-weight:bold;">考生答案:</div> <div class="v_shortAnswerQuestionBold">考生答案:</div>
<div v-html="data.StundetAnswer"></div> <div v-html="data.StundetAnswer"></div>
</div> </div>
<div v-if="isShowStudentAnswer" style="display:flex;"> <div v-if="isShowStudentAnswer" style="display:flex;">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
@input="getQuestionScore" /> maxlength="20" @input="getQuestionScore" />
<span v-else class="v_shortAnswerQuestionBold">考生得分:{{data.StudentScore}}</span>
</div> </div>
<div style="display:flex;" v-if="isShowAnswer"> <div style="display:flex;" v-if="isShowAnswer">
<div style="font-weight:bold;">解析:</div> <div class="v_shortAnswerQuestionBold">解析:</div>
<div v-html="data.AnswerParse"></div> <div v-html="data.AnswerParse"></div>
</div> </div>
</div> </div>
...@@ -49,6 +54,11 @@ ...@@ -49,6 +54,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
width: 100%; width: 100%;
} }
.v_singleQuestionBold {
font-weight: bold;
}
</style> </style>
<!--单选题查看--> <!--单选题查看-->
<template> <template>
...@@ -30,14 +34,16 @@ ...@@ -30,14 +34,16 @@
</tbody> </tbody>
<tfoot v-if="isShowAnswer"> <tfoot v-if="isShowAnswer">
<tr> <tr>
<td colspan="2">正确答案:{{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" style="font-weight:bold">考生答案:{{data.StundetAnswer}}</td> <td colspan="2" class="v_singleQuestionBold">考生答案:{{data.StundetAnswer}}</td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" @input="getQuestionScore" /> <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
maxlength="20" @input="getQuestionScore" />
<span v-else class="v_singleQuestionBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -64,9 +70,14 @@ ...@@ -64,9 +70,14 @@
default: false, default: false,
}, },
//是否显示学生答案 //是否显示学生答案
isShowStudentAnswer:{ isShowStudentAnswer: {
type:Boolean, type: Boolean,
default:false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
<!--排序题--> <!--排序题-->
<style> <style>
.sortingProblemQuestion { .v_sortingProblemQuestion {
width: 100% width: 100%
} }
...@@ -32,11 +32,15 @@ ...@@ -32,11 +32,15 @@
box-shadow: 0 0 7px 1px #75BAFF; box-shadow: 0 0 7px 1px #75BAFF;
} }
.v_sortingProblemQuestionBold {
font-weight: bold;
}
</style> </style>
<template> <template>
<div class="sortingProblemQuestion"> <div class="v_sortingProblemQuestion">
<table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0"> <table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0">
<tr v-for="(item,index) in data.QuestionContentObj[0]"> <tr v-for="(item,index) in data.QuestionContentObj[0]" :key="index">
<td style="width:40px;text-align:center;"> <td style="width:40px;text-align:center;">
{{item.Name}} {{item.Name}}
</td> </td>
...@@ -65,24 +69,25 @@ ...@@ -65,24 +69,25 @@
<table v-if="isShowAnswer"> <table v-if="isShowAnswer">
<tr> <tr>
<td> <td>
<span style="font-weight:bold;">答案:</span> <span class="v_sortingProblemQuestionBold">答案:</span>
<span> <span class="v_sortingProblemQuestionBold">
{{data.Answer}} {{data.Answer}}
</span> </span>
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td> <td>
<span style="font-weight:bold;">考生答案:</span> <span class="v_sortingProblemQuestionBold">考生答案:</span>
<span style="font-weight:bold;"> <span class="v_sortingProblemQuestionBold">
{{data.StundetAnswer}} {{data.StundetAnswer}}
</span> </span>
</td> </td>
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td> <td>
<q-input standout="bg-primary text-white" v-model="data.StudentScore" label="得分:" maxlength="20" <q-input v-if="isEditStudentScore" standout="bg-primary text-white" v-model="data.StudentScore" label="得分:"
@input="getQuestionScore" /> maxlength="20" @input="getQuestionScore" />
<span v-else class="v_sortingProblemQuestionBold">考生得分:{{data.StudentScore}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -113,6 +118,11 @@ ...@@ -113,6 +118,11 @@
isShowStudentAnswer: { isShowStudentAnswer: {
type: Boolean, type: Boolean,
default: false default: false
},
//是否可以编辑学生得分
isEditStudentScore: {
type: Boolean,
default: false,
} }
}, },
data() { data() {
......
...@@ -97,6 +97,12 @@ ...@@ -97,6 +97,12 @@
label: "班级名称", label: "班级名称",
field: "ClassName", field: "ClassName",
align: "left", align: "left",
},
{
name: "ExamStatusName",
label: "状态",
field: "ExamStatusName",
align: "left",
}, },
{ {
name: "optioned", name: "optioned",
......
...@@ -252,13 +252,11 @@ ...@@ -252,13 +252,11 @@
{{DataObj.PaperName}} <br /> {{DataObj.PaperName}} <br />
题量:{{examNum}} &nbsp;&nbsp;&nbsp; 满分:{{examScore}} 题量:{{examNum}} &nbsp;&nbsp;&nbsp; 满分:{{examScore}}
<br /> <br />
学生总得分:{{studentScore}} 学生总得分:{{studentScore}}<br />
<q-input filled stack-label maxlength="100" :dense="false" v-model="DataObj.StuComment" 评语:{{DataObj.StuComment}} <br/>
class="col-6 q-pb-lg q-pr-lg" label="评语" />
</div> </div>
</div> </div>
<div style="width:20%;text-align:right;"> <div style="width:20%;text-align:right;">
<!-- <q-btn color="accent" size="sm" class="q-mr-md" @click="submitTeacherScoring()" label="提交阅卷" /> -->
<q-btn color="accent" size="sm" class="q-mr-md" @click="goBack()" label="返回" /> <q-btn color="accent" size="sm" class="q-mr-md" @click="goBack()" label="返回" />
</div> </div>
</div> </div>
...@@ -366,7 +364,7 @@ ...@@ -366,7 +364,7 @@
vSharingchoose vSharingchoose
}, },
meta: { meta: {
title: "阅卷" title: "考生试卷详情"
}, },
watch: { watch: {
...@@ -391,8 +389,9 @@ ...@@ -391,8 +389,9 @@
PaperConfig: {}, //试卷配置 PaperConfig: {}, //试卷配置
isShowAnswer: true, //是否显示答案 isShowAnswer: true, //是否显示答案
isShowStudentAnswer: true, //是否显示学生答案, isShowStudentAnswer: true, //是否显示学生答案,
isShowScore:true,//是否显示完型填空、阅读理解、听力,小题分数 isShowScore: true, //是否显示完型填空、阅读理解、听力,小题分数
studentScore: 0, //学生总得分 studentScore: 0, //学生总得分
examScore: 0, //总分, examScore: 0, //总分,
examNum: 0, //总题量 examNum: 0, //总题量
} }
...@@ -447,16 +446,18 @@ ...@@ -447,16 +446,18 @@
GetPaperInfo() { GetPaperInfo() {
queryPaperDetails(this.msg).then(res => { queryPaperDetails(this.msg).then(res => {
var tempData = res.Data; var tempData = res.Data;
console.log("tempData", tempData);
if (res.Code == 1) { if (res.Code == 1) {
this.DataObj.PaperId = tempData.Paper.PaperId; this.DataObj.PaperId = tempData.Paper.PaperId;
this.DataObj.PaperName = tempData.Paper.PaperName; this.DataObj.PaperName = tempData.Paper.PaperName;
this.DataObj.GuestId = tempData.Paper.GuestId; this.DataObj.GuestId = tempData.Paper.GuestId;
this.DataObj.PublishId = tempData.Paper.PublishId; this.DataObj.PublishId = tempData.Paper.PublishId;
this.DataObj.StuComment = tempData.StuComment; this.DataObj.StuComment = tempData.StuComment;
if (tempData.Paper.GroupList && tempData.Paper.GroupList.length > 0) { if (tempData.Paper.GroupList && tempData.Paper.GroupList.length > 0) {
this.DataObj.GroupList = tempData.Paper.GroupList; this.DataObj.GroupList = tempData.Paper.GroupList;
} }
this.PaperConfig = tempData.Publish; this.PaperConfig = tempData.Publish;
this.studentScore = tempData.TotalScore
this.calcPaper(); this.calcPaper();
} }
}) })
...@@ -465,7 +466,6 @@ ...@@ -465,7 +466,6 @@
calcPaper() { calcPaper() {
this.examScore = 0; this.examScore = 0;
this.examNum = 0; this.examNum = 0;
this.studentScore = 0;
if (this.DataObj && this.DataObj.GroupList) { if (this.DataObj && this.DataObj.GroupList) {
this.DataObj.GroupList.forEach(x => { this.DataObj.GroupList.forEach(x => {
if (x.DetailsList && x.DetailsList.length > 0) { if (x.DetailsList && x.DetailsList.length > 0) {
...@@ -473,7 +473,6 @@ ...@@ -473,7 +473,6 @@
x.DetailsList.forEach(y => { x.DetailsList.forEach(y => {
if (y.Score) { if (y.Score) {
this.examScore += Number(y.Score); this.examScore += Number(y.Score);
this.studentScore += Number(y.StudentScore)
} }
}) })
} }
...@@ -482,9 +481,13 @@ ...@@ -482,9 +481,13 @@
}, },
//返回 //返回
goBack() { goBack() {
var qMsg = {
Id: this.msg.PublishId
};
this.$router.push({ this.$router.push({
path: '/exam/examlist' path: '/exam/examineeManager',
}) query: qMsg
});
}, },
//老师提交阅卷 //老师提交阅卷
submitTeacherScoring() { submitTeacherScoring() {
......
...@@ -276,19 +276,19 @@ ...@@ -276,19 +276,19 @@
<!--单选题--> <!--单选题-->
<v-single v-if="dItem.QuestionTypeKey=='single'||dItem.QuestionTypeKey=='single-number'" <v-single v-if="dItem.QuestionTypeKey=='single'||dItem.QuestionTypeKey=='single-number'"
:questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer" :questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer"
@getScore="calcPaper"> @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-single> </v-single>
<!--多选题--> <!--多选题-->
<v-multiple v-if="dItem.QuestionTypeKey=='multiple'" :questionObj="dItem" :isShowAnswer="isShowAnswer" <v-multiple v-if="dItem.QuestionTypeKey=='multiple'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"> :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-multiple> </v-multiple>
<!--填空题--> <!--填空题-->
<v-fillin v-if="dItem.QuestionTypeKey=='fill-in'" :questionObj="dItem" :isShowAnswer="isShowAnswer" <v-fillin v-if="dItem.QuestionTypeKey=='fill-in'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"> :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-fillin> </v-fillin>
<!--判断题--> <!--判断题-->
<v-judge v-if="dItem.QuestionTypeKey=='judge'" :questionObj="dItem" :isShowAnswer="isShowAnswer" <v-judge v-if="dItem.QuestionTypeKey=='judge'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"></v-judge> :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isEditStudentScore="isEditStudentScore"></v-judge>
<!--简答题、名词解释、论述题、计算题、口语题、其它--> <!--简答题、名词解释、论述题、计算题、口语题、其它-->
<v-shortanswer v-if="dItem.QuestionTypeKey=='short-answer' <v-shortanswer v-if="dItem.QuestionTypeKey=='short-answer'
...@@ -297,37 +297,37 @@ ...@@ -297,37 +297,37 @@
||dItem.QuestionTypeKey=='calculation' ||dItem.QuestionTypeKey=='calculation'
|| dItem.QuestionTypeKey=='spoken' || dItem.QuestionTypeKey=='spoken'
|| dItem.QuestionTypeKey=='other'" :questionObj="dItem" :isShowAnswer="isShowAnswer" || dItem.QuestionTypeKey=='other'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"> :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-shortanswer> </v-shortanswer>
<!--分录题、资料题--> <!--分录题、资料题-->
<v-entryproblem v-if="dItem.QuestionTypeKey=='entry-problem'|| dItem.QuestionTypeKey=='data-question'" <v-entryproblem v-if="dItem.QuestionTypeKey=='entry-problem'|| dItem.QuestionTypeKey=='data-question'"
:questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer" :questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer"
@getScore="calcPaper"> @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-entryproblem> </v-entryproblem>
<!--连线题--> <!--连线题-->
<v-matching v-if="dItem.QuestionTypeKey=='matching'" :questionObj="dItem" :isShowAnswer="isShowAnswer" <v-matching v-if="dItem.QuestionTypeKey=='matching'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"> :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-matching> </v-matching>
<!--排序题--> <!--排序题-->
<v-sortingproblem v-if="dItem.QuestionTypeKey=='sorting-problem'" :questionObj="dItem" <v-sortingproblem v-if="dItem.QuestionTypeKey=='sorting-problem'" :questionObj="dItem"
:isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"> :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-sortingproblem> </v-sortingproblem>
<!--完型填空--> <!--完型填空-->
<v-cloze v-if="dItem.QuestionTypeKey=='cloze'" :questionObj="dItem" :isShowAnswer="isShowAnswer" <v-cloze v-if="dItem.QuestionTypeKey=='cloze'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isShowScore="isShowScore"></v-cloze> :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isShowScore="isShowScore" :isEditStudentScore="isEditStudentScore"></v-cloze>
<!--阅读理解、听力题--> <!--阅读理解、听力题-->
<v-readingcomprehensio <v-readingcomprehensio
v-if="dItem.QuestionTypeKey=='reading-comprehensio'||dItem.QuestionTypeKey=='listening'" v-if="dItem.QuestionTypeKey=='reading-comprehensio'||dItem.QuestionTypeKey=='listening'"
:questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer" :questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer"
@getScore="calcPaper" :isShowScore="isShowScore"> @getScore="calcPaper" :isShowScore="isShowScore" :isEditStudentScore="isEditStudentScore">
</v-readingcomprehensio> </v-readingcomprehensio>
<!--共用选择题--> <!--共用选择题-->
<v-sharingchoose v-if="dItem.QuestionTypeKey=='sharing-choose'" :questionObj="dItem" <v-sharingchoose v-if="dItem.QuestionTypeKey=='sharing-choose'" :questionObj="dItem"
:isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"> :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isEditStudentScore="isEditStudentScore">
</v-sharingchoose> </v-sharingchoose>
</div> </div>
</div> </div>
...@@ -392,6 +392,7 @@ ...@@ -392,6 +392,7 @@
isShowAnswer: true, //是否显示答案 isShowAnswer: true, //是否显示答案
isShowStudentAnswer: true, //是否显示学生答案 isShowStudentAnswer: true, //是否显示学生答案
isShowScore: true, //是否显示完型填空、阅读理解、听力,小题分数 isShowScore: true, //是否显示完型填空、阅读理解、听力,小题分数
isEditStudentScore:true,//是否可以编辑学生得分
studentScore: 0, //学生总得分 studentScore: 0, //学生总得分
examScore: 0, //总分, examScore: 0, //总分,
examNum: 0, //总题量 examNum: 0, //总题量
......
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