|
@@ -82,20 +82,17 @@
|
|
|
{{ question.mainNumber }}-{{ question.subNumber }}
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div v-if="question.problem" class="question-score is-problem">
|
|
|
+ 问题卷
|
|
|
+ </div>
|
|
|
<div
|
|
|
- v-if="isDisabledQuestion(question)"
|
|
|
- :class="[
|
|
|
- 'question-score',
|
|
|
- {
|
|
|
- 'is-problem': question.problem || isArbitrated(question),
|
|
|
- },
|
|
|
- ]"
|
|
|
+ v-else-if="isArbitrated(question)"
|
|
|
+ class="question-score is-problem"
|
|
|
>
|
|
|
- <span v-if="question.problem"> 问题卷 </span>
|
|
|
- <span v-else-if="!question.selfMark">已评</span>
|
|
|
- <span v-else-if="isArbitrated(question)">{{
|
|
|
- getArbitratedStatusName(question)
|
|
|
- }}</span>
|
|
|
+ {{ getArbitratedStatusName(question) }}
|
|
|
+ </div>
|
|
|
+ <div v-else-if="!question.selfMark" class="question-score">
|
|
|
+ 已评
|
|
|
</div>
|
|
|
<div v-else class="board-scores">
|
|
|
<div
|
|
@@ -114,6 +111,20 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ !markStore.historyOpen &&
|
|
|
+ markStore.currentQuestion?.problem &&
|
|
|
+ markStore.currentQuestion?.selfMark
|
|
|
+ "
|
|
|
+ class="board-footer"
|
|
|
+ >
|
|
|
+ <!-- 非回评下自己标记的问题卷才能取消 -->
|
|
|
+ <qm-button class="board-clear" @click="cancelProblem">
|
|
|
+ 取消问题卷
|
|
|
+ </qm-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -195,6 +206,14 @@ function questionScoreSteps(question: Question) {
|
|
|
return steps;
|
|
|
}
|
|
|
|
|
|
+function cancelProblem() {
|
|
|
+ if (!markStore.currentQuestion) return;
|
|
|
+
|
|
|
+ markStore.currentQuestion.problem = false;
|
|
|
+ markStore.currentQuestion.problemType = null;
|
|
|
+ markStore.currentQuestion.problemRemark = "";
|
|
|
+}
|
|
|
+
|
|
|
function submit() {
|
|
|
emit("submit");
|
|
|
}
|