From c6210ee48f7fd3c4edc36077b3a49c9d3239fcd4 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 9 May 2025 11:41:39 +0800 Subject: [PATCH] feat: Data Q&A page --- frontend/src/router/index.ts | 6 +- frontend/src/views/chat/index.vue | 356 +++++++++++++++++++++++++++++- 2 files changed, 357 insertions(+), 5 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 33dca35c..cc1df178 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -24,7 +24,7 @@ const router = createRouter({ path: 'index', name: 'chat', component: chat, - meta: { title: 'ChatBI', icon: 'chat'} + meta: { title: 'Data Q&A', icon: 'chat'} } ] }, @@ -37,7 +37,7 @@ const router = createRouter({ path: 'index', name: 'ds', component: ds, - meta: { title: 'Datasource', icon: 'ds' } + meta: { title: 'Data Connections', icon: 'ds' } } ] }, @@ -63,7 +63,7 @@ const router = createRouter({ path: 'index', name: 'setting', component: setting, - meta: { title: 'Setting', icon: 'setting' } + meta: { title: 'Settings', icon: 'setting' } } ] }, diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index c26a9a97..db827254 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -1,3 +1,355 @@ \ No newline at end of file +
+ +
+ + +
+
+ {{ chat.title }} + + + + + + +
+
+
+ + +
+
+ +
+

Welcome to SQLBot

+

You can ask questions in natural language, for example:

+
+
View this month's sales growth compared to last month
+
Analyze sales staff performance by region
+
Calculate the relationship between customer purchase frequency and average order value
+
+
+
+ +
+
+ +
+ + + +
+
+
+
+
+ + + + + \ No newline at end of file