From 1e08f24cd5b8da74309fedb370340bde3681fe1e Mon Sep 17 00:00:00 2001 From: bruce Date: Thu, 4 Jun 2026 04:17:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E6=8C=87=E6=8C=A5=E5=8F=B0=E6=99=BA=E8=83=BD=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/platform_ui/services.py | 2 +- templates/platform_ui/command_center_v2.html | 2 +- tests/test_platform_ui.py | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/platform_ui/services.py b/apps/platform_ui/services.py index 29e780b..9238926 100644 --- a/apps/platform_ui/services.py +++ b/apps/platform_ui/services.py @@ -33,7 +33,7 @@ def get_platform_demo_context(): quick_links = [ {"title": "知识库配置", "url_name": "platform_ui:knowledge-base", "desc": "维护法规规则树与切片策略"}, {"title": "文件中心", "url_name": "documents:list", "desc": "查看上传、解析、切片与异常状态"}, - {"title": "审核工作台", "url_name": "chat:index", "url_arg": "document_review", "desc": "发起审核、抽取与一致性核查演示"}, + {"title": "审核工作台", "url_name": "chat:index", "desc": "发起审核、抽取与一致性核查演示"}, {"title": "工作台大屏", "url_name": "platform_ui:command-center", "desc": "面向演示的 Agent 流程解释大屏"}, ] knowledge_sources = [ diff --git a/templates/platform_ui/command_center_v2.html b/templates/platform_ui/command_center_v2.html index 43a9a7d..5a62efa 100644 --- a/templates/platform_ui/command_center_v2.html +++ b/templates/platform_ui/command_center_v2.html @@ -901,7 +901,7 @@ T任务中心8 D资料包管理 R法规库 - A智能审核 + A智能审核 !风险管理 Q问题清单 F飞书通知 diff --git a/tests/test_platform_ui.py b/tests/test_platform_ui.py index 23079fe..9bcb958 100644 --- a/tests/test_platform_ui.py +++ b/tests/test_platform_ui.py @@ -188,3 +188,12 @@ def test_knowledge_base_page_shows_governance_action_hub_and_fixed_notify_policy assert "task_failed" in content assert reverse("audit:list") in content assert reverse("documents:list") in content + + +def test_command_center_v2_renders_and_links_to_chat_index(client): + response = client.get(reverse("platform_ui:command-center-v2")) + + content = response.content.decode("utf-8") + assert response.status_code == 200 + assert "试剂盒临床注册文件准备与审核智能体平台" in content + assert reverse("chat:index") in content