From 31ef3531c82b6fadab6bb807301a83d445914c2a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 10:48:29 +0800 Subject: [PATCH] fix: add dismiss_events to all PopupWindows in accounting module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All PopupWindows loading Form widgets now include 'dismiss_events: ["cancel"]' so the Form Cancel button properly closes the popup instead of doing nothing. - credit_manage.ui: '新增授信' and '调整' popups - error_accounting.ui: '报告错帐' popup - myaccounts.ui: '充值' and '明细' popups Ref: bricks-framework skill — PopupWindow dismiss_events pattern --- wwwroot/credit_limit/credit_manage.ui | 6 ++++-- wwwroot/error_accounting.ui | 3 ++- wwwroot/myaccounts.ui | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wwwroot/credit_limit/credit_manage.ui b/wwwroot/credit_limit/credit_manage.ui index b49dbf0..ec4765b 100644 --- a/wwwroot/credit_limit/credit_manage.ui +++ b/wwwroot/credit_limit/credit_manage.ui @@ -40,7 +40,8 @@ "popup_options": { "title": "新增客户授信", "width": "480px", - "height": "520px" + "height": "520px", + "dismiss_events": ["cancel"] }, "options": { "url": "{{entire_url('/accounting/credit_limit/api/set_credit_form.ui')}}" @@ -249,7 +250,8 @@ "popup_options": { "title": "调整授信额度", "width": "480px", - "height": "520px" + "height": "520px", + "dismiss_events": ["cancel"] }, "options": { "url": "{{entire_url('/accounting/credit_limit/api/set_credit_form.ui')}}", diff --git a/wwwroot/error_accounting.ui b/wwwroot/error_accounting.ui index f2becc5..efc2f86 100644 --- a/wwwroot/error_accounting.ui +++ b/wwwroot/error_accounting.ui @@ -127,7 +127,8 @@ "popup_options": { "title": "报告错帐", "width": "560px", - "height": "600px" + "height": "600px", + "dismiss_events": ["cancel"] }, "options": { "url": "{{entire_url('/accounting/error_accounting_report.ui')}}" diff --git a/wwwroot/myaccounts.ui b/wwwroot/myaccounts.ui index 1cb3ee2..5d45bad 100644 --- a/wwwroot/myaccounts.ui +++ b/wwwroot/myaccounts.ui @@ -76,6 +76,7 @@ "width":"600px", "height":"500px" {% endif %} + ,"dismiss_events":["cancel"] }, "options":{ "params_kw":{ @@ -98,6 +99,7 @@ "width":"700px", "height":"550px" {% endif %} + ,"dismiss_events":["cancel"] }, "options":{ "params_kw":{