fix: 修复授信表单提交 - 使用submit_url替代url, 移除手动buttons

- url → submit_url (Form正确的属性名)
- 移除手动buttons配置 (Form自动生成Submit/Reset工具栏)
- 移除method:POST (Form默认POST)
This commit is contained in:
Hermes Agent 2026-06-24 11:36:00 +08:00
parent 77624b1ef5
commit afb9dd5d88

View File

@ -4,8 +4,7 @@
"options": { "options": {
"width": "100%", "width": "100%",
"padding": "16px", "padding": "16px",
"url": "{{entire_url('/accounting/credit_limit/api/set_customer_credit.dspy')}}", "submit_url": "{{entire_url('/accounting/credit_limit/api/set_customer_credit.dspy')}}",
"method": "POST",
"fields": [ "fields": [
{ {
"name": "id", "name": "id",
@ -46,32 +45,6 @@
"uitype": "str", "uitype": "str",
"value": "{{params_kw.get('remark', '')}}" "value": "{{params_kw.get('remark', '')}}"
} }
],
"buttons": [
{
"label": "保存",
"actiontype": "submit",
"bgcolor": "#3B82F6",
"color": "#FFFFFF",
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "submit",
"target": "credit_form"
}]
},
{
"label": "取消",
"actiontype": "close",
"bgcolor": "#475569",
"color": "#FFFFFF",
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "close",
"target": "PopupWindow"
}]
}
] ]
}, },
"binds": [{ "binds": [{