From e890396bc209db0f512d9ea906129b745e4bee2d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 16 Mar 2026 10:56:45 +0800 Subject: [PATCH] bugfix --- wwwroot/menu.ui | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wwwroot/menu.ui b/wwwroot/menu.ui index e91ad6c..1112239 100644 --- a/wwwroot/menu.ui +++ b/wwwroot/menu.ui @@ -12,9 +12,9 @@ "icon": "{{entire_url('/bricks/imgs/workflow.svg')}}", "label": "新建流程", "url": "{{entire_url('new_definition')}}" - }, + } {% for d in definitions %} - { + ,{ "name": "{{d.id}}", "icon": "{{entire_url('/bricks/imgs/wf-instance.svg')}}", "label": "{{d.name}}", @@ -25,10 +25,10 @@ "icon": "{{entire_url('/bricks/imgs/wf-instance.svg')}}", "label": "新建实例", "url": "{{entire_url('new_instance.ui')}}" - }, + } {% set instances = list_org_instances(request, flow_def_id=d.id) %} {% for inst in instances %} - { + ,{ "name": "{{inst.id}}", "icon": "{{entire_url('/bricks/imgs/wf-instance.svg')}}", "label": "{{inst.name}}:{{inst.id}}", @@ -38,22 +38,22 @@ "icon": "{{entire_url('/bricks/imgs/wf-instance.svg')}}", "label": "实例明细:{{inst.id}}", “url": "{{entire_url('show_instance.ui')}}" - }, + } {% set works = get_my_flow_works(request) %} {% for work in works %} - { + ,{ "name": "{{inst.id}}_show", "icon": "{{entire_url('/bricks/imgs/wf-instance.svg')}}", "label": "我的工作:{{inst.id}}", "items": [ ] - }{% if not loop.last %},{% endif %} + } {% endfor %} ] - }{% if not loop.last %},{% endif %} + } {% endfor %} ] - }{% if not loop.last %},{% endif %} + } {% endfor %} ] }