From 8fe3cff6f8714e64758ae8d43490a1c20c5df5d8 Mon Sep 17 00:00:00 2001 From: ZLY Date: Thu, 23 Oct 2025 10:35:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(event):=20=E6=96=B0=E5=A2=9E=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=A2=9E=E5=8A=A0=E5=AF=B9=E4=BA=8E**empty**=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=BB=98=E8=AE=A4=E4=BA=8B=E4=BB=B6=E7=9A=84=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=98=BB=E6=AD=A2=E5=92=8Ctopic=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FlowEditor/nodeEditors/components/EventSelect.tsx | 3 +++ src/pages/orchestration/event/index.tsx | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx b/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx index fd981af..1c3a1f2 100644 --- a/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx +++ b/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx @@ -171,6 +171,9 @@ const EventSelect: React.FC = ({ nodeData, eventList, type, on if (!value) { return cb('请填写事件标识'); } + if (value.includes('**empty**')) { + return cb('非法事件标识,请重新输入'); + } return cb(); } diff --git a/src/pages/orchestration/event/index.tsx b/src/pages/orchestration/event/index.tsx index ce60ac5..879e468 100644 --- a/src/pages/orchestration/event/index.tsx +++ b/src/pages/orchestration/event/index.tsx @@ -94,6 +94,9 @@ const HandleModal = ({ visible, onChangeVisible, onRefresh }) => { if (!value) { return cb('请填写事件标识'); } + if (value.includes('**empty**')) { + return cb('非法事件标识,请重新输入'); + } return cb(); } @@ -135,12 +138,12 @@ const EventContainer = () => { // 根据搜索值过滤事件数据 const filteredEventData = useMemo(() => { if (!searchValue) return eventData; - + return eventData.filter(item => { const name = item.name || ''; const topic = item.topic || ''; const desc = item.description || ''; - + const searchLower = searchValue.toLowerCase(); return ( name.toLowerCase().includes(searchLower) ||