feat(logs): add quick record flow and reason tags

This commit is contained in:
nepiedg
2026-04-16 11:12:13 +08:00
parent fefda9ec97
commit cbe1fdb035
6 changed files with 550 additions and 132 deletions
+3
View File
@@ -1,5 +1,6 @@
import { defineStore } from 'pinia'
import * as api from '@/api'
import { normalizeReasonTags, getReasonLabels } from '@/config/smoke-reasons'
export const useLogsStore = defineStore('logs', {
state: () => ({
@@ -126,6 +127,8 @@ export const useLogsStore = defineStore('logs', {
return {
...log,
type,
reasonTags: normalizeReasonTags(log.reason_tags),
reasonLabels: getReasonLabels(log.reason_tags, type),
interval,
displayTime: formatLogTime(log.smoke_at || log.smoke_time || log.createtime),
displayDate