From ac0893cdb5120f477fdce399fbb40b75a375b9d4 Mon Sep 17 00:00:00 2001
From: xiaozhu <2395895331@qq.com>
Date: Tue, 1 Sep 2026 16:15:54 +0800
Subject: [PATCH] =?UTF-8?q?update:=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/app/components/common/Topbar.tsx | 13 ++--
.../app/features/schedules/SchedulePage.tsx | 77 ++++++++++---------
2 files changed, 48 insertions(+), 42 deletions(-)
diff --git a/frontend/app/components/common/Topbar.tsx b/frontend/app/components/common/Topbar.tsx
index 7f3ee73..c68d154 100644
--- a/frontend/app/components/common/Topbar.tsx
+++ b/frontend/app/components/common/Topbar.tsx
@@ -53,7 +53,7 @@ export function Topbar({
className="grid h-[31px] w-[31px] rotate-180 cursor-pointer place-items-center rounded-[7px] border border-transparent bg-white text-[#7b8999] hover:border-[#b9c9da] hover:bg-[#f7faff]"
type="button"
>
-
+
@@ -93,10 +93,10 @@ export function Topbar({
{currentWorkspace.workspace_name}
-
+
{workspaceMenuOpen && (
-
+
{workspaces.map((workspace) => {
const isSelected =
workspace.workspace_id === currentWorkspace.workspace_id;
@@ -131,7 +131,7 @@ export function Topbar({
{userMenuOpen && (
diff --git a/frontend/app/features/schedules/SchedulePage.tsx b/frontend/app/features/schedules/SchedulePage.tsx
index a378aa0..bee3ac3 100644
--- a/frontend/app/features/schedules/SchedulePage.tsx
+++ b/frontend/app/features/schedules/SchedulePage.tsx
@@ -449,37 +449,38 @@ export default function SchedulePage({
linkSourceId={linkSourceId}
onCancelLink={() => setLinkSourceId(null)}
/>
-
{
- event.preventDefault();
- event.dataTransfer.dropEffect = "copy";
- }}
- onDrop={onCanvasDrop}
- onClick={(event) => {
- // 画布实际内容位于 surface/SVG 子元素中,不能只比较 currentTarget;
- // 点击节点或连线时保留选择,点击其余空白位置则返回调度方案基本信息。
- const target = event.target as Element;
- if (
- target.closest(".schedule-node") ||
- target.matches(".schedule-edge-line, .schedule-edge-hit")
- ) return;
- setSelectedNodeId(null);
- setSelectedEdgeId(null);
- }}
- >
+
{
+ event.preventDefault();
+ event.dataTransfer.dropEffect = "copy";
+ }}
+ onDrop={onCanvasDrop}
+ onClick={(event) => {
+ // 画布实际内容位于 surface/SVG 子元素中,不能只比较 currentTarget;
+ // 点击节点或连线时保留选择,点击其余空白位置则返回调度方案基本信息。
+ const target = event.target as Element;
+ if (
+ target.closest(".schedule-node") ||
+ target.matches(".schedule-edge-line, .schedule-edge-hit")
+ ) return;
+ setSelectedNodeId(null);
+ setSelectedEdgeId(null);
+ }}
>
+
{schedule && (
))}
-
- {!schedule ? (
-
+
+
+ {!schedule ? (
+
+
还没有选中调度方案
点击"新建"创建一个调度,然后拖入稳定版本脚本。
@@ -616,14 +619,16 @@ export default function SchedulePage({
新建调度
- ) : schedule.nodes.length === 0 ? (
-
+
+ ) : schedule.nodes.length === 0 ? (
+
+
从稳定版本开始编排
把左侧脚本卡片拖到这里,或双击卡片快速加入。
- ) : null}
-
+
+ ) : null}