{ "id": "workflow_approval", "widgettype": "VBox", "options": { "width": "100%", "height": "100%", "style": { "padding": "16px" } }, "subwidgets": [ { "widgettype": "HBox", "options": { "style": { "marginBottom": "16px", "gap": "8px" } }, "subwidgets": [ { "widgettype": "Text", "options": { "style": { "fontSize": "20px", "fontWeight": "bold" }, "text": "审批管理" } }, { "widgettype": "Filler", "options": {} } ] }, { "widgettype": "TabPanel", "id": "approval_tabs", "options": { "tab_pos": "top", "items": [ { "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 } ] } } } }, { "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 } ] } } } }, { "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 } ] } } } } ] } } ] }