diff --git a/src/views/agent/chat/components/HistoryChat.vue b/src/views/agent/chat/components/HistoryChat.vue index 479aa92..ff992ed 100644 --- a/src/views/agent/chat/components/HistoryChat.vue +++ b/src/views/agent/chat/components/HistoryChat.vue @@ -7,7 +7,9 @@
-
{{ cozeInfo.name }}
+ +
{{ cozeInfo.name }}
+
@@ -34,7 +36,6 @@ diff --git a/src/views/agent/chat/components/history.scss b/src/views/agent/chat/components/history.scss index 8957438..89b5f28 100644 --- a/src/views/agent/chat/components/history.scss +++ b/src/views/agent/chat/components/history.scss @@ -37,7 +37,7 @@ .info-section { align-self: stretch; - padding: 10px 0 0 10px; + padding: 10px 10px 0 12px; display: flex; justify-content: space-between; align-items: flex-start; @@ -55,6 +55,19 @@ font-weight: 400; line-height: 26px; padding: 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + max-width: 150px; + flex-shrink: 0; + } + + @media (max-width: 768px) { + .title { + font-size: 16px; + padding: 8px; + max-width: 100px; + } } .tag { @@ -92,16 +105,19 @@ } } } - .usage-info { padding: 12px; - margin-right: 12px; + display: flex; + align-items: center; + gap: 8px; + .count { color: var(--Text-2, #3C4043); font-size: 16px; font-family: 'Alibaba PuHuiTi', sans-serif; font-weight: 400; line-height: 24px; + white-space: nowrap; } .label { @@ -110,8 +126,21 @@ font-family: 'Alibaba PuHuiTi', sans-serif; font-weight: 400; line-height: 20px; + white-space: nowrap; + } + @media (max-width: 768px) { + flex-direction: column; + align-items: flex-start; + gap: 4px; + .count { + font-size: 14px; + } + .label { + font-size: 10px; + } } } + } .description-section { @@ -135,7 +164,6 @@ } - .history-section { align-self: stretch; flex: 1 1 0; diff --git a/src/views/agent/chat/index.vue b/src/views/agent/chat/index.vue index e59834a..2927681 100644 --- a/src/views/agent/chat/index.vue +++ b/src/views/agent/chat/index.vue @@ -2,36 +2,38 @@
返回空间
- - + - - + -
+
-
+
@@ -107,7 +109,7 @@ const cozeInfo = reactive({ let cozeWebSDK = null; const initChat = async () => { const { code, data } = await getChatAgent(query.id); - if (code != 200) { + if (code !== 200) { return false; } @@ -129,15 +131,31 @@ const cozeWebSdkConfig = (botId, name, auth, userInfo) => { ui: { chatBot: { el: document.getElementById('coze-chat-container'), - width: '95%', + width: '100%', height: '100%', title: name, isNeedFunctionCallMessage: true, + feedback: { + isNeedFeedback: true, + feedbackPanel: { + title: '您对这个回答有什么看法?请告诉我们', + placeholder: '请详细描述您的问题...', + tags: [ + { + label: '信息不正确', + }, + { + label: '涉及敏感信息', + isNeedDetail: true, + }, + ], + }, + }, }, base: { icon: '', zIndex: 1000, - lang:'zh-CN' + lang: 'zh-CN', }, footer: { expressionText: '内容由AI生成,无法确保真实准确,仅供参考。', @@ -147,9 +165,9 @@ const cozeWebSdkConfig = (botId, name, auth, userInfo) => { }, conversations: { isNeed: true, - isNeedAddNewConversationBoolean: true, - isNeedQuoteBoolean: true, - } + isNeedAddNewConversation: true, + isNeedQuote: true, + }, }, auth: auth, userInfo: userInfo, diff --git a/src/views/agent/chat/style.scss b/src/views/agent/chat/style.scss index e2128d4..32cc581 100644 --- a/src/views/agent/chat/style.scss +++ b/src/views/agent/chat/style.scss @@ -40,5 +40,9 @@ } } + .toggle-btn{ + margin-top: 10px; + margin-bottom: 10px; + } } diff --git a/src/views/agent/index/style.scss b/src/views/agent/index/style.scss index abc9f94..6fb3d1e 100644 --- a/src/views/agent/index/style.scss +++ b/src/views/agent/index/style.scss @@ -124,7 +124,6 @@ gap: 4px; .status-icon { - width: 12px; height: 12px; } diff --git a/src/views/agent/work-flow/components/DynamicForm.vue b/src/views/agent/work-flow/components/DynamicForm.vue index d3cfb62..b7ccc21 100644 --- a/src/views/agent/work-flow/components/DynamicForm.vue +++ b/src/views/agent/work-flow/components/DynamicForm.vue @@ -79,7 +79,7 @@ const handleSubmit = async () => { padding: 24px; border: 1px solid #d7d7d9; /* 添加灰色边框 */ background: var(--BG-White, white); - height: 70vh; + min-height: 70vh; :deep(.arco-input-wrapper), :deep(.arco-textarea-wrapper) { diff --git a/src/views/agent/work-flow/components/HistoryChat.vue b/src/views/agent/work-flow/components/HistoryChat.vue index 0ff5bb0..37d2ef3 100644 --- a/src/views/agent/work-flow/components/HistoryChat.vue +++ b/src/views/agent/work-flow/components/HistoryChat.vue @@ -2,18 +2,15 @@
- +
-
{{cozeInfo.name}}
+
{{ cozeInfo.name }}
- +
工作流
@@ -30,16 +27,14 @@
- {{cozeInfo.description}} + {{ cozeInfo.description }}
-