yumoqing 0bc74fdd1a feat: 修复工作区状态并提交CRUD生成文件
- 修复文件权限 (600→644)
- 删除调试日志 (global_func.py)
- 添加 CRUD 生成的 wwwroot 文件 (pipeline_core/dist/ops)
- 添加 mysql.ddl.sql 文件
- 更新 pyproject.toml 配置
- 添加 showcase 模块安装 (build.sh)
- 更新 index.ui (sidebar toggle + 管理按钮)
- 设置 start.sh/stop.sh 可执行权限
- 添加 wwwroot 符号链接 (appbase/rbac/pipeline_sdlc)
- 更新 .gitignore (排除 pkgs/bricks/pipeline.pid)
2026-06-26 16:44:23 +08:00

265 lines
5.4 KiB
XML

{
"widgettype":"VBox",
"options":{"cheight":40,"width":"100%"},
"subwidgets":[{
"id":"pipeline_usage_log_tbl",
"widgettype":"Tabular",
"options":{
"width":"100%",
"height":"100%",
"title":"产线调用日志表",
"css":"card",
"editable":{
"new_data_url":"{{entire_url('add_pipeline_usage_log.dspy')}}",
"delete_data_url":"{{entire_url('delete_pipeline_usage_log.dspy')}}",
"update_data_url":"{{entire_url('update_pipeline_usage_log.dspy')}}"
},
"data_url":"{{entire_url('./get_pipeline_usage_log.dspy')}}",
"data_method":"GET",
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
"row_options":{
"browserfields": {
"exclouded": [
"id"
],
"alters": {
"pipeline_id": {
"uitype": "code",
"dataurl": "{{entire_url('../api/get_search_pipeline_id.dspy')}}"
},
"status": {
"uitype": "code",
"data": [
{
"value": "success",
"text": "成功"
},
{
"value": "failed",
"text": "失败"
}
]
}
}
},
"editexclouded":[
"id",
"pipeline_id",
"user_id",
"distributor_id",
"call_count",
"token_input",
"token_output",
"amount",
"status",
"error_message",
"called_at"
],
"fields":[
{
"name": "id",
"title": "主键",
"type": "str",
"length": 32,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "主键"
},
{
"name": "pipeline_id",
"title": "产线ID",
"type": "str",
"length": 32,
"nullable": "no",
"label": "产线ID",
"uitype": "code",
"valueField": "pipeline_id",
"textField": "pipeline_id_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_ops')}}",
"table": "pipelines",
"tblvalue": "id",
"tbltext": "name",
"valueField": "pipeline_id",
"textField": "pipeline_id_text"
},
"dataurl": "{{entire_url('../api/get_search_pipeline_id.dspy')}}"
},
{
"name": "user_id",
"title": "用户ID",
"type": "str",
"length": 32,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "用户ID"
},
{
"name": "distributor_id",
"title": "分销商ID",
"type": "str",
"length": 32,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "分销商ID"
},
{
"name": "call_count",
"title": "调用次数",
"type": "int",
"default": "1",
"length": 0,
"uitype": "int",
"datatype": "int",
"label": "调用次数"
},
{
"name": "token_input",
"title": "输入Token数",
"type": "int",
"default": "0",
"length": 0,
"uitype": "int",
"datatype": "int",
"label": "输入Token数"
},
{
"name": "token_output",
"title": "输出Token数",
"type": "int",
"default": "0",
"length": 0,
"uitype": "int",
"datatype": "int",
"label": "输出Token数"
},
{
"name": "amount",
"title": "金额",
"type": "double",
"length": 15,
"dec": 4,
"default": "0",
"cwidth": 15,
"uitype": "float",
"datatype": "double",
"label": "金额"
},
{
"name": "status",
"title": "状态",
"type": "str",
"length": 20,
"label": "状态",
"uitype": "code",
"valueField": "status",
"textField": "status_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_ops')}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
"valueField": "status",
"textField": "status_text",
"cond": "parentid='usage_status'"
},
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
"data": [
{
"value": "success",
"text": "成功"
},
{
"value": "failed",
"text": "失败"
}
]
},
{
"name": "error_message",
"title": "错误信息",
"type": "text",
"length": 0,
"uitype": "text",
"datatype": "text",
"label": "错误信息"
},
{
"name": "called_at",
"title": "调用时间",
"type": "timestamp",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"label": "调用时间"
}
]
},
"data_filter":{
"AND": [
{
"field": "pipeline_id",
"op": "=",
"var": "filter_pipeline_id"
},
{
"field": "called_at",
"op": ">=",
"var": "filter_called_at_start"
},
{
"field": "called_at",
"op": "<=",
"var": "filter_called_at_end"
},
{
"field": "status",
"op": "=",
"var": "filter_status"
}
]
},
"page_rows":160,
"cache_limit":5
}
,"binds":[]
}]
}