From 89ab2ec7f8790c5cc184de98682af032c69c2afc Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 11 九月 2024 15:13:27 +0800 Subject: [PATCH] 2024.9.11 --- src/views/visualization/SubtaskVisual.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/visualization/SubtaskVisual.vue b/src/views/visualization/SubtaskVisual.vue index b1957ba..185b452 100644 --- a/src/views/visualization/SubtaskVisual.vue +++ b/src/views/visualization/SubtaskVisual.vue @@ -1,7 +1,10 @@ <template> <el-scrollbar v-if="mapStore.focusMarker" :height="mapHeight"> <el-card class="p-events-auto wrapper"> - <div class="font-small">{{ scene.name }}</div> + <el-row justify="space-between"> + <div class="font-small">{{ scene.name }}</div> + <el-button icon="Close" circle @click="mapStore.focusMarker = undefined"></el-button> + </el-row> <el-divider></el-divider> <div class="font-small">鐘舵�侊細{{ subtask.status }}</div> <div class="font-small">璁″垝锛歿{ $fm.formatYMD(subtask.planstarttime) }}</div> @@ -109,18 +112,18 @@ computed: { ...mapStores(useMapStore), subtask() { - return this.mapStore.focusMarker ? this.mapStore.focusMarker.subtask : {} + return this.mapStore.focusMarker ? this.mapStore.focusMarker.subtask : undefined }, scene() { - return this.mapStore.focusMarker ? this.mapStore.focusMarker.scene : {} + return this.mapStore.focusMarker ? this.mapStore.focusMarker.scene : undefined }, inspection() { - return this.mapStore.focusMarker ? this.mapStore.focusMarker.inspection : {} + return this.mapStore.focusMarker ? this.mapStore.focusMarker.inspection : undefined } }, watch: { subtask(nV, oV) { - if (nV != oV) { + if (nV != undefined && nV != oV) { this.fetchProblem(nV.stguid) } } -- Gitblit v1.9.3