fix: promote.dspy加回binds用request._run_ns
This commit is contained in:
parent
f50284df3e
commit
3797ae1686
@ -1,5 +1,5 @@
|
||||
code = request._run_ns.params_kw.get('code', '')
|
||||
return {
|
||||
result = {
|
||||
"widgettype": "Form",
|
||||
"options": {
|
||||
"width": "100%", "height": "100%",
|
||||
@ -10,5 +10,6 @@ return {
|
||||
{"name": "expired_date", "label": "促销失效日期", "uitype": "date"},
|
||||
{"name": "discount", "label": "折扣", "uitype": "float", "tip": "0<折扣<1"}
|
||||
]
|
||||
}
|
||||
},
|
||||
"binds": [{"wid": "self", "event": "submited", "actiontype": "script", "target": "self", "script": "await bricks.show_resp_message_or_error(event.params)"}]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user