From a3aff0bc3490bee5912a76517b87161601210e99 Mon Sep 17 00:00:00 2001 From: GuoQing Zhang Date: Mon, 11 Aug 2025 18:48:28 +0800 Subject: [PATCH 1/6] fix: sop error rows append error --- src/backend/bisheng/api/services/linsight/sop_manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/bisheng/api/services/linsight/sop_manage.py b/src/backend/bisheng/api/services/linsight/sop_manage.py index 68a3bea7d..ade63a981 100644 --- a/src/backend/bisheng/api/services/linsight/sop_manage.py +++ b/src/backend/bisheng/api/services/linsight/sop_manage.py @@ -243,7 +243,7 @@ class SOPManageService: if error_msg: error_msg = "、".join(error_msg) - error_rows.extend(f"• 第{i}行: {error_msg}") + error_rows.append(f"• 第{i}行: {error_msg}") else: success_rows.append({ "name": str(name), From 4bf8e4a9b3eb579355c11281ee1234cbfb9fe490 Mon Sep 17 00:00:00 2001 From: lmr <350416710@qq.com> Date: Mon, 11 Aug 2025 18:51:43 +0800 Subject: [PATCH 2/6] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/BuildPage/bench/LingSiWork.tsx | 102 +++++++++++------- 1 file changed, 64 insertions(+), 38 deletions(-) diff --git a/src/frontend/platform/src/pages/BuildPage/bench/LingSiWork.tsx b/src/frontend/platform/src/pages/BuildPage/bench/LingSiWork.tsx index 53736ad8b..f7208eeba 100644 --- a/src/frontend/platform/src/pages/BuildPage/bench/LingSiWork.tsx +++ b/src/frontend/platform/src/pages/BuildPage/bench/LingSiWork.tsx @@ -782,7 +782,7 @@ const handleValidationDialogConfirm = async () => { - const res = await sopApi.UploadSopRecord(formData); + const res = await captureAndAlertRequestErrorHoc(sopApi.UploadSopRecord(formData)); if(res?.repeat_name){ setImportDialogOpen(true) setDuplicateNames(res.repeat_name); @@ -1015,14 +1015,16 @@ const handleValidationDialogConfirm = async () => {

{t('code.clickOrDragHere')}

- {importFiles.length > 0 && ( -
+ +
+ {importFiles.length > 0 && ( +
{importFiles.slice(0, 1).map((file, index) => ( -
- +
+ {file.name} - + */}
))}
)} -
@@ -1062,39 +1063,64 @@ const handleValidationDialogConfirm = async () => { setValidationDialog(prev => ({...prev, open}))}> - - -
-
- + + {/* 静态蓝色竖条 - 始终显示 */} +
+ + {/* 可滚动区域 - 仅在内容溢出时显示滚动条 */} +
+ {/* 自定义滚动条样式 (Webkit浏览器) */} + + + +
+
+ i +
+ 文件格式不符合要求
- 文件导入结果 +
+ +
+ {validationDialog.status_message && ( +
+

+ {validationDialog.status_message.split(":")[0]} +

+ {validationDialog.status_message.includes(":") && ( +
+ {validationDialog.status_message.split(":")[1].split("\n").map((line, index) => ( +

{line.trim()}

+ ))} +
+ )} +
+ )}
- -
- {validationDialog.status_message && ( - <> -

- {validationDialog.status_message.split(":")[0]} -

- {validationDialog.status_message.includes(":") && ( -
- {validationDialog.status_message.split(":")[1].split("\n").map((line, index) => ( -

{line.trim()}

- ))} -
- )} - - )} -
- -
- +
+ +
From 1e95af941294c95bbb2e4a6d9084a17a84dfa49a Mon Sep 17 00:00:00 2001 From: dolphin Date: Mon, 11 Aug 2025 19:11:47 +0800 Subject: [PATCH 3/6] fix: some bugfix --- .../client/src/components/Chat/ChatView.tsx | 12 +- .../src/components/Chat/Input/ChatForm.tsx | 1 + .../client/src/components/Sop/SOPEditor.tsx | 13 +- .../client/src/components/Sop/SopMarkdown.tsx | 4 +- .../client/src/components/Sop/TaskFlow.tsx | 2 +- .../src/components/Sop/TaskFlowContent.tsx | 7 +- .../components/Sop/components/SopLoading.tsx | 116 ++++- .../client/src/hooks/useLinsightManager.tsx | 2 + src/frontend/client/src/style.css | 19 +- src/frontend/client/vite.config.ts | 4 +- src/frontend/platform/src/App.css | 21 +- .../platform/src/controllers/API/flow.ts | 1 - .../src/pages/BuildPage/CreateApp.tsx | 2 +- .../src/pages/BuildPage/bench/LingSiWork.tsx | 470 +++++++++--------- 14 files changed, 418 insertions(+), 256 deletions(-) diff --git a/src/frontend/client/src/components/Chat/ChatView.tsx b/src/frontend/client/src/components/Chat/ChatView.tsx index ad87f83f6..dcf1fae57 100644 --- a/src/frontend/client/src/components/Chat/ChatView.tsx +++ b/src/frontend/client/src/components/Chat/ChatView.tsx @@ -1,3 +1,4 @@ +import { ArrowRight } from 'lucide-react'; import { memo, useCallback, useEffect, useState } from 'react'; import { useForm } from 'react-hook-form'; import { useNavigate, useParams } from 'react-router-dom'; @@ -10,6 +11,7 @@ import { useAddedResponse, useChatHelpers, useSSE } from '~/hooks'; import { AddedChatContext, ChatContext, ChatFormProvider, useFileMapContext } from '~/Providers'; import store from '~/store'; import { buildTree, cn } from '~/utils'; +import { Button } from '../ui'; import HeaderTitle from './HeaderTitle'; import ChatForm from './Input/ChatForm'; import InvitationCodeForm from './InviteCode'; @@ -84,6 +86,8 @@ function ChatView({ index = 0 }: { index?: number }) { window.open(`${__APP_ENV__.BASE_URL}/linsight/${caseId}`) } + const selfHost = location.host.indexOf('bisheng') !== -1; + return ( @@ -120,14 +124,16 @@ function ChatView({ index = 0 }: { index?: number }) { {/* input */} {/*