perf(员工培训): 按人事要求在员工培训答题过程中不支持修复答案
This commit is contained in:
1 parent
cd81911514
commit
49629aeb0f
2 files changed
+17
-19
No files matched your search
@@ -542,16 +542,20 @@ const handleStageCardClick = (stageKey: string) => {
|
||||
:key="option.id"
|
||||
type="button"
|
||||
class="rounded-2xl border px-3.5 py-2 text-left text-sm leading-5 transition"
|
||||
:disabled="workspace.answerLocked"
|
||||
:aria-disabled="workspace.answerLocked"
|
||||
:class="[
|
||||
workspace.selectedOptionId === option.id
|
||||
? workspace.answerLocked
|
||||
? option.id === workspace.currentQuestion.answer
|
||||
? 'border-emerald-300 bg-emerald-50 text-emerald-700'
|
||||
: 'border-red-300 bg-red-50 text-red-700'
|
||||
? 'cursor-not-allowed border-emerald-300 bg-emerald-50 text-emerald-700'
|
||||
: 'cursor-not-allowed border-red-300 bg-red-50 text-red-700'
|
||||
: 'border-brand-300 bg-brand-50 text-brand-700'
|
||||
: workspace.answerLocked && option.id === workspace.currentQuestion.answer
|
||||
? 'border-emerald-300 bg-emerald-50 text-emerald-700'
|
||||
: 'border-default bg-white text-secondary hover:border-brand-200 hover:bg-brand-50/40',
|
||||
? 'cursor-not-allowed border-emerald-300 bg-emerald-50 text-emerald-700'
|
||||
: workspace.answerLocked
|
||||
? 'cursor-not-allowed border-default bg-surface-soft text-muted'
|
||||
: 'border-default bg-white text-secondary hover:border-brand-200 hover:bg-brand-50/40',
|
||||
]"
|
||||
@click="workspace.selectAnswer(option.id)"
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user