fix: pipeline_ops/dist/core index.ui重写为Bricks格式,修复卡片点击和target ID

This commit is contained in:
yumoqing 2026-06-12 01:20:50 +08:00
parent 8bf090c177
commit 05f22677ab
3 changed files with 327 additions and 0 deletions

View File

@ -0,0 +1,126 @@
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "0"
},
"subwidgets": [
{
"widgettype": "HBox",
"options": {
"width": "100%",
"alignItems": "center",
"marginBottom": "24px"
},
"subwidgets": [
{
"widgettype": "Title2",
"options": {
"text": "产线管理"
}
},
{
"widgettype": "Filler"
},
{
"widgettype": "Text",
"options": {
"text": "产线定义、步骤配置与发布管理",
"cfontsize": 1.2
}
}
]
},
{
"widgettype": "VBox",
"options": {
"css": "filler",
"spacing": 16
},
"subwidgets": [
{
"widgettype": "ResponsableBox",
"options": {
"gap": "16px",
"minWidth": "250px"
},
"subwidgets": [
{
"widgettype": "Button",
"options": {
"label": "产线定义",
"css": "card",
"cwidth": 23,
"cheight": 8
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_core_content",
"options": {
"url": "{{entire_url('pipelines/')}}"
},
"mode": "replace"
}
]
},
{
"widgettype": "Button",
"options": {
"label": "产线步骤",
"css": "card",
"cwidth": 23,
"cheight": 8
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_core_content",
"options": {
"url": "{{entire_url('pipeline_steps/')}}"
},
"mode": "replace"
}
]
},
{
"widgettype": "Button",
"options": {
"label": "发布记录",
"css": "card",
"cwidth": 23,
"cheight": 8
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_core_content",
"options": {
"url": "{{entire_url('pipeline_versions/')}}"
},
"mode": "replace"
}
]
}
]
},
{
"widgettype": "VScrollPanel",
"id": "pipeline_core_content",
"options": {
"css": "filler",
"width": "100%",
"height": "100%"
}
}
]
}
]
}

View File

@ -0,0 +1,91 @@
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "0"
},
"subwidgets": [
{
"widgettype": "VScrollPanel",
"id": "pipeline_dist_content",
"options": {
"css": "filler",
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "VBox",
"options": {
"width": "100%",
"padding": "32px",
"spacing": "24px"
},
"subwidgets": [
{
"widgettype": "Title2",
"options": {
"text": "分销管理"
}
},
{
"widgettype": "Text",
"options": {
"text": "管理分销商与产线配置",
"cfontsize": 1.2
}
},
{
"widgettype": "ResponsableBox",
"options": {
"gap": "16px",
"minWidth": "220px"
},
"subwidgets": [
{
"widgettype": "Button",
"options": {
"label": "分销商管理",
"cwidth": 23,
"cheight": 8,
"css": "card"
},
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_dist_content",
"options": {
"url": "{{entire_url('distributors/')}}"
},
"mode": "replace"
}]
},
{
"widgettype": "Button",
"options": {
"label": "分销商产线配置",
"cwidth": 23,
"cheight": 8,
"css": "card"
},
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_dist_content",
"options": {
"url": "{{entire_url('distributor_pipeline/')}}"
},
"mode": "replace"
}]
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,110 @@
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "0"
},
"subwidgets": [
{
"widgettype": "VScrollPanel",
"id": "pipeline_ops_content",
"options": {
"css": "filler",
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "VBox",
"options": {
"width": "100%",
"padding": "32px",
"spacing": "24px"
},
"subwidgets": [
{
"widgettype": "Title2",
"options": {
"text": "运营管理"
}
},
{
"widgettype": "Text",
"options": {
"text": "管理产线定价、供应量与使用记录",
"cfontsize": 1.2
}
},
{
"widgettype": "ResponsableBox",
"options": {
"gap": "16px",
"minWidth": "220px"
},
"subwidgets": [
{
"widgettype": "Button",
"options": {
"label": "定价管理",
"cwidth": 23,
"cheight": 8,
"css": "card"
},
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_ops_content",
"options": {
"url": "{{entire_url('pipeline_pricing/')}}"
},
"mode": "replace"
}]
},
{
"widgettype": "Button",
"options": {
"label": "供应量管理",
"cwidth": 23,
"cheight": 8,
"css": "card"
},
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_ops_content",
"options": {
"url": "{{entire_url('pipeline_capacity/')}}"
},
"mode": "replace"
}]
},
{
"widgettype": "Button",
"options": {
"label": "使用记录",
"cwidth": 23,
"cheight": 8,
"css": "card"
},
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "-pipeline_ops_content",
"options": {
"url": "{{entire_url('pipeline_usage_log/')}}"
},
"mode": "replace"
}]
}
]
}
]
}
]
}
]
}