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", "name": "pending",
"label": "待审批", "label": "待审批",
"content": { "content": {
"widgettype": "Tabular", "widgettype": "VBox",
"id": "pending_grid", "options": { "cheight": 35, "width": "100%" },
"options": { "subwidgets": [
"data_url": "{{entire_url('api/approvals_list.dspy?status=pending')}}", {
"data_method": "GET", "widgettype": "Tabular",
"row_options": { "id": "pending_grid",
"fields": [ "options": {
{ "data_url": "{{entire_url('api/approvals_list.dspy?status=pending')}}",
"name": "approval_code", "data_method": "GET",
"title": "审批编号", "row_options": {
"uitype": "str", "fields": [
"cwidth": 12 { "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
}, { "name": "title", "title": "标题", "uitype": "str", "cwidth": 20 },
{ { "name": "applicant", "title": "申请人", "uitype": "str", "cwidth": 10 },
"name": "title", { "name": "apply_date", "title": "申请日期", "uitype": "str", "cwidth": 12 },
"title": "标题", { "name": "status", "title": "状态", "uitype": "str", "cwidth": 8 }
"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": "Tabular", "widgettype": "VBox",
"id": "approved_grid", "options": { "cheight": 35, "width": "100%" },
"options": { "subwidgets": [
"data_url": "{{entire_url('api/approvals_list.dspy?status=approved')}}", {
"data_method": "GET", "widgettype": "Tabular",
"row_options": { "id": "approved_grid",
"fields": [ "options": {
{ "data_url": "{{entire_url('api/approvals_list.dspy?status=approved')}}",
"name": "approval_code", "data_method": "GET",
"title": "审批编号", "row_options": {
"uitype": "str", "fields": [
"cwidth": 12 { "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
}, { "name": "title", "title": "标题", "uitype": "str", "cwidth": 20 },
{ { "name": "applicant", "title": "申请人", "uitype": "str", "cwidth": 10 },
"name": "title", { "name": "apply_date", "title": "申请日期", "uitype": "str", "cwidth": 12 },
"title": "标题", { "name": "status", "title": "状态", "uitype": "str", "cwidth": 8 }
"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": "Tabular", "widgettype": "VBox",
"id": "rejected_grid", "options": { "cheight": 35, "width": "100%" },
"options": { "subwidgets": [
"data_url": "{{entire_url('api/approvals_list.dspy?status=rejected')}}", {
"data_method": "GET", "widgettype": "Tabular",
"row_options": { "id": "rejected_grid",
"fields": [ "options": {
{ "data_url": "{{entire_url('api/approvals_list.dspy?status=rejected')}}",
"name": "approval_code", "data_method": "GET",
"title": "审批编号", "row_options": {
"uitype": "str", "fields": [
"cwidth": 12 { "name": "approval_code", "title": "审批编号", "uitype": "str", "cwidth": 12 },
}, { "name": "title", "title": "标题", "uitype": "str", "cwidth": 20 },
{ { "name": "applicant", "title": "申请人", "uitype": "str", "cwidth": 10 },
"name": "title", { "name": "apply_date", "title": "申请日期", "uitype": "str", "cwidth": 12 },
"title": "标题", { "name": "status", "title": "状态", "uitype": "str", "cwidth": 8 }
"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
} }
] }
} }
} ]
} }
} }
] ]
} }
} }
] ]
} }