fix.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { SOURCES } from "utils/constants"
|
||||
import { Problem } from "utils/types"
|
||||
import Monaco from "~/shared/Monaco/index.vue"
|
||||
import Monaco from "~/shared/Monaco.vue"
|
||||
import { code } from "oj/composables/code"
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { Flag, CloseBold, Select, CopyDocument } from "@element-plus/icons-vue"
|
||||
import copy from "copy-text-to-clipboard"
|
||||
import { Flag, CloseBold, Select } from "@element-plus/icons-vue"
|
||||
import Copy from "~/shared/Copy.vue"
|
||||
import { code } from "oj/composables/code"
|
||||
import { SOURCES } from "utils/constants"
|
||||
import { Problem, ProblemStatus } from "utils/types"
|
||||
@@ -131,7 +131,7 @@ const type = (status: ProblemStatus) =>
|
||||
<template #label>
|
||||
<n-space>
|
||||
<span>输入</span>
|
||||
<n-icon @click="copy(sample.input)"><CopyDocument /></n-icon>
|
||||
<Copy :value="sample.input" />
|
||||
</n-space>
|
||||
</template>
|
||||
<div class="testcase">{{ sample.input }}</div>
|
||||
@@ -140,7 +140,7 @@ const type = (status: ProblemStatus) =>
|
||||
<template #label>
|
||||
<n-space>
|
||||
<span>输出</span>
|
||||
<n-icon @click="copy(sample.output)"><CopyDocument /></n-icon>
|
||||
<Copy :value="sample.output" />
|
||||
</n-space>
|
||||
</template>
|
||||
<div class="testcase">{{ sample.output }}</div>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { filterEmptyValue, getTagColor } from "utils/functions"
|
||||
import { isDesktop } from "~/shared/composables/breakpoints"
|
||||
import { getProblemList, getProblemTagList, getRandomProblemID } from "oj/api"
|
||||
|
||||
import Pagination from "~/shared/Pagination/index.vue"
|
||||
import Pagination from "~/shared/Pagination.vue"
|
||||
import { DataTableColumn, NIcon, NSpace, NTag, useThemeVars } from "naive-ui"
|
||||
import { Select, SemiSelect } from "@element-plus/icons-vue"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { c, DataTableColumn, SelectOption } from "naive-ui"
|
||||
import { DataTableColumn, SelectOption } from "naive-ui"
|
||||
import { NButton } from "naive-ui"
|
||||
import Pagination from "~/shared/Pagination/index.vue"
|
||||
import SubmissionResultTag from "oj/components/SubmissionResultTag.vue"
|
||||
import Pagination from "~/shared/Pagination.vue"
|
||||
import {
|
||||
submissionMemoryFormat,
|
||||
submissionTimeFormat,
|
||||
@@ -38,14 +38,10 @@ const query = reactive<Query>({
|
||||
|
||||
const options: SelectOption[] = [
|
||||
{ label: "全部", value: "" },
|
||||
{ label: "编译失败", value: "-2" },
|
||||
{ label: "答案错误", value: "-1" },
|
||||
{ label: "答案正确", value: "0" },
|
||||
{ label: "运行超时", value: "1" },
|
||||
{ label: "内存超限", value: "3" },
|
||||
{ label: "答案错误", value: "-1" },
|
||||
{ label: "编译失败", value: "-2" },
|
||||
{ label: "运行时错误", value: "4" },
|
||||
{ label: "系统错误", value: "5" },
|
||||
{ label: "部分正确", value: "8" },
|
||||
]
|
||||
|
||||
async function listSubmissions() {
|
||||
@@ -133,7 +129,15 @@ const columns: DataTableColumn<Submission>[] = [
|
||||
key: "problem",
|
||||
width: 100,
|
||||
render: (row) =>
|
||||
h(NButton, { text: true, type: "info" }, () => row.problem),
|
||||
h(
|
||||
NButton,
|
||||
{
|
||||
text: true,
|
||||
type: "info",
|
||||
onClick: () => router.push("/problem/" + row.problem),
|
||||
},
|
||||
() => row.problem
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "执行耗时",
|
||||
|
||||
Reference in New Issue
Block a user