From 713d6ca9cbd53302ee11a17ea7dbdac5f71d11d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Mon, 28 Apr 2025 15:35:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(intelligent-agent):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E4=BD=93=E5=88=9B=E5=BB=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加智能体创建页面和相关组件 - 实现智能体名称、图标、背景色选择功能 - 增加应用类型选择功能 -优化 emoji 选择器样式 - 调整卡片布局和样式 --- src/assets/sass/renderSass/button.scss | 17 ++ src/main.js | 16 +- src/views/app/login/index.vue | 4 +- .../components/info/index.vue | 147 +++++++++++++++++- src/views/intelligent-agent/index.vue | 8 +- src/views/knowledge/detail/index.vue | 2 +- src/views/knowledge/index.vue | 4 +- 7 files changed, 179 insertions(+), 19 deletions(-) diff --git a/src/assets/sass/renderSass/button.scss b/src/assets/sass/renderSass/button.scss index 71736e8..696ca04 100644 --- a/src/assets/sass/renderSass/button.scss +++ b/src/assets/sass/renderSass/button.scss @@ -227,4 +227,21 @@ } } } + //&.is-active { + // background: #fff; + //} +} + +.render-group { + padding: 5px 10px; + background: #f8f8f8; + & .el-radio-button { + text-align: center; + &.is-active { + background: #fff !important; + } + & .el-radio-button__inner { + padding: 2px 5px; + } + } } diff --git a/src/main.js b/src/main.js index 8ef58b9..dd835b5 100644 --- a/src/main.js +++ b/src/main.js @@ -39,11 +39,17 @@ Vue.component('VEditor', VueEditor) // 富文本编辑器 可视化代码 Vue.component('MEditor', MavonEditor) Vue.prototype.$messageBox = function(isOk, message, type, title) { - this.$confirm(message ? message : '是否确认删除当前数据', title ? title : '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: type ? type : 'error' - }).then(() => { + this.$confirm( + message ? message : '是否确认删除当前数据', + title ? title : '提示', + { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: type ? type : 'error', + confirmButtonClass: 'render-button', + cancelButtonClass: 'render-button' + } + ).then(() => { isOk('ok') }) } diff --git a/src/views/app/login/index.vue b/src/views/app/login/index.vue index aeffe63..db60b73 100644 --- a/src/views/app/login/index.vue +++ b/src/views/app/login/index.vue @@ -61,13 +61,13 @@