llmage/json/llmusage_accounting_failed.json
ysh c613e8c85d fix: 记账失败列表显示模型/用户/机构名称而非ID
- 为 llmid/userid/userorgid 的 alters 添加 uitype: code
- Tabular 现在使用 textField 显示可读名称
- 同步更新 CRUD 源配置 json/llmusage_accounting_failed.json
2026-06-26 16:32:27 +08:00

65 lines
2.0 KiB
JSON

{
"tblname": "llmusage_accounting_failed",
"title": "记账失败记录",
"params": {
"sortby": "failed_time desc",
"toolbar": {
"tools": [
{
"name": "show_reason",
"label": "原因",
"selected_row": true
}
]
},
"binds": [
{
"wid": "self",
"event": "show_reason",
"actiontype": "urlwidget",
"target": "PopupWindow",
"popup_options": {
"title": "失败原因",
"cwidth": 30,
"cheight": 20
},
"options": {
"url": "{{entire_url('../api/show_failed_reason.dspy')}}?id=${id}$"
}
}
],
"browserfields": {
"exclouded": [
"id",
"failed_reason"
],
"alters": {
"llmid": {
"valueField": "llmid",
"textField": "llmid_text",
"uitype": "code"
},
"userid": {
"valueField": "userid",
"textField": "userid_text",
"uitype": "code"
},
"userorgid": {
"valueField": "userorgid",
"textField": "userorgid_text",
"uitype": "code"
}
}
},
"editexclouded": [
"id",
"llmusageid",
"failed_time"
],
"editable": {
"new_data_url": "{{entire_url('../api/llmusage_accounting_failed_create.dspy')}}",
"update_data_url": "{{entire_url('../api/llmusage_accounting_failed_update.dspy')}}",
"delete_data_url": "{{entire_url('../api/llmusage_accounting_failed_delete.dspy')}}"
}
}
}