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

View File

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