File tree Expand file tree Collapse file tree 5 files changed +30
-12
lines changed
Expand file tree Collapse file tree 5 files changed +30
-12
lines changed Original file line number Diff line number Diff line change 66 "AI Model Configuration" : " AI Model Configuration"
77 },
88 "common" : {
9+ "zoom_in" : " Zoom in" ,
10+ "zoom_out" : " Zoom out" ,
11+ "the_default_model" : " Already the default model" ,
912 "as_default_model" : " Set as Default Model" ,
1013 "no_model_yet" : " No model yet" ,
1114 "intelligent_questioning_platform" : " Welcome to the SQLBot Intelligent Questioning Platform" ,
Original file line number Diff line number Diff line change 66 "AI Model Configuration" : " 模型配置"
77 },
88 "common" : {
9+ "zoom_in" : " 放大" ,
10+ "zoom_out" : " 缩小" ,
11+ "the_default_model" : " 已是默认模型" ,
912 "as_default_model" : " 设为默认模型" ,
1013 "no_model_yet" : " 暂无模型" ,
1114 "intelligent_questioning_platform" : " 欢迎使用 SQLBot 智能问数平台" ,
567570 "license" : {
568571 "error_tips" : " 是否刷新页面?" ,
569572 "offline_tips" : " 服务已经下线,请联系管理员重启服务!"
570- },
573+ },
571574 "system" : {
572575 "system_settings" : " 系统设置" ,
573576 "appearance_settings" : " 外观设置" ,
599602 "setting_successfully" : " 设置成功" ,
600603 "customize_theme_color" : " 自定义主题色"
601604 }
602- }
605+ }
Original file line number Diff line number Diff line change @@ -617,13 +617,11 @@ const saveHandler = () => {
617617 class =" form-content_error"
618618 @submit.prevent
619619 >
620- <el-form-item prop =" name" :label =" t('embedded.basic_information ')" >
620+ <el-form-item prop =" name" :label =" t('embedded.application_name ')" >
621621 <el-input
622622 v-model =" currentEmbedded.name"
623623 :placeholder ="
624- $t('datasource.please_enter') +
625- $t('common.empty') +
626- $t('embedded.basic_information')
624+ $t('datasource.please_enter') + $t('common.empty') + $t('embedded.application_name')
627625 "
628626 clearable
629627 autocomplete =" off"
Original file line number Diff line number Diff line change 11<script lang="ts" setup>
22import delIcon from ' @/assets/svg/icon_delete.svg'
3- import icon_embedded_outlined from ' @/assets/svg/icon-setting .svg'
3+ import icon_admin_outlined from ' @/assets/svg/icon_admin_outlined .svg'
44import edit from ' @/assets/svg/icon_edit_outlined.svg'
55import { get_supplier } from ' @/entity/supplier'
66import { computed , ref } from ' vue'
@@ -76,9 +76,23 @@ defineExpose({ showErrorMask })
7676 <span class =" value" > {{ baseModel }}</span >
7777 </div >
7878 <div class =" methods" >
79- <el-button secondary @click =" handleDefault" >
79+ <el-tooltip
80+ v-if =" isDefault"
81+ effect =" dark"
82+ :content =" $t('common.the_default_model')"
83+ placement =" top"
84+ >
85+ <el-button secondary disabled >
86+ <el-icon style =" margin-right : 4px " size =" 16" >
87+ <icon _admin_outlined ></icon _admin_outlined >
88+ </el-icon >
89+ {{ $t('common.as_default_model') }}
90+ </el-button >
91+ </el-tooltip >
92+
93+ <el-button v-else secondary @click =" handleDefault" >
8094 <el-icon style =" margin-right : 4px " size =" 16" >
81- <icon _embedded_outlined ></icon _embedded_outlined >
95+ <icon _admin_outlined ></icon _admin_outlined >
8296 </el-icon >
8397 {{ $t('common.as_default_model') }}
8498 </el-button >
You can’t perform that action at this time.
0 commit comments