fix(Embedded): correct Assistant-Basic Application-Basic Information Application name, prompts and other information

This commit is contained in:
dataeaseShu
2025-08-08 10:17:22 +08:00
parent a4d2543bba
commit 7a28587e66
5 changed files with 30 additions and 12 deletions
@@ -1,4 +1,4 @@
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.0098 4.08305C10.7508 5.08943 9.8372 5.83305 8.74996 5.83305C7.66272 5.83305 6.74916 5.08943 6.49014 4.08305H1.54053C1.41051 4.08305 1.36337 4.06951 1.31584 4.04409C1.26831 4.01867 1.231 3.98137 1.20558 3.93384C1.18016 3.88631 1.16663 3.83916 1.16663 3.70915V3.29028C1.16663 3.16027 1.18016 3.11312 1.20558 3.06559C1.231 3.01806 1.26831 2.98076 1.31584 2.95534C1.36337 2.92992 1.41051 2.91638 1.54053 2.91638H6.49014C6.74916 1.91 7.66272 1.16638 8.74996 1.16638C9.8372 1.16638 10.7508 1.91 11.0098 2.91638H12.4594C12.5894 2.91638 12.6366 2.92992 12.6841 2.95534C12.7316 2.98076 12.7689 3.01806 12.7943 3.06559C12.8198 3.11312 12.8333 3.16027 12.8333 3.29028V3.70915C12.8333 3.83916 12.8198 3.88631 12.7943 3.93384C12.7689 3.98137 12.7316 4.01867 12.6841 4.04409C12.6366 4.06951 12.5894 4.08305 12.4594 4.08305H11.0098ZM8.74996 4.66638C9.39429 4.66638 9.91663 4.14405 9.91663 3.49972C9.91663 2.85538 9.39429 2.33305 8.74996 2.33305C8.10563 2.33305 7.58329 2.85538 7.58329 3.49972C7.58329 4.14405 8.10563 4.66638 8.74996 4.66638Z" fill="#1F2329"/>
<path d="M7.50978 11.083C7.25076 12.0894 6.3372 12.833 5.24996 12.833C4.16272 12.833 3.24916 12.0894 2.99014 11.083H1.54053C1.41051 11.083 1.36337 11.0695 1.31584 11.0441C1.26831 11.0187 1.231 10.9814 1.20558 10.9338C1.18016 10.8863 1.16663 10.8392 1.16663 10.7091V10.2903C1.16663 10.1603 1.18016 10.1131 1.20558 10.0656C1.231 10.0181 1.26831 9.98076 1.31584 9.95534C1.36337 9.92992 1.41051 9.91638 1.54053 9.91638H2.99014C3.24916 8.91 4.16272 8.16638 5.24996 8.16638C6.3372 8.16638 7.25076 8.91 7.50978 9.91638H12.4594C12.5894 9.91638 12.6366 9.92992 12.6841 9.95534C12.7316 9.98076 12.7689 10.0181 12.7943 10.0656C12.8198 10.1131 12.8333 10.1603 12.8333 10.2903V10.7091C12.8333 10.8392 12.8198 10.8863 12.7943 10.9338C12.7689 10.9814 12.7316 11.0187 12.6841 11.0441C12.6366 11.0695 12.5894 11.083 12.4594 11.083H7.50978ZM5.24996 11.6664C5.89429 11.6664 6.41663 11.144 6.41663 10.4997C6.41663 9.85538 5.89429 9.33305 5.24996 9.33305C4.60563 9.33305 4.08329 9.85538 4.08329 10.4997C4.08329 11.144 4.60563 11.6664 5.24996 11.6664Z" fill="#1F2329"/>
<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg">
<path d="M11.0098 4.08305C10.7508 5.08943 9.8372 5.83305 8.74996 5.83305C7.66272 5.83305 6.74916 5.08943 6.49014 4.08305H1.54053C1.41051 4.08305 1.36337 4.06951 1.31584 4.04409C1.26831 4.01867 1.231 3.98137 1.20558 3.93384C1.18016 3.88631 1.16663 3.83916 1.16663 3.70915V3.29028C1.16663 3.16027 1.18016 3.11312 1.20558 3.06559C1.231 3.01806 1.26831 2.98076 1.31584 2.95534C1.36337 2.92992 1.41051 2.91638 1.54053 2.91638H6.49014C6.74916 1.91 7.66272 1.16638 8.74996 1.16638C9.8372 1.16638 10.7508 1.91 11.0098 2.91638H12.4594C12.5894 2.91638 12.6366 2.92992 12.6841 2.95534C12.7316 2.98076 12.7689 3.01806 12.7943 3.06559C12.8198 3.11312 12.8333 3.16027 12.8333 3.29028V3.70915C12.8333 3.83916 12.8198 3.88631 12.7943 3.93384C12.7689 3.98137 12.7316 4.01867 12.6841 4.04409C12.6366 4.06951 12.5894 4.08305 12.4594 4.08305H11.0098ZM8.74996 4.66638C9.39429 4.66638 9.91663 4.14405 9.91663 3.49972C9.91663 2.85538 9.39429 2.33305 8.74996 2.33305C8.10563 2.33305 7.58329 2.85538 7.58329 3.49972C7.58329 4.14405 8.10563 4.66638 8.74996 4.66638Z" />
<path d="M7.50978 11.083C7.25076 12.0894 6.3372 12.833 5.24996 12.833C4.16272 12.833 3.24916 12.0894 2.99014 11.083H1.54053C1.41051 11.083 1.36337 11.0695 1.31584 11.0441C1.26831 11.0187 1.231 10.9814 1.20558 10.9338C1.18016 10.8863 1.16663 10.8392 1.16663 10.7091V10.2903C1.16663 10.1603 1.18016 10.1131 1.20558 10.0656C1.231 10.0181 1.26831 9.98076 1.31584 9.95534C1.36337 9.92992 1.41051 9.91638 1.54053 9.91638H2.99014C3.24916 8.91 4.16272 8.16638 5.24996 8.16638C6.3372 8.16638 7.25076 8.91 7.50978 9.91638H12.4594C12.5894 9.91638 12.6366 9.92992 12.6841 9.95534C12.7316 9.98076 12.7689 10.0181 12.7943 10.0656C12.8198 10.1131 12.8333 10.1603 12.8333 10.2903V10.7091C12.8333 10.8392 12.8198 10.8863 12.7943 10.9338C12.7689 10.9814 12.7316 11.0187 12.6841 11.0441C12.6366 11.0695 12.5894 11.083 12.4594 11.083H7.50978ZM5.24996 11.6664C5.89429 11.6664 6.41663 11.144 6.41663 10.4997C6.41663 9.85538 5.89429 9.33305 5.24996 9.33305C4.60563 9.33305 4.08329 9.85538 4.08329 10.4997C4.08329 11.144 4.60563 11.6664 5.24996 11.6664Z" />
</svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

+3
View File
@@ -6,6 +6,9 @@
"AI Model Configuration": "AI Model Configuration"
},
"common": {
"zoom_in": "Zoom in",
"zoom_out": "Zoom out",
"the_default_model": "Already the default model",
"as_default_model": "Set as Default Model",
"no_model_yet": "No model yet",
"intelligent_questioning_platform": "Welcome to the SQLBot Intelligent Questioning Platform",
+5 -2
View File
@@ -6,6 +6,9 @@
"AI Model Configuration": "模型配置"
},
"common": {
"zoom_in": "放大",
"zoom_out": "缩小",
"the_default_model": "已是默认模型",
"as_default_model": "设为默认模型",
"no_model_yet": "暂无模型",
"intelligent_questioning_platform": "欢迎使用 SQLBot 智能问数平台",
@@ -567,7 +570,7 @@
"license": {
"error_tips": "是否刷新页面?",
"offline_tips": "服务已经下线,请联系管理员重启服务!"
},
},
"system": {
"system_settings": "系统设置",
"appearance_settings": "外观设置",
@@ -599,4 +602,4 @@
"setting_successfully": "设置成功",
"customize_theme_color": "自定义主题色"
}
}
}
+2 -4
View File
@@ -617,13 +617,11 @@ const saveHandler = () => {
class="form-content_error"
@submit.prevent
>
<el-form-item prop="name" :label="t('embedded.basic_information')">
<el-form-item prop="name" :label="t('embedded.application_name')">
<el-input
v-model="currentEmbedded.name"
:placeholder="
$t('datasource.please_enter') +
$t('common.empty') +
$t('embedded.basic_information')
$t('datasource.please_enter') + $t('common.empty') + $t('embedded.application_name')
"
clearable
autocomplete="off"
+17 -3
View File
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import delIcon from '@/assets/svg/icon_delete.svg'
import icon_embedded_outlined from '@/assets/svg/icon-setting.svg'
import icon_admin_outlined from '@/assets/svg/icon_admin_outlined.svg'
import edit from '@/assets/svg/icon_edit_outlined.svg'
import { get_supplier } from '@/entity/supplier'
import { computed, ref } from 'vue'
@@ -76,9 +76,23 @@ defineExpose({ showErrorMask })
<span class="value"> {{ baseModel }}</span>
</div>
<div class="methods">
<el-button secondary @click="handleDefault">
<el-tooltip
v-if="isDefault"
effect="dark"
:content="$t('common.the_default_model')"
placement="top"
>
<el-button secondary disabled>
<el-icon style="margin-right: 4px" size="16">
<icon_admin_outlined></icon_admin_outlined>
</el-icon>
{{ $t('common.as_default_model') }}
</el-button>
</el-tooltip>
<el-button v-else secondary @click="handleDefault">
<el-icon style="margin-right: 4px" size="16">
<icon_embedded_outlined></icon_embedded_outlined>
<icon_admin_outlined></icon_admin_outlined>
</el-icon>
{{ $t('common.as_default_model') }}
</el-button>