fix(Custom prompt words): The title of the details page is incorrect

This commit is contained in:
dataeaseShu
2025-10-09 15:27:02 +08:00
committed by dataeaseShu
parent 8e29511e3c
commit 7328b1bba1
4 changed files with 14 additions and 7 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
"Data Q&A": "Data Q&A",
"Data Connections": "Data Sources",
"Dashboard": "Dashboard",
"AI Model Configuration": "AI Model Configuration"
"AI Model Configuration": "AI Model Configuration",
"Details": "Details"
},
"prompt": {
"no_prompt_words": "No prompt words",
+2 -1
View File
@@ -4,7 +4,8 @@
"Data Q&A": "스마트 데이터 조회",
"Data Connections": "데이터 소스",
"Dashboard": "대시보드",
"AI Model Configuration": "모델 구성"
"AI Model Configuration": "모델 구성",
"Details": "세부"
},
"prompt": {
"no_prompt_words": "프롬프트가 없습니다",
+2 -1
View File
@@ -4,7 +4,8 @@
"Data Q&A": "智能问数",
"Data Connections": "数据源",
"Dashboard": "仪表盘",
"AI Model Configuration": "模型配置"
"AI Model Configuration": "模型配置",
"Details": "详情"
},
"prompt": {
"no_prompt_words": "暂无提示词",
+8 -4
View File
@@ -21,7 +21,7 @@ interface Form {
prompt: string | null
specific_ds: boolean
datasource_ids: number[]
datasource_name: string[]
datasource_names: string[]
name: string | null
}
@@ -59,7 +59,7 @@ const defaultForm = {
type: null,
prompt: null,
datasource_ids: [],
datasource_name: [],
datasource_names: [],
name: null,
specific_ds: false,
}
@@ -602,7 +602,7 @@ const typeChange = (val: any) => {
</el-drawer>
<el-drawer
v-model="rowInfoDialog"
:title="$t('professional.professional_term_details')"
:title="$t('menu.Details')"
destroy-on-close
size="600px"
:before-close="onRowFormClose"
@@ -628,7 +628,11 @@ const typeChange = (val: any) => {
</el-form-item>
<el-form-item :label="t('ds.title')">
<div class="content">
{{ pageForm.datasource_name.join() }}
{{
pageForm.datasource_names.length
? pageForm.datasource_names.join()
: t('training.all_data_sources')
}}
</div>
</el-form-item>
</el-form>