add result

This commit is contained in:
2026-09-03 00:18:51 +07:00
parent 131790dd85
commit 8b8fb33d45
80 changed files with 2569 additions and 2041 deletions
+11 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Flag, Pause, Play, Reset, Settings } from '@vicons/carbon'
import { Flag, Pause, Play, Reset, Settings, Trophy } from '@vicons/carbon'
import { Icon } from '@vicons/utils'
import { NButton, NTag } from 'naive-ui'
import { NCard, NFlex, NInput, NInputNumber, NModal, NQrCode, NSpace, NText } from 'naive-ui'
@@ -94,6 +94,10 @@ async function toTeamStory(id: number, password: string, newTab: boolean = false
router.push(uri)
}
function toResults() {
router.push('/games/' + gameId + '/results')
}
function openSettings() {
settingsDraft.value = {
name: game.value.name || '',
@@ -408,6 +412,12 @@ useSimplePolling(() => {
<n-flex justify="end">
<n-button quaternary @click="openQR(url, 'Админка')"> QR </n-button>
<n-button quaternary @click="openAnswersModal()"> Ответы команд </n-button>
<n-button v-if="game.status == 'finish'" quaternary @click="toResults()">
<Icon class="settings-icon">
<Trophy />
</Icon>
Итоги
</n-button>
<n-button quaternary @click="openSettings()">
<Icon class="settings-icon">
<Settings />