|
@@ -104,10 +104,10 @@
|
|
>
|
|
>
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<span v-if="question.problem"> 问题卷 </span>
|
|
<span v-if="question.problem"> 问题卷 </span>
|
|
- <span v-else-if="!question.selfMark">已评</span>
|
|
|
|
<span v-else-if="isArbitrated(question)">{{
|
|
<span v-else-if="isArbitrated(question)">{{
|
|
getArbitratedStatusName(question)
|
|
getArbitratedStatusName(question)
|
|
}}</span>
|
|
}}</span>
|
|
|
|
+ <span v-else-if="!question.selfMark">已评</span>
|
|
<span
|
|
<span
|
|
v-else
|
|
v-else
|
|
:key="`${question.mainNumber}_${question.subNumber}_${index}`"
|
|
:key="`${question.mainNumber}_${question.subNumber}_${index}`"
|
|
@@ -124,6 +124,19 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</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>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -225,6 +238,11 @@ const questionScore = $computed(
|
|
);
|
|
);
|
|
|
|
|
|
function numberKeyListener(event: KeyboardEvent) {
|
|
function numberKeyListener(event: KeyboardEvent) {
|
|
|
|
+ if (
|
|
|
|
+ isDisabledQuestion(markStore.currentQuestion) ||
|
|
|
|
+ markStore.currentQuestion?.problem
|
|
|
|
+ )
|
|
|
|
+ return;
|
|
// 只要修改了分值,就当做已修改
|
|
// 只要修改了分值,就当做已修改
|
|
hasModifyScore.value = true;
|
|
hasModifyScore.value = true;
|
|
|
|
|
|
@@ -349,6 +367,14 @@ watch(
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|
|
|
|
+function cancelProblem() {
|
|
|
|
+ if (!markStore.currentQuestion) return;
|
|
|
|
+
|
|
|
|
+ markStore.currentQuestion.problem = false;
|
|
|
|
+ markStore.currentQuestion.problemType = null;
|
|
|
|
+ markStore.currentQuestion.problemRemark = "";
|
|
|
|
+}
|
|
|
|
+
|
|
function submit() {
|
|
function submit() {
|
|
emit("submit");
|
|
emit("submit");
|
|
}
|
|
}
|