diff --git a/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue b/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue index 9b3e5fc5..8ff2bdc4 100644 --- a/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue +++ b/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue @@ -23,7 +23,7 @@ :class="['nav-item', { 'active': currentSection === item.key }]" @click="currentSection = item.key" > - {{ item.icon }} + {{ item.label }} @@ -143,10 +143,10 @@ const allModels = ref([]) const hasFiles = ref(false) const navItems = [ - { key: 'basic', icon: 'ℹ️', label: '基本信息' }, - { key: 'models', icon: '🤖', label: '模型配置' }, - { key: 'chunking', icon: '📄', label: '分块设置' }, - { key: 'advanced', icon: '⚙️', label: '高级设置' } + { key: 'basic', icon: 'info-circle', label: '基本信息' }, + { key: 'models', icon: 'control-platform', label: '模型配置' }, + { key: 'chunking', icon: 'file-copy', label: '分块设置' }, + { key: 'advanced', icon: 'setting', label: '高级设置' } ] // 模型配置引用 @@ -638,7 +638,11 @@ watch(() => props.visible, async (newVal) => { .nav-icon { margin-right: 8px; - font-size: 16px; + font-size: 18px; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; } .nav-label { diff --git a/frontend/src/views/knowledge/KnowledgeBaseList.vue b/frontend/src/views/knowledge/KnowledgeBaseList.vue index f3cb9565..eab62b40 100644 --- a/frontend/src/views/knowledge/KnowledgeBaseList.vue +++ b/frontend/src/views/knowledge/KnowledgeBaseList.vue @@ -3,7 +3,10 @@

知识库

- +
@@ -274,12 +277,15 @@ const handleKBEditorSuccess = (kbId: string) => { } .create-btn { + display: flex; + align-items: center; + gap: 6px; padding: 8px 20px; height: 36px; background: #07c05f; color: #fff; border: none; - border-radius: 6px; + border-radius: 8px; font-family: "PingFang SC"; font-size: 14px; font-weight: 500; @@ -293,6 +299,10 @@ const handleKBEditorSuccess = (kbId: string) => { &:active { background: #048f45; } + + .btn-icon { + flex-shrink: 0; + } } .warning-banner { diff --git a/frontend/src/views/settings/ApiInfo.vue b/frontend/src/views/settings/ApiInfo.vue new file mode 100644 index 00000000..7c7e9541 --- /dev/null +++ b/frontend/src/views/settings/ApiInfo.vue @@ -0,0 +1,317 @@ + + + + + + diff --git a/frontend/src/views/settings/Settings.vue b/frontend/src/views/settings/Settings.vue index ee17c8b7..de1ca9f5 100644 --- a/frontend/src/views/settings/Settings.vue +++ b/frontend/src/views/settings/Settings.vue @@ -87,6 +87,16 @@
+ + +
+ +
+ + +
+ +
@@ -102,6 +112,8 @@ import { useRoute, useRouter } from 'vue-router' import { useUIStore } from '@/stores/ui' import AgentSettings from './AgentSettings.vue' import SystemInfo from './SystemInfo.vue' +import TenantInfo from './TenantInfo.vue' +import ApiInfo from './ApiInfo.vue' import GeneralSettings from './GeneralSettings.vue' import ModelSettings from './ModelSettings.vue' import KnowledgeBaseSettings from './KnowledgeBaseSettings.vue' @@ -131,7 +143,9 @@ const navItems = [ { key: 'ollama', icon: 'server', label: 'Ollama' }, { key: 'knowledge', icon: 'folder-open', label: '知识库' }, { key: 'agent', icon: 'chat', label: 'Agent 配置' }, - { key: 'system', icon: 'info-circle', label: '系统信息' } + { key: 'system', icon: 'info-circle', label: '系统信息' }, + { key: 'tenant', icon: 'user-circle', label: '租户信息' }, + { key: 'api', icon: 'secured', label: 'API 信息' } ] // 导航项点击处理 diff --git a/frontend/src/views/settings/SystemInfo.vue b/frontend/src/views/settings/SystemInfo.vue index 258e9b96..424780b2 100644 --- a/frontend/src/views/settings/SystemInfo.vue +++ b/frontend/src/views/settings/SystemInfo.vue @@ -22,9 +22,6 @@
- -
系统信息
-
@@ -63,240 +60,18 @@
- -
用户信息
- - -
-
- -

您的唯一用户标识

-
-
- {{ userInfo?.id || '-' }} -
-
- - -
-
- -

您的登录用户名

-
-
- {{ userInfo?.username || '-' }} -
-
- - -
-
- -

您的注册邮箱地址

-
-
- {{ userInfo?.email || '-' }} -
-
- - -
-
- -

账户创建的时间

-
-
- {{ formatDate(userInfo?.created_at) }} -
-
- - -
租户信息
- - -
-
- -

您所属租户的唯一标识

-
-
- {{ tenantInfo?.id || '-' }} -
-
- - -
-
- -

您所属的租户名称

-
-
- {{ tenantInfo?.name || '-' }} -
-
- - -
-
- -

租户的详细描述信息

-
-
- {{ tenantInfo.description }} -
-
- - -
-
- -

租户所属的业务类型

-
-
- {{ tenantInfo.business }} -
-
- - -
-
- -

租户当前的运行状态

-
-
- - {{ getStatusText(tenantInfo?.status) }} - -
-
- - -
-
- -

租户创建的时间

-
-
- {{ formatDate(tenantInfo?.created_at) }} -
-
- - -
API 信息
- - -
-
- -

用于 API 调用的密钥,请妥善保管

-
-
-
- - - - -
-
-
- - -
-
- -

租户的总存储空间配额

-
-
- {{ formatBytes(tenantInfo.storage_quota) }} -
-
- - -
-
- -

已经使用的存储空间

-
-
- {{ formatBytes(tenantInfo.storage_used || 0) }} -
-
- - -
-
- -

存储空间的使用百分比

-
-
-
- {{ getUsagePercentage() }}% - -
-
-
- - -
开发文档
- - -
-
- -

查看完整的 API 文档和示例代码

-
-
- - - 查看文档 - -
-
+ + +