From affb1bdeb734cc61aedd0bb3437a3bd9e8c8b08a Mon Sep 17 00:00:00 2001 From: chenxing Date: Sat, 10 Oct 2026 21:47:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20tab=20=E6=94=B9=E7=BA=BF=E5=9E=8B?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=20Notice=EF=BC=9B=E6=93=8D=E4=BD=9C=E5=88=97?= =?UTF-8?q?=20when=E2=86=92disabledWhen=20=E7=BD=AE=E7=81=B0=E4=BF=9D?= =?UTF-8?q?=E4=BD=8D=EF=BC=88=E7=94=A8=E6=88=B7=E9=AA=8C=E6=94=B6=E5=8F=8D?= =?UTF-8?q?=E9=A6=88=20R1=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 工作台/回调管理两页 Tabs 去 type=card,改通道线型 .tabs-panel(对齐 Notice) - 7 页 14 处按行隐藏动作改 disabledWhen 置灰保位(互斥钮恒一灰一活), 规范 §5.2 新增按钮位置稳定性红线:按行变化一律 disabledWhen,when 仅限行无关全局模式 --- src/views/flow/MyInstances.vue | 4 ++-- src/views/flow/Workbench.vue | 2 +- src/views/flow/admin/AppSetting.vue | 4 ++-- src/views/flow/admin/Callbacks.vue | 6 +++--- src/views/flow/admin/Defs.vue | 10 +++++----- src/views/flow/admin/Instances.vue | 4 ++-- src/views/flow/admin/Routers.vue | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/views/flow/MyInstances.vue b/src/views/flow/MyInstances.vue index 1fee3da..39e6726 100644 --- a/src/views/flow/MyInstances.vue +++ b/src/views/flow/MyInstances.vue @@ -27,8 +27,8 @@ const columns = [ actionColumn( [ { key: "detail", label: "详情", icon: "icon-browse", on: (r: any) => router.push(`/instance/${r.instanceId}?pid=101`) }, - { key: "withdraw", label: "撤回", icon: "icon-yaohao", on: (r: any) => onWithdraw(r), when: (r: any) => r.status === 10, danger: true }, - { key: "urge", label: "催办", icon: "icon-fasong", on: (r: any) => onUrge(r), when: (r: any) => r.status === 10 }, + { key: "withdraw", label: "撤回", icon: "icon-yaohao", on: (r: any) => onWithdraw(r), disabledWhen: (r: any) => r.status !== 10, danger: true }, + { key: "urge", label: "催办", icon: "icon-fasong", on: (r: any) => onUrge(r), disabledWhen: (r: any) => r.status !== 10 }, ], { mode: "text", width: 180, fixed: "right" }, ), diff --git a/src/views/flow/Workbench.vue b/src/views/flow/Workbench.vue index 2e2b99e..e070508 100644 --- a/src/views/flow/Workbench.vue +++ b/src/views/flow/Workbench.vue @@ -85,7 +85,7 @@ function switchTab(name: string) {