From 0f39febf94ebe5390aad9b3b73096f92674a5c69 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 7 Aug 2026 15:44:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E6=8E=89=E7=A1=AE=E5=AE=9A?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E4=B8=8B=E6=8B=89=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=90=8E=E8=87=AA=E5=8A=A8=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_context_update.dspy | 31 +++++++------------------ wwwroot/index.ui | 4 ++-- wwwroot/index_cockpit.ui | 4 ++-- 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/wwwroot/api/cockpit_context_update.dspy b/wwwroot/api/cockpit_context_update.dspy index cb08ec7..e756a00 100644 --- a/wwwroot/api/cockpit_context_update.dspy +++ b/wwwroot/api/cockpit_context_update.dspy @@ -65,26 +65,11 @@ async with DBPools().sqlorContext(dbname) as sor: if irecs and len(irecs) > 0: iname = getattr(irecs[0], 'iteration_name', '') or '' - # Return widget descriptor that auto-closes popup and refreshes context - if pid: - label = "项目「" + pname + "」" - else: - label = "迭代「" + iname + "」" - - widget = { - "widgettype": "VBox", - "options": {"padding": "16px", "alignItems": "center", "gap": "8px"}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "\u2713 \u5df2\u8bbe\u7f6e", "cfontsize": 1.2, "color": "#16a34a", "fontWeight": "bold"}}, - {"widgettype": "Text", "options": {"text": label, "cfontsize": 0.95, "color": "#475569"}}, - {"widgettype": "Text", "options": {"text": "\u5f39\u7a97\u5c06\u81ea\u52a8\u5173\u95ed", "cfontsize": 0.8, "color": "#94a3b8"}}, - ], - "binds": [{ - "wid": "self", - "event": "render", - "actiontype": "script", - "target": "self", - "script": "setTimeout(function(){var pps=document.querySelectorAll('.popup-window');for(var i=0;i