fix: 子页面卡片target改为-main_content,简化布局去除VScrollPanel子容器

This commit is contained in:
yumoqing 2026-06-12 01:24:54 +08:00
parent 05f22677ab
commit 06b7b3f986
3 changed files with 183 additions and 262 deletions

View File

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

View File

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

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