删除不需要的代码
Some checks are pending
Deploy / deploy (push) Waiting to run

This commit is contained in:
2025-12-22 19:38:42 +08:00
parent f80b82e09d
commit 0e9b289f7c

View File

@@ -24,7 +24,6 @@ import ButtonWithSearch from "./components/ButtonWithSearch.vue"
import StatisticsPanel from "shared/components/StatisticsPanel.vue" import StatisticsPanel from "shared/components/StatisticsPanel.vue"
import SubmissionLink from "./components/SubmissionLink.vue" import SubmissionLink from "./components/SubmissionLink.vue"
import SubmissionDetail from "./detail.vue" import SubmissionDetail from "./detail.vue"
import IconButton from "shared/components/IconButton.vue"
import Grade from "./components/Grade.vue" import Grade from "./components/Grade.vue"
import FlowchartLink from "./components/FlowchartLink.vue" import FlowchartLink from "./components/FlowchartLink.vue"
@@ -369,18 +368,7 @@ const flowchartColumns: DataTableColumn<FlowchartSubmissionListItem>[] = [
<n-form-item <n-form-item
v-if="userStore.isSuperAdmin && route.name === 'submissions'" v-if="userStore.isSuperAdmin && route.name === 'submissions'"
> >
<IconButton <n-button @click="toggleStatisticPanel(true)">数据统计</n-button>
icon="streamline-emojis:bar-chart"
tip="数据统计"
v-if="query.language === 'Flowchart'"
@click="toggleFlowchartStatisticPanel(true)"
/>
<IconButton
icon="streamline-emojis:bar-chart"
tip="数据统计"
v-else
@click="toggleStatisticPanel(true)"
/>
</n-form-item> </n-form-item>
</n-form> </n-form>
<n-form <n-form
@@ -424,28 +412,6 @@ const flowchartColumns: DataTableColumn<FlowchartSubmissionListItem>[] = [
> >
<StatisticsPanel :problem="query.problem" :username="query.username" /> <StatisticsPanel :problem="query.problem" :username="query.username" />
</n-modal> </n-modal>
<n-modal
v-if="query.language === 'Flowchart'"
v-model:show="flowchartStatisticPanel"
preset="card"
:style="{
width: isDesktop ? '90vw' : '100vw',
height: '90vh',
maxWidth: 'none',
}"
:content-style="{
height: 'calc(90vh - 100px)',
padding: '0',
overflow: 'hidden',
}"
title="流程图数据的统计"
>
<iframe
src="/flowchart-data.html"
frameborder="0"
class="flowchart-iframe"
></iframe>
</n-modal>
<n-modal <n-modal
v-model:show="codePanel" v-model:show="codePanel"
preset="card" preset="card"