Skip to content

Commit 07fa70d

Browse files
committed
fix(Settings): Unify Interface Style
1 parent 2294714 commit 07fa70d

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

frontend/src/i18n/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
},
1010
"prompt": {
1111
"default_password": "Default password:{msg}",
12+
"no_sql_sample": "No SQL sample currently available",
13+
"add_sql_sample": "Add SQL sample",
1214
"no_prompt_words": "No prompt words",
1315
"customize_prompt_words": "Customize prompt words",
1416
"ask_sql": "Ask SQL",

frontend/src/i18n/ko-KR.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
},
1010
"prompt": {
1111
"default_password:": "기본 비밀번호:{msg}",
12+
"no_sql_sample": "현재 사용 가능한 SQL 샘플 라이브러리가 없습니다",
13+
"add_sql_sample": "SQL 샘플 라이브러리를 추가하세요",
1214
"no_prompt_words": "프롬프트가 없습니다",
1315
"customize_prompt_words": "사용자 정의 프롬프트",
1416
"ask_sql": "데이터 조회 SQL",

frontend/src/i18n/zh-CN.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
},
1010
"prompt": {
1111
"default_password": "默认密码:{msg}",
12+
"no_sql_sample": "暂无 SQL 示例",
13+
"add_sql_sample": "添加 SQL 示例",
1214
"no_prompt_words": "暂无提示词",
1315
"customize_prompt_words": "自定义提示词",
1416
"ask_sql": "问数 SQL",

frontend/src/views/system/training/index.vue

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,22 @@ const onRowFormClose = () => {
477477
</template>
478478
</el-table-column>
479479
<template #empty>
480-
<EmptyBackground
481-
v-if="!oldKeywords && !fieldList.length"
482-
:description="$t('chat.no_data')"
483-
img-type="noneWhite"
484-
/>
480+
<template v-if="!oldKeywords && !fieldList.length">
481+
<EmptyBackground
482+
class="datasource-yet"
483+
:description="$t('qa.no_data')"
484+
img-type="noneWhite"
485+
/>
486+
487+
<div style="text-align: center; margin-top: -23px">
488+
<el-button type="primary" @click="editHandler(null)">
489+
<template #icon>
490+
<icon_add_outlined></icon_add_outlined>
491+
</template>
492+
{{ $t('prompt.add_sql_sample') }}
493+
</el-button>
494+
</div>
495+
</template>
485496

486497
<EmptyBackground
487498
v-if="!!oldKeywords && !fieldList.length"
@@ -654,14 +665,10 @@ const onRowFormClose = () => {
654665
height: 100%;
655666
position: relative;
656667
657-
:deep(.ed-table__empty-text) {
658-
padding-top: 160px;
659-
}
660-
661668
.datasource-yet {
662669
padding-bottom: 0;
663670
height: auto;
664-
padding-top: 200px;
671+
padding-top: 80px;
665672
}
666673
667674
:deep(.ed-table__cell) {

0 commit comments

Comments
 (0)