From 2547159bbd781c8e1a41ecc939385396c85f9766 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期一, 09 六月 2025 23:35:59 +0800
Subject: [PATCH] 2025.6.9(功能编写中)

---
 src/views/visualization/SubtaskVisual.vue |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/views/visualization/SubtaskVisual.vue b/src/views/visualization/SubtaskVisual.vue
index b1957ba..5ed728e 100644
--- a/src/views/visualization/SubtaskVisual.vue
+++ b/src/views/visualization/SubtaskVisual.vue
@@ -1,14 +1,17 @@
 <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>
       <div v-if="subtask.status != '鏈墽琛�'" class="font-small">
-        <span>鎵ц锛歿{ $fm.formatH(subtask.executionstarttime) }}</span>
+        <span>鎵ц锛歿{ $fm.formatYMDH(subtask.executionstarttime) }}</span>
         <span> - </span>
-        <span>{{ $fm.formatH(subtask.executionendtime) }}</span>
+        <span>{{ $fm.formatYMDH(subtask.executionendtime) }}</span>
       </div>
       <div class="font-small">闂锛�</div>
       <problem-item
@@ -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