【修改】编辑试卷右侧回显管关键字
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
>
|
||||
<div style="margin-bottom: 8px; white-space: pre-wrap;">
|
||||
<strong>【考点语句】:</strong><br />
|
||||
{{ answer.content }}
|
||||
{{ answer.content }},权值:{{ answer.scoreRate }}
|
||||
</div>
|
||||
|
||||
<div v-if="answer.examMysqlKeywordList && answer.examMysqlKeywordList.length">
|
||||
@@ -267,10 +267,10 @@
|
||||
|
||||
|
||||
<!-- 编程题 -->
|
||||
<template v-else-if="isCodingTestQuestion(selectedQuestion.subjectName)">
|
||||
<template v-else-if="isCodingTestQuestion(selectedSwapQuestion.subjectName)">
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【答案】</div>
|
||||
<pre style="background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;">
|
||||
{{ selectedQuestion.analysis }}
|
||||
{{ selectedSwapQuestion.analysis }}
|
||||
</pre>
|
||||
|
||||
<div style="display: flex; align-items: center; font-weight: bold; margin-bottom: 8px;">
|
||||
@@ -279,9 +279,9 @@
|
||||
</div>
|
||||
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分测试用例】</div>
|
||||
<div v-if="selectedQuestion.answerList && selectedQuestion.answerList.length">
|
||||
<div v-if="selectedSwapQuestion.answerList && selectedSwapQuestion.answerList.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.answerList"
|
||||
v-for="answer in selectedSwapQuestion.answerList"
|
||||
:key="answer.answerId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
@@ -292,9 +292,9 @@
|
||||
</div>
|
||||
<div v-else style="color: #999;">暂无测试用例信息</div>
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分关键字】</div>
|
||||
<div v-if="selectedQuestion.questionKeywords && selectedQuestion.questionKeywords.length">
|
||||
<div v-if="selectedSwapQuestion.questionKeywords && selectedSwapQuestion.questionKeywords.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.questionKeywords"
|
||||
v-for="answer in selectedSwapQuestion.questionKeywords"
|
||||
:key="answer.keywordId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
@@ -307,37 +307,37 @@
|
||||
|
||||
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分标准】</div>
|
||||
<div v-if="selectedQuestion.questionScores">
|
||||
<div v-if="selectedSwapQuestion.questionScores">
|
||||
<div
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
<div><strong>【检查程序编译】:</strong>{{ selectedQuestion.questionScores.isPass === '0' ? '是' : '否' }} , <strong>【检查程序编译百分比】:</strong>{{ selectedQuestion.questionScores.isPassScore }}%</div>
|
||||
<div><strong>【检查程序结果】:</strong>{{ selectedQuestion.questionScores.isResult === '0' ? '是' : '否' }} ,<strong>【检查程序结果百分比】:</strong>{{ selectedQuestion.questionScores.isResultScore }}%</div>
|
||||
<div><strong>【检查关键字】:</strong>{{ selectedQuestion.questionScores.isKeyword === '0' ? '是' : '否' }} , <strong>【检查关键字百分比】:</strong>{{ selectedQuestion.questionScores.isKeywordScore }}%</div>
|
||||
<div><strong>【使用测试用例】:</strong>{{ selectedQuestion.questionScores.isCompile === '0' ? '是' : '否' }} , <strong>【使用测试用例百分比】:</strong>{{ selectedQuestion.questionScores.isCompileScore }}%</div>
|
||||
<div><strong>【检查程序编译】:</strong>{{ selectedSwapQuestion.questionScores.isPass === '0' ? '是' : '否' }} , <strong>【检查程序编译百分比】:</strong>{{ selectedQuestion.questionScores.isPassScore }}%</div>
|
||||
<div><strong>【检查程序结果】:</strong>{{ selectedSwapQuestion.questionScores.isResult === '0' ? '是' : '否' }} ,<strong>【检查程序结果百分比】:</strong>{{ selectedQuestion.questionScores.isResultScore }}%</div>
|
||||
<div><strong>【检查关键字】:</strong>{{ selectedSwapQuestion.questionScores.isKeyword === '0' ? '是' : '否' }} , <strong>【检查关键字百分比】:</strong>{{ selectedQuestion.questionScores.isKeywordScore }}%</div>
|
||||
<div><strong>【使用测试用例】:</strong>{{ selectedSwapQuestion.questionScores.isCompile === '0' ? '是' : '否' }} , <strong>【使用测试用例百分比】:</strong>{{ selectedQuestion.questionScores.isCompileScore }}%</div>
|
||||
|
||||
<div><strong>【关键字得分临界值】:</strong>{{ selectedQuestion.questionScores.keywordCutoff }}%</div>
|
||||
<div><strong>【测试用例得分临界值(小于等于测试用例个数)】:</strong>{{ selectedQuestion.questionScores.compileCutoff }}</div>
|
||||
<div><strong>【关键字得分临界值】:</strong>{{ selectedSwapQuestion.questionScores.keywordCutoff }}%</div>
|
||||
<div><strong>【测试用例得分临界值(小于等于测试用例个数)】:</strong>{{ selectedSwapQuestion.questionScores.compileCutoff }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else style="color: #999;">暂无输入输出信息</div>
|
||||
|
||||
</template>
|
||||
|
||||
<template v-else-if="isProgrammingQuestion(selectedQuestion.subjectName)">
|
||||
<template v-else-if="isProgrammingQuestion(selectedSwapQuestion.subjectName)">
|
||||
<div style="display: flex; align-items: center; font-weight: bold; margin-bottom: 8px;">
|
||||
<span>【考点信息】</span>
|
||||
<div style="flex: 1; height: 1px; background: #ccc; margin-left: 10px;"></div>
|
||||
</div>
|
||||
<div v-if="selectedQuestion.answerList && selectedQuestion.answerList.length">
|
||||
<div v-if="selectedSwapQuestion.answerList && selectedSwapQuestion.answerList.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.answerList"
|
||||
v-for="answer in selectedSwapQuestion.answerList"
|
||||
:key="answer.answerId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
<div style="margin-bottom: 8px; white-space: pre-wrap;">
|
||||
<strong>【考点语句】:</strong><br />
|
||||
{{ answer.content }}
|
||||
{{ answer.content }},权值:{{ answer.scoreRate }}
|
||||
</div>
|
||||
|
||||
<div v-if="answer.examMysqlKeywordList && answer.examMysqlKeywordList.length">
|
||||
|
@@ -59,7 +59,7 @@
|
||||
>
|
||||
<div style="margin-bottom: 8px; white-space: pre-wrap;">
|
||||
<strong>【考点语句】:</strong><br />
|
||||
{{ answer.content }}
|
||||
{{ answer.content }},权值:{{ answer.scoreRate }}
|
||||
</div>
|
||||
|
||||
<div v-if="answer.examMysqlKeywordList && answer.examMysqlKeywordList.length">
|
||||
@@ -267,10 +267,10 @@
|
||||
|
||||
|
||||
<!-- 编程题 -->
|
||||
<template v-else-if="isCodingTestQuestion(selectedQuestion.subjectName)">
|
||||
<template v-else-if="isCodingTestQuestion(selectedSwapQuestion.subjectName)">
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【答案】</div>
|
||||
<pre style="background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;">
|
||||
{{ selectedQuestion.analysis }}
|
||||
{{ selectedSwapQuestion.analysis }}
|
||||
</pre>
|
||||
|
||||
<div style="display: flex; align-items: center; font-weight: bold; margin-bottom: 8px;">
|
||||
@@ -279,9 +279,9 @@
|
||||
</div>
|
||||
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分测试用例】</div>
|
||||
<div v-if="selectedQuestion.answerList && selectedQuestion.answerList.length">
|
||||
<div v-if="selectedSwapQuestion.answerList && selectedSwapQuestion.answerList.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.answerList"
|
||||
v-for="answer in selectedSwapQuestion.answerList"
|
||||
:key="answer.answerId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
@@ -292,9 +292,9 @@
|
||||
</div>
|
||||
<div v-else style="color: #999;">暂无测试用例信息</div>
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分关键字】</div>
|
||||
<div v-if="selectedQuestion.questionKeywords && selectedQuestion.questionKeywords.length">
|
||||
<div v-if="selectedSwapQuestion.questionKeywords && selectedSwapQuestion.questionKeywords.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.questionKeywords"
|
||||
v-for="answer in selectedSwapQuestion.questionKeywords"
|
||||
:key="answer.keywordId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
@@ -307,37 +307,37 @@
|
||||
|
||||
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分标准】</div>
|
||||
<div v-if="selectedQuestion.questionScores">
|
||||
<div v-if="selectedSwapQuestion.questionScores">
|
||||
<div
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
<div><strong>【检查程序编译】:</strong>{{ selectedQuestion.questionScores.isPass === '0' ? '是' : '否' }} , <strong>【检查程序编译百分比】:</strong>{{ selectedQuestion.questionScores.isPassScore }}%</div>
|
||||
<div><strong>【检查程序结果】:</strong>{{ selectedQuestion.questionScores.isResult === '0' ? '是' : '否' }} ,<strong>【检查程序结果百分比】:</strong>{{ selectedQuestion.questionScores.isResultScore }}%</div>
|
||||
<div><strong>【检查关键字】:</strong>{{ selectedQuestion.questionScores.isKeyword === '0' ? '是' : '否' }} , <strong>【检查关键字百分比】:</strong>{{ selectedQuestion.questionScores.isKeywordScore }}%</div>
|
||||
<div><strong>【使用测试用例】:</strong>{{ selectedQuestion.questionScores.isCompile === '0' ? '是' : '否' }} , <strong>【使用测试用例百分比】:</strong>{{ selectedQuestion.questionScores.isCompileScore }}%</div>
|
||||
<div><strong>【检查程序编译】:</strong>{{ selectedSwapQuestion.questionScores.isPass === '0' ? '是' : '否' }} , <strong>【检查程序编译百分比】:</strong>{{ selectedQuestion.questionScores.isPassScore }}%</div>
|
||||
<div><strong>【检查程序结果】:</strong>{{ selectedSwapQuestion.questionScores.isResult === '0' ? '是' : '否' }} ,<strong>【检查程序结果百分比】:</strong>{{ selectedQuestion.questionScores.isResultScore }}%</div>
|
||||
<div><strong>【检查关键字】:</strong>{{ selectedSwapQuestion.questionScores.isKeyword === '0' ? '是' : '否' }} , <strong>【检查关键字百分比】:</strong>{{ selectedQuestion.questionScores.isKeywordScore }}%</div>
|
||||
<div><strong>【使用测试用例】:</strong>{{ selectedSwapQuestion.questionScores.isCompile === '0' ? '是' : '否' }} , <strong>【使用测试用例百分比】:</strong>{{ selectedQuestion.questionScores.isCompileScore }}%</div>
|
||||
|
||||
<div><strong>【关键字得分临界值】:</strong>{{ selectedQuestion.questionScores.keywordCutoff }}%</div>
|
||||
<div><strong>【测试用例得分临界值(小于等于测试用例个数)】:</strong>{{ selectedQuestion.questionScores.compileCutoff }}</div>
|
||||
<div><strong>【关键字得分临界值】:</strong>{{ selectedSwapQuestion.questionScores.keywordCutoff }}%</div>
|
||||
<div><strong>【测试用例得分临界值(小于等于测试用例个数)】:</strong>{{ selectedSwapQuestion.questionScores.compileCutoff }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else style="color: #999;">暂无输入输出信息</div>
|
||||
|
||||
</template>
|
||||
|
||||
<template v-else-if="isProgrammingQuestion(selectedQuestion.subjectName)">
|
||||
<template v-else-if="isProgrammingQuestion(selectedSwapQuestion.subjectName)">
|
||||
<div style="display: flex; align-items: center; font-weight: bold; margin-bottom: 8px;">
|
||||
<span>【考点信息】</span>
|
||||
<div style="flex: 1; height: 1px; background: #ccc; margin-left: 10px;"></div>
|
||||
</div>
|
||||
<div v-if="selectedQuestion.answerList && selectedQuestion.answerList.length">
|
||||
<div v-if="selectedSwapQuestion.answerList && selectedSwapQuestion.answerList.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.answerList"
|
||||
v-for="answer in selectedSwapQuestion.answerList"
|
||||
:key="answer.answerId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
<div style="margin-bottom: 8px; white-space: pre-wrap;">
|
||||
<strong>【考点语句】:</strong><br />
|
||||
{{ answer.content }}
|
||||
{{ answer.content }},权值:{{ answer.scoreRate }}
|
||||
</div>
|
||||
|
||||
<div v-if="answer.examMysqlKeywordList && answer.examMysqlKeywordList.length">
|
||||
|
@@ -59,7 +59,7 @@
|
||||
>
|
||||
<div style="margin-bottom: 8px; white-space: pre-wrap;">
|
||||
<strong>【考点语句】:</strong><br />
|
||||
{{ answer.content }}
|
||||
{{ answer.content }},权值:{{ answer.scoreRate }}
|
||||
</div>
|
||||
|
||||
<div v-if="answer.examMysqlKeywordList && answer.examMysqlKeywordList.length">
|
||||
@@ -267,10 +267,10 @@
|
||||
|
||||
|
||||
<!-- 编程题 -->
|
||||
<template v-else-if="isCodingTestQuestion(selectedQuestion.subjectName)">
|
||||
<template v-else-if="isCodingTestQuestion(selectedSwapQuestion.subjectName)">
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【答案】</div>
|
||||
<pre style="background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;">
|
||||
{{ selectedQuestion.analysis }}
|
||||
{{ selectedSwapQuestion.analysis }}
|
||||
</pre>
|
||||
|
||||
<div style="display: flex; align-items: center; font-weight: bold; margin-bottom: 8px;">
|
||||
@@ -279,9 +279,9 @@
|
||||
</div>
|
||||
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分测试用例】</div>
|
||||
<div v-if="selectedQuestion.answerList && selectedQuestion.answerList.length">
|
||||
<div v-if="selectedSwapQuestion.answerList && selectedSwapQuestion.answerList.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.answerList"
|
||||
v-for="answer in selectedSwapQuestion.answerList"
|
||||
:key="answer.answerId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
@@ -292,9 +292,9 @@
|
||||
</div>
|
||||
<div v-else style="color: #999;">暂无测试用例信息</div>
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分关键字】</div>
|
||||
<div v-if="selectedQuestion.questionKeywords && selectedQuestion.questionKeywords.length">
|
||||
<div v-if="selectedSwapQuestion.questionKeywords && selectedSwapQuestion.questionKeywords.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.questionKeywords"
|
||||
v-for="answer in selectedSwapQuestion.questionKeywords"
|
||||
:key="answer.keywordId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
@@ -307,37 +307,37 @@
|
||||
|
||||
|
||||
<div style="font-weight: bold; margin-bottom: 8px;">【判分标准】</div>
|
||||
<div v-if="selectedQuestion.questionScores">
|
||||
<div v-if="selectedSwapQuestion.questionScores">
|
||||
<div
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
<div><strong>【检查程序编译】:</strong>{{ selectedQuestion.questionScores.isPass === '0' ? '是' : '否' }} , <strong>【检查程序编译百分比】:</strong>{{ selectedQuestion.questionScores.isPassScore }}%</div>
|
||||
<div><strong>【检查程序结果】:</strong>{{ selectedQuestion.questionScores.isResult === '0' ? '是' : '否' }} ,<strong>【检查程序结果百分比】:</strong>{{ selectedQuestion.questionScores.isResultScore }}%</div>
|
||||
<div><strong>【检查关键字】:</strong>{{ selectedQuestion.questionScores.isKeyword === '0' ? '是' : '否' }} , <strong>【检查关键字百分比】:</strong>{{ selectedQuestion.questionScores.isKeywordScore }}%</div>
|
||||
<div><strong>【使用测试用例】:</strong>{{ selectedQuestion.questionScores.isCompile === '0' ? '是' : '否' }} , <strong>【使用测试用例百分比】:</strong>{{ selectedQuestion.questionScores.isCompileScore }}%</div>
|
||||
<div><strong>【检查程序编译】:</strong>{{ selectedSwapQuestion.questionScores.isPass === '0' ? '是' : '否' }} , <strong>【检查程序编译百分比】:</strong>{{ selectedQuestion.questionScores.isPassScore }}%</div>
|
||||
<div><strong>【检查程序结果】:</strong>{{ selectedSwapQuestion.questionScores.isResult === '0' ? '是' : '否' }} ,<strong>【检查程序结果百分比】:</strong>{{ selectedQuestion.questionScores.isResultScore }}%</div>
|
||||
<div><strong>【检查关键字】:</strong>{{ selectedSwapQuestion.questionScores.isKeyword === '0' ? '是' : '否' }} , <strong>【检查关键字百分比】:</strong>{{ selectedQuestion.questionScores.isKeywordScore }}%</div>
|
||||
<div><strong>【使用测试用例】:</strong>{{ selectedSwapQuestion.questionScores.isCompile === '0' ? '是' : '否' }} , <strong>【使用测试用例百分比】:</strong>{{ selectedQuestion.questionScores.isCompileScore }}%</div>
|
||||
|
||||
<div><strong>【关键字得分临界值】:</strong>{{ selectedQuestion.questionScores.keywordCutoff }}%</div>
|
||||
<div><strong>【测试用例得分临界值(小于等于测试用例个数)】:</strong>{{ selectedQuestion.questionScores.compileCutoff }}</div>
|
||||
<div><strong>【关键字得分临界值】:</strong>{{ selectedSwapQuestion.questionScores.keywordCutoff }}%</div>
|
||||
<div><strong>【测试用例得分临界值(小于等于测试用例个数)】:</strong>{{ selectedSwapQuestion.questionScores.compileCutoff }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else style="color: #999;">暂无输入输出信息</div>
|
||||
|
||||
</template>
|
||||
|
||||
<template v-else-if="isProgrammingQuestion(selectedQuestion.subjectName)">
|
||||
<template v-else-if="isProgrammingQuestion(selectedSwapQuestion.subjectName)">
|
||||
<div style="display: flex; align-items: center; font-weight: bold; margin-bottom: 8px;">
|
||||
<span>【考点信息】</span>
|
||||
<div style="flex: 1; height: 1px; background: #ccc; margin-left: 10px;"></div>
|
||||
</div>
|
||||
<div v-if="selectedQuestion.answerList && selectedQuestion.answerList.length">
|
||||
<div v-if="selectedSwapQuestion.answerList && selectedSwapQuestion.answerList.length">
|
||||
<div
|
||||
v-for="answer in selectedQuestion.answerList"
|
||||
v-for="answer in selectedSwapQuestion.answerList"
|
||||
:key="answer.answerId"
|
||||
style="margin-bottom: 12px; background: #f5f5f5; padding: 10px; border-radius: 4px; font-family: monospace;"
|
||||
>
|
||||
<div style="margin-bottom: 8px; white-space: pre-wrap;">
|
||||
<strong>【考点语句】:</strong><br />
|
||||
{{ answer.content }}
|
||||
{{ answer.content }},权值:{{ answer.scoreRate }}
|
||||
</div>
|
||||
|
||||
<div v-if="answer.examMysqlKeywordList && answer.examMysqlKeywordList.length">
|
||||
|
Reference in New Issue
Block a user