{ "widgettype": "VBox", "id": "model_pricing_page", "options": { "width": "100%", "height": "100%", "padding": "20px", "gap": "16px" }, "subwidgets": [ { "widgettype": "Title3", "options": { "text": "模型定价查询" } }, { "widgettype": "InlineForm", "id": "pricing_form", "options": { "fields": [ { "name": "llmid", "label": "选择模型", "uitype": "code", "required": true, "dataurl": "{{entire_url('/llmage/api/get_search_model.dspy')}}", "valueField": "value", "textField": "text" } ], "submit_label": "查询" }, "binds": [ { "wid": "self", "event": "submit", "actiontype": "script", "script": "var v=this.values||{};if(!v.llmid)return;var url='{{entire_url('/llmage/model_pricing.dspy')}}?llmid='+encodeURIComponent(v.llmid);fetch(url,{credentials:'include'}).then(function(r){return r.json()}).then(function(d){var box=bricks.getWidgetById('pricing_result');if(!box)return;if(d.status!=='ok'){box.clear();box.add({widgettype:'Text',options:{text:d.data.message,color:'#ef4444',fontSize:'14px'}});return;}var items=d.data.items||[];var rows=[];for(var i=0;i