pricing/wwwroot/test_pricing_program.ui
Hermes Agent d22dbc57ae fix: test_pricing结果用subwidgets控件数组渲染
- dspy: items改为Text控件数组([{widgettype:Text, options:{text:json}}])
- ui: status_of.ok改为VScrollPanel+subwidgets引用items
- 解决之前返回纯文本字符串无法渲染为bricks控件的问题
2026-06-18 16:08:59 +08:00

71 lines
1.1 KiB
XML

{
"widgettype": "VScrollPanel",
"options": {
"width": "100%",
"height": "100%"
},
"subwidgets":[
{
"widgettype": "Form",
"id": "input_form",
"options": {
"fields": [
{
"name": "ppid",
"uitype": "hide",
"value": "{{params_kw.id}}"
},
{
"name": "data",
"label": "计费数据(json)",
"uitype": "text",
"rows": 6,
"cols": 60,
"required": true
}
],
"width": "100%",
"height": "50%"
}
},
{
"widgettype": "VScrollPanel",
"id": "result",
"options": {
"height": "50%",
"width": "100%"
}
}
],
"binds": [
{
"wid": "input_form",
"event": "submit",
"actiontype": "urldata",
"target": "result",
"options": {
"url": "{{entire_url('./test_pricing_program.dspy')}}",
"params":{}
},
"status_of": {
"ok": {
"widgettype": "VScrollPanel",
"options":{
"width": "100%",
"height": "100%"
},
"subwidgets": "${items}"
},
"error": {
"widgettype": "Text",
"options":{
"width": "100%",
"color": "red",
"text": "${message}"
}
}
}
}
]
}