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

322 lines
7.3 KiB
XML

{
"widgettype":"VBox",
"options":{"cheight":40,"width":"100%"},
"subwidgets":[{
"id":"pipeline_pricing_tbl",
"widgettype":"Tabular",
"options":{
"width":"100%",
"height":"100%",
"title":"产线定价表",
"css":"card",
"editable":{
"new_data_url":"{{entire_url('add_pipeline_pricing.dspy')}}",
"delete_data_url":"{{entire_url('delete_pipeline_pricing.dspy')}}",
"update_data_url":"{{entire_url('update_pipeline_pricing.dspy')}}"
},
"data_url":"{{entire_url('./get_pipeline_pricing.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')}}"
},
"pricing_type": {
"uitype": "code",
"data": [
{
"value": "per_call",
"text": "按次计费"
},
{
"value": "per_token",
"text": "按token计费"
},
{
"value": "subscription",
"text": "订阅制"
}
]
},
"status": {
"uitype": "code",
"data": [
{
"value": "active",
"text": "生效中"
},
{
"value": "expired",
"text": "已过期"
},
{
"value": "disabled",
"text": "已停用"
}
]
}
}
},
"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": "pricing_type",
"title": "计费方式",
"type": "str",
"length": 20,
"nullable": "no",
"label": "计费方式",
"uitype": "code",
"valueField": "pricing_type",
"textField": "pricing_type_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_ops')}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
"valueField": "pricing_type",
"textField": "pricing_type_text",
"cond": "parentid='pricing_type'"
},
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
"data": [
{
"value": "per_call",
"text": "按次计费"
},
{
"value": "per_token",
"text": "按token计费"
},
{
"value": "subscription",
"text": "订阅制"
}
]
},
{
"name": "unit_price",
"title": "单价",
"type": "double",
"length": 15,
"dec": 4,
"nullable": "no",
"default": "0",
"cwidth": 15,
"uitype": "float",
"datatype": "double",
"label": "单价"
},
{
"name": "currency",
"title": "货币",
"type": "str",
"length": 10,
"default": "CNY",
"label": "货币",
"uitype": "code",
"valueField": "currency",
"textField": "currency_text",
"params": {
"dbname": "{{get_module_dbname('pipeline_ops')}}",
"table": "appcodes_kv",
"tblvalue": "k",
"tbltext": "v",
"valueField": "currency",
"textField": "currency_text",
"cond": "parentid='currency'"
},
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
},
{
"name": "pricing_config",
"title": "定价配置JSON",
"type": "text",
"length": 0,
"uitype": "text",
"datatype": "text",
"label": "定价配置JSON"
},
{
"name": "effective_date",
"title": "生效日期",
"type": "date",
"length": 0,
"uitype": "date",
"datatype": "date",
"label": "生效日期"
},
{
"name": "expiry_date",
"title": "失效日期",
"type": "date",
"length": 0,
"uitype": "date",
"datatype": "date",
"label": "失效日期"
},
{
"name": "status",
"title": "状态",
"type": "str",
"length": 20,
"default": "active",
"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='pricing_status'"
},
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
"data": [
{
"value": "active",
"text": "生效中"
},
{
"value": "expired",
"text": "已过期"
},
{
"value": "disabled",
"text": "已停用"
}
]
},
{
"name": "org_id",
"title": "所属组织",
"type": "str",
"length": 32,
"default": "0",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "所属组织"
},
{
"name": "created_by",
"title": "创建人",
"type": "str",
"length": 32,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "创建人"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"label": "创建时间"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"label": "更新时间"
}
]
},
"data_filter":{
"AND": [
{
"field": "pipeline_id",
"op": "=",
"var": "filter_pipeline_id"
},
{
"field": "status",
"op": "=",
"var": "filter_status"
}
]
},
"page_rows":160,
"cache_limit":5
}
,"binds":[]
}]
}