refactor: move test case info alert into testcase section

This commit is contained in:
2026-05-19 04:20:16 -06:00
parent 2912c7495c
commit 8047a7af8e

View File

@@ -664,6 +664,32 @@ watch(
</div> </div>
</n-flex> </n-flex>
<n-alert
class="box"
v-if="problem.test_case_score.length"
:show-icon="false"
type="info"
>
<template #header>
<n-flex align="center">
<div>
测试组编号 {{ problem.test_case_id.slice(0, 12) }} 共有
{{ problem.test_case_score.length }}
条测试用例
</div>
<n-button
v-if="problem.id"
tertiary
type="info"
size="small"
@click="downloadTestcases"
>
下载
</n-button>
</n-flex>
</template>
</n-alert>
<n-modal <n-modal
v-model:show="showGeneratorModal" v-model:show="showGeneratorModal"
preset="card" preset="card"
@@ -720,32 +746,6 @@ watch(
/> />
</n-form-item> </n-form-item>
</n-form> </n-form>
<n-divider />
<n-alert
class="box"
v-if="problem.test_case_score.length"
:show-icon="false"
type="info"
>
<template #header>
<n-flex align="center">
<div>
测试组编号 {{ problem.test_case_id.slice(0, 12) }} 共有
{{ problem.test_case_score.length }}
条测试用例
</div>
<n-button
v-if="problem.id"
tertiary
type="info"
size="small"
@click="downloadTestcases"
>
下载
</n-button>
</n-flex>
</template>
</n-alert>
<n-flex style="margin-bottom: 120px" align="center" justify="end"> <n-flex style="margin-bottom: 120px" align="center" justify="end">
<n-tooltip placement="left"> <n-tooltip placement="left">
<template #trigger> <template #trigger>