Skip to content

Commit 75122ae

Browse files
committed
feat: chat show charts
1 parent 55d8ace commit 75122ae

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

frontend/src/views/chat/chat-block/ChartBlock.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ function closeFullScreen() {
177177
function onExitFullScreen() {
178178
dialogVisible.value = false
179179
}
180+
181+
function showSql() {
182+
console.log('todo')
183+
}
184+
function addToDashboard() {
185+
console.log('todo')
186+
}
180187
</script>
181188

182189
<template>
@@ -227,7 +234,7 @@ function onExitFullScreen() {
227234

228235
<div>
229236
<el-tooltip effect="dark" :content="t('chat.show_sql')" placement="top">
230-
<el-button class="tool-btn" text @click="showSQL">
237+
<el-button class="tool-btn" text @click="showSql">
231238
<el-icon size="16">
232239
<icon_sql_outlined />
233240
</el-icon>
@@ -236,7 +243,7 @@ function onExitFullScreen() {
236243
</div>
237244
<div>
238245
<el-tooltip effect="dark" :content="t('chat.export_to')" placement="top">
239-
<el-button class="tool-btn" text @click="showSQL">
246+
<el-button class="tool-btn" text>
240247
<el-icon size="16">
241248
<icon_export_outlined />
242249
</el-icon>
@@ -245,7 +252,7 @@ function onExitFullScreen() {
245252
</div>
246253
<div>
247254
<el-tooltip effect="dark" :content="t('chat.add_to_dashboard')" placement="top">
248-
<el-button class="tool-btn" text @click="showSQL">
255+
<el-button class="tool-btn" text @click="addToDashboard">
249256
<el-icon size="16">
250257
<icon_into_item_outlined />
251258
</el-icon>

0 commit comments

Comments
 (0)