This commit is contained in:
2025-10-05 21:56:38 +08:00
parent 1bd25ba28f
commit d28c22ddcb
2 changed files with 8 additions and 4 deletions

View File

@@ -167,11 +167,15 @@ async function addColumns() {
const status = row.submission_info[problem.id] const status = row.submission_info[problem.id]
if (status.is_first_ac) { if (status.is_first_ac) {
backgroundColor = theme.value.primaryColor backgroundColor = theme.value.primaryColor
color = theme.value.baseColor
} else if (status.is_ac) { } else if (status.is_ac) {
backgroundColor = "#dff0d8" const success = theme.value.successColor
backgroundColor = success + "50"
color = theme.value.textColorBase
} else { } else {
backgroundColor = theme.value.warningColor const error = theme.value.errorColor
color = theme.value.errorColor backgroundColor = error + "50"
color = theme.value.textColorBase
} }
} }
return { style: { backgroundColor, color } } return { style: { backgroundColor, color } }

View File

@@ -256,7 +256,7 @@ const columns = computed(() => {
:options="resultOptions" :options="resultOptions"
/> />
</n-form-item> </n-form-item>
<n-form-item label="语言"> <n-form-item label="语言" v-if="route.name !== 'contest submissions'">
<n-select <n-select
class="select" class="select"
v-model:value="query.language" v-model:value="query.language"