dix
This commit is contained in:
@@ -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 } }
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user