feat(dashboard): The dashboard supports displaying real-time data (#930)

This commit is contained in:
王嘉豪
2026-02-28 14:53:51 +08:00
committed by GitHub
parent d12cb83c06
commit 9dccaf12d1
10 changed files with 65 additions and 8 deletions
+5
View File
@@ -39,6 +39,7 @@ export class ChatRecord {
question?: string
sql_answer?: string
sql?: string
datasource?: number
data?: string | any
chart_answer?: string
chart?: string
@@ -67,6 +68,7 @@ export class ChatRecord {
question: string,
sql_answer: string | undefined,
sql: string | undefined,
datasource: number | undefined,
data: string | any | undefined,
chart_answer: string | undefined,
chart: string | undefined,
@@ -94,6 +96,7 @@ export class ChatRecord {
question?: string,
sql_answer?: string,
sql?: string,
datasource?: number | undefined,
data?: string | any,
chart_answer?: string,
chart?: string,
@@ -120,6 +123,7 @@ export class ChatRecord {
this.question = question
this.sql_answer = sql_answer
this.sql = sql
this.datasource = datasource
this.data = data
this.chart_answer = chart_answer
this.chart = chart
@@ -263,6 +267,7 @@ const toChatRecord = (data?: any): ChatRecord | undefined => {
data.question,
data.sql_answer,
data.sql,
data.datasource,
data.data,
data.chart_answer,
data.chart,