fix: wrap Tabular in VBox with cheight for proper scrolling
This commit is contained in:
parent
48294e95fb
commit
54e945b545
125
wwwroot/base.ui
125
wwwroot/base.ui
@ -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,41 +103,18 @@
|
|||||||
"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
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user