fix: wrap Tabular in VBox with cheight for proper scrolling

This commit is contained in:
yumoqing 2026-05-29 22:10:00 +08:00
parent 48294e95fb
commit 54e945b545

View File

@ -38,6 +38,10 @@
"name": "pending", "name": "pending",
"label": "待审批", "label": "待审批",
"content": { "content": {
"widgettype": "VBox",
"options": { "cheight": 35, "width": "100%" },
"subwidgets": [
{
"widgettype": "Tabular", "widgettype": "Tabular",
"id": "pending_grid", "id": "pending_grid",
"options": { "options": {
@ -45,45 +49,26 @@
"data_method": "GET", "data_method": "GET",
"row_options": { "row_options": {
"fields": [ "fields": [
{ { "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
"name": "approval_code", { "name": "title", "title": "标题", "uitype": "str", "cwidth": 20 },
"title": "审批编号", { "name": "applicant", "title": "申请人", "uitype": "str", "cwidth": 10 },
"uitype": "str", { "name": "apply_date", "title": "申请日期", "uitype": "str", "cwidth": 12 },
"cwidth": 12 { "name": "status", "title": "状态", "uitype": "str", "cwidth": 8 }
},
{
"name": "title",
"title": "标题",
"uitype": "str",
"cwidth": 20
},
{
"name": "applicant",
"title": "申请人",
"uitype": "str",
"cwidth": 10
},
{
"name": "apply_date",
"title": "申请日期",
"uitype": "str",
"cwidth": 12
},
{
"name": "status",
"title": "状态",
"uitype": "str",
"cwidth": 8
}
] ]
} }
} }
} }
]
}
}, },
{ {
"name": "approved", "name": "approved",
"label": "已审批", "label": "已审批",
"content": { "content": {
"widgettype": "VBox",
"options": { "cheight": 35, "width": "100%" },
"subwidgets": [
{
"widgettype": "Tabular", "widgettype": "Tabular",
"id": "approved_grid", "id": "approved_grid",
"options": { "options": {
@ -91,45 +76,26 @@
"data_method": "GET", "data_method": "GET",
"row_options": { "row_options": {
"fields": [ "fields": [
{ { "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
"name": "approval_code", { "name": "title", "title": "标题", "uitype": "str", "cwidth": 20 },
"title": "审批编号", { "name": "applicant", "title": "申请人", "uitype": "str", "cwidth": 10 },
"uitype": "str", { "name": "apply_date", "title": "申请日期", "uitype": "str", "cwidth": 12 },
"cwidth": 12 { "name": "status", "title": "状态", "uitype": "str", "cwidth": 8 }
},
{
"name": "title",
"title": "标题",
"uitype": "str",
"cwidth": 20
},
{
"name": "applicant",
"title": "申请人",
"uitype": "str",
"cwidth": 10
},
{
"name": "apply_date",
"title": "申请日期",
"uitype": "str",
"cwidth": 12
},
{
"name": "status",
"title": "状态",
"uitype": "str",
"cwidth": 8
}
] ]
} }
} }
} }
]
}
}, },
{ {
"name": "rejected", "name": "rejected",
"label": "已拒绝", "label": "已拒绝",
"content": { "content": {
"widgettype": "VBox",
"options": { "cheight": 35, "width": "100%" },
"subwidgets": [
{
"widgettype": "Tabular", "widgettype": "Tabular",
"id": "rejected_grid", "id": "rejected_grid",
"options": { "options": {
@ -137,40 +103,17 @@
"data_method": "GET", "data_method": "GET",
"row_options": { "row_options": {
"fields": [ "fields": [
{ { "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
"name": "approval_code", { "name": "title", "title": "标题", "uitype": "str", "cwidth": 20 },
"title": "审批编号", { "name": "applicant", "title": "申请人", "uitype": "str", "cwidth": 10 },
"uitype": "str", { "name": "apply_date", "title": "申请日期", "uitype": "str", "cwidth": 12 },
"cwidth": 12 { "name": "status", "title": "状态", "uitype": "str", "cwidth": 8 }
},
{
"name": "title",
"title": "标题",
"uitype": "str",
"cwidth": 20
},
{
"name": "applicant",
"title": "申请人",
"uitype": "str",
"cwidth": 10
},
{
"name": "apply_date",
"title": "申请日期",
"uitype": "str",
"cwidth": 12
},
{
"name": "status",
"title": "状态",
"uitype": "str",
"cwidth": 8
}
] ]
} }
} }
} }
]
}
} }
] ]
} }