fix: failed_accounting查询按钮无响应 — target解析根因修复
根因: InlineForm binds的target='failed_table',getWidgetById从 InlineForm向下搜索(querySelector),但failed_table是兄弟控件 (同为VBox子控件),向下搜索永远找不到→buildEventHandler返回 null→script根本不执行→无报错无请求。 修复: target改为'app.failed_table'(根→向下搜索),与sidebar 菜单模式一致。多次修改未果的根因都在这里。
This commit is contained in:
parent
e2e3eab580
commit
211b9d7663
@ -46,8 +46,8 @@
|
||||
"wid": "self",
|
||||
"event": "submit",
|
||||
"actiontype": "script",
|
||||
"target": "failed_table",
|
||||
"script": "var tbl = bricks.getWidgetById('failed_table', bricks.app.root); if(tbl) await tbl.render(params);"
|
||||
"target": "app.failed_table",
|
||||
"script": "var tbl = bricks.getWidgetById('app.failed_table'); if(tbl) await tbl.render(params);"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user