16 Commits

Author SHA1 Message Date
Hermes Agent
5ab8171552 refactor: failed_accounting.ui布局优化 - 移除外层HBox包装,InlineForm直接作为VBox子控件 - 重试记账按钮移至Tabular toolbar 2026-06-18 14:21:10 +08:00
Hermes Agent
4abd553302 fix: failed_accounting.ui显示优化 + dspy跨库JOIN返回_text字段 - failed_accounting.ui: userid→username, userorgid→orgname, llmid→llm.name - 移除cost/use_date列, InlineForm紧凑布局 - failed_accounting_list.dspy: 跨库JOIN users/organization/llm获取名称 - handled保持原始值, 由UI的code控件显示 2026-06-18 14:15:28 +08:00
Hermes Agent
cb99a83364 revert: 恢复tbl.render(params),排查InlineForm数据传递问题 2026-06-18 13:37:40 +08:00
Hermes Agent
716876fd92 fix: failed_accounting查询用event传表单数据 2026-06-18 12:51:27 +08:00
Hermes Agent
74aca298a7 llmage: failed_accounting.ui加原因toolbar按钮弹窗显示失败原因 2026-06-18 12:14:06 +08:00
Hermes Agent
b53eb61fbf fix: 修复记账失败记录查询无响应(bug4/5)+模型上线检查无响应(bug3) 2026-06-16 10:45:27 +08:00
f5a9ce2c12 fix: DataViewer改Tabular,fields移入row_options用cwidth比例布局 2026-06-13 19:04:45 +08:00
79a99f2dba fix: DataViewer去掉title避免白色背景,修正page_rows参数名 2026-06-13 19:00:40 +08:00
335a06d5ea refactor: failed_accounting.ui改用InlineForm简化过滤栏 2026-06-13 18:41:04 +08:00
6bc04897ab bugfix 2026-06-12 15:36:02 +08:00
647e63eb04 fix: failed_accounting.ui - Combobox→UiCode, 移除formatter, 修复dspy import 2026-06-12 15:23:05 +08:00
39af416625 fix: 记账失败记录页面的查询和重试按钮
修复 failed_accounting.ui 中两个按钮的 JavaScript 错误:

查询按钮:
- 替换 this.root.getElementById() 为 bricks.getWidgetById()
- 替换 DataViewer.load() 为 render() (正确的公开API)
- 使用 getValue() 获取输入控件值

重试按钮:
- 替换 this.root.getElementById() 为 bricks.getWidgetById()
- 替换 selected_row 为 select_row (正确的内部属性名)
- 通过 .user_data 访问行数据
- 替换 dv.load() 为 dv.render()
- 使用 entire_url() 模板生成正确的 API URL
- 改用 async/await 替代 Promise chain

根本原因: 原代码使用了不存在的 bricks API
(this.root.getElementById, DataViewer.load, selected_row)
2026-06-12 14:28:50 +08:00
7911750127 feat(llmage): 备份改用INSERT SELECT+DELETE单SQL语句 + 新增失败记录重试功能 2026-05-24 21:57:56 +08:00
93bbd529db fix(llmage): failed_accounting.ui 日期控件改为UiDate 2026-05-24 15:16:01 +08:00
1e335d35cb fix(llmage): 规范检查修复
- accounting.py: 删除重复datetime导入, 清理未使用env变量
- failed_accounting.ui: Button text→label(规范), DatePicker→TextInput(不确定的widget)
- index.ui: backgroundColor→bgcolor(规范), 3处修复
- llmusage_accounting_failed_update.dspy: 删除ServerEnv()违规(.dspy禁用), 用datetime替代
- 新增llmusage_history只读DSPY(create/update/delete返回只读提示)
2026-05-24 14:11:33 +08:00
07b4893252 feat(llmage): 添加llmusage历史记录备份和记账失败检索功能
- 新增 llmusage_history 表:定时备份已记账(use_date<today)的历史记录
- 新增 llmusage_accounting_failed 表:记录记账失败详情,支持检索
- 新增 backup_accounted_llmusage() 函数:备份+清理历史数据
- 新增 get_failed_accounting_records() 函数:按条件检索失败记录
- 更新 llm_accoung_failed():同时写入失败表记录
- 新增 failed_accounting.ui 页面和 failed_accounting_list.dspy API
- 新增 llmusage CRUD API (create/update/delete)
- 新增表索引优化查询性能
- 更新 setup_llmage_perms.sh 添加新端点权限
- 生成生产迁移SQL: scripts/migrate_llmusage_history.sql
2026-05-24 13:55:48 +08:00