This commit is contained in:
yumoqing 2026-05-06 07:59:57 +08:00
parent f860d86c00
commit b045758ebc

View File

@ -36,7 +36,7 @@
"widgettype": "Text", "widgettype": "Text",
"id": "lbl_username", "id": "lbl_username",
"options": { "options": {
"text": "用户: admin", "text": "用户: {{get_username()}}",
"color": "white", "color": "white",
"marginRight": "16px" "marginRight": "16px"
} }
@ -46,7 +46,6 @@
"id": "btn_logout", "id": "btn_logout",
"options": { "options": {
"label": "退出登录", "label": "退出登录",
"variant": "text",
"color": "white" "color": "white"
} }
} }
@ -111,30 +110,19 @@
"submenu": "{{entire_url('/workflow_approval/menu.ui')}}" "submenu": "{{entire_url('/workflow_approval/menu.ui')}}"
} }
], ],
"target": "app.main_work",
"width": "100%" "width": "100%"
} }
} }
] ]
}, },
{ {
"widgettype": "VBox", "widgettype": "VScrollPanel",
"id": "main_work",
"options": { "options": {
"flex": 1, "height": "100%",
"overflow": "hidden",
"bgcolor": "#fafafa" "bgcolor": "#fafafa"
}, }
"subwidgets": [
{
"widgettype": "Iframe",
"id": "content_frame",
"options": {
"url": "{{entire_url('/unified_dashboard')}}",
"width": "100%",
"height": "100%",
"border": "none"
}
}
]
} }
] ]
} }
@ -144,9 +132,9 @@
"wid": "btn_logout", "wid": "btn_logout",
"event": "click", "event": "click",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"url": "{{entire_url('api/logout.dspy')}}", "target": "app",
"target": "body/app",
"options": { "options": {
"url": "{{entire_url('api/logout.dspy')}}",
"method": "POST" "method": "POST"
} }
} }