From 8d9f31d7add4628682f9d4478732db3678b08f25 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Jul 2026 10:58:22 +0800 Subject: [PATCH] fix: change toolbar binds from dspy to script actiontype --- wwwroot/sub_distributors_list/index.ui | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/wwwroot/sub_distributors_list/index.ui b/wwwroot/sub_distributors_list/index.ui index 52f6f15..1a8be25 100644 --- a/wwwroot/sub_distributors_list/index.ui +++ b/wwwroot/sub_distributors_list/index.ui @@ -321,17 +321,8 @@ { "wid": "self", "event": "distribution_agreements", - "actiontype": "dspy", - "params_mapping": { - "mapping": { - "id": "sub_reseller_id" - }, - "need_other": false - }, - "options": { - "method": "POST", - "url": "{{entire_url('../api/ensure_distribution_agreement.dspy')}}" - } + "actiontype": "script", + "script": "bricks_fetch('{{entire_url('../api/ensure_distribution_agreement.dspy')}}',{method:'POST',body:JSON.stringify({sub_reseller_id:data.id})}).then(r=>r.json()).then(r=>bricks.showMessage(r.options.title,r.options.message,r.options.type||'success'))" } ]