diff --git a/src/views/DeviceDetailView/DeviceDetailView.vue b/src/views/DeviceDetailView/DeviceDetailView.vue
index 975d96b..7badc41 100644
--- a/src/views/DeviceDetailView/DeviceDetailView.vue
+++ b/src/views/DeviceDetailView/DeviceDetailView.vue
@@ -19,13 +19,13 @@
-
@@ -339,6 +335,25 @@ const alarmStatusOptions = [
]
const editDockVisible = ref(false)
+const alarmsTabLabel = computed(() => (alarmRecords.value.length ? `告警记录 ${alarmRecords.value.length}` : '告警记录'))
+
+const alarmColumns = [
+ { colKey: 'triggeredAt', title: '告警时间', width: '18%' },
+ { colKey: 'code', title: '告警编码', width: '14%' },
+ { colKey: 'message', title: '告警内容', width: '28%' },
+ { colKey: 'level', title: '级别', width: '10%' },
+ { colKey: 'status', title: '状态', width: '12%' },
+ { colKey: 'resolvedAt', title: '恢复时间', width: '18%' }
+]
+
+const logColumns = [
+ { colKey: 'createdAt', title: '操作时间', width: '20%' },
+ { colKey: 'category', title: '操作类型', width: '14%' },
+ { colKey: 'commandName', title: '操作内容', width: '26%' },
+ { colKey: 'result', title: '执行结果', width: '16%' },
+ { colKey: 'droneSn', title: '目标设备', width: '24%' }
+]
+
const record = computed(() => devices.record(route.params.id))
const asset = computed(() => devices.asset(route.params.id))
const isDrone = computed(() => record.value?.kind === 'drone')
@@ -598,3 +613,15 @@ function goMonitor() {
router.push({ name: 'monitor', query: { deviceId: route.params.id } })
}
+
+
diff --git a/src/views/LoginView/LoginView.vue b/src/views/LoginView/LoginView.vue
index 8bcb120..5ae836e 100644
--- a/src/views/LoginView/LoginView.vue
+++ b/src/views/LoginView/LoginView.vue
@@ -225,22 +225,10 @@ async function submitForgot() {
欢迎回来
登录平台,继续管理您的飞行任务
-