This commit is contained in:
2026-07-20 22:36:30 +07:00
parent 34520a95d4
commit 301cfcd61b
17 changed files with 171 additions and 95 deletions
+10 -9
View File
@@ -1,15 +1,16 @@
<script setup lang="ts">
import { getAuthClient } from '@/api/auth_client';
import type { Application, Door, Key, Place, Scenario } from '@/api/generated/crabs/evening_detective_server';
import HeaderMenu from '@/components/HeaderMenu.vue'
import { NButton, useMessage, type UploadFileInfo } from 'naive-ui';
import { Settings } from '@vicons/carbon'
import { Icon } from '@vicons/utils'
import { NButton, type UploadFileInfo,useMessage } from 'naive-ui';
import { NCard,NFlex, NInput, NModal, NSpace, NText, NUpload, NUploadDragger } from 'naive-ui'
import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { Icon } from '@vicons/utils'
import { Settings } from '@vicons/carbon'
import router from '@/router';
import { NCard, NModal, NInput, NSpace, NText, NUpload, NUploadDragger, NFlex, NSwitch, NDynamicInput } from 'naive-ui'
import { getAuthClient } from '@/api/auth_client';
import type { Place, Scenario } from '@/api/generated/crabs/evening_detective_server';
import HeaderMenu from '@/components/HeaderMenu.vue'
import PlaceBlock from '@/components/PlaceBlock.vue';
import router from '@/router';
const client = getAuthClient();
const route = useRoute()
@@ -188,7 +189,7 @@ async function deletePlace(place: Place) {
</n-flex>
</PlaceBlock>
<PlaceBlock :place="place" v-model:mode="place.mode" v-for="place in scenario.story?.places">
<PlaceBlock :place="place" v-model:mode="place.mode" v-for="place in scenario.story?.places" v-bind:key="place.code">
<n-flex justify="end">
<n-button @click="deletePlace(place)" type="error" ghost>Удалить</n-button>
<n-button @click="cancelUpdatePlace(place)">Отмена</n-button>