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,142 +38,85 @@
"name": "pending",
"label": "待审批",
"content": {
"widgettype": "Tabular",
"id": "pending_grid",
"options": {
"data_url": "{{entire_url('api/approvals_list.dspy?status=pending')}}",
"data_method": "GET",
"row_options": {
"fields": [
{
"name": "approval_code",
"title": "审批编号",
"uitype": "str",
"cwidth": 12
},
{
"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
"widgettype": "VBox",
"options": { "cheight": 35, "width": "100%" },
"subwidgets": [
{
"widgettype": "Tabular",
"id": "pending_grid",
"options": {
"data_url": "{{entire_url('api/approvals_list.dspy?status=pending')}}",
"data_method": "GET",
"row_options": {
"fields": [
{ "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
{ "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",
"label": "已审批",
"content": {
"widgettype": "Tabular",
"id": "approved_grid",
"options": {
"data_url": "{{entire_url('api/approvals_list.dspy?status=approved')}}",
"data_method": "GET",
"row_options": {
"fields": [
{
"name": "approval_code",
"title": "审批编号",
"uitype": "str",
"cwidth": 12
},
{
"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
"widgettype": "VBox",
"options": { "cheight": 35, "width": "100%" },
"subwidgets": [
{
"widgettype": "Tabular",
"id": "approved_grid",
"options": {
"data_url": "{{entire_url('api/approvals_list.dspy?status=approved')}}",
"data_method": "GET",
"row_options": {
"fields": [
{ "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
{ "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",
"label": "已拒绝",
"content": {
"widgettype": "Tabular",
"id": "rejected_grid",
"options": {
"data_url": "{{entire_url('api/approvals_list.dspy?status=rejected')}}",
"data_method": "GET",
"row_options": {
"fields": [
{
"name": "approval_code",
"title": "审批编号",
"uitype": "str",
"cwidth": 12
},
{
"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
"widgettype": "VBox",
"options": { "cheight": 35, "width": "100%" },
"subwidgets": [
{
"widgettype": "Tabular",
"id": "rejected_grid",
"options": {
"data_url": "{{entire_url('api/approvals_list.dspy?status=rejected')}}",
"data_method": "GET",
"row_options": {
"fields": [
{ "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
{ "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 }
]
}
]
}
}
}
]
}
}
]
}
}
]
}
}