diff --git a/wwwroot/base.ui b/wwwroot/base.ui index 03156bd..678a8fb 100644 --- a/wwwroot/base.ui +++ b/wwwroot/base.ui @@ -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 } + ] } - ] + } } - } + ] } } ] } } ] -} \ No newline at end of file +}