dagflow/wwwroot/new_definition.ui
2026-03-15 19:49:28 +08:00

59 lines
957 B
XML

{% set definitions = get_org_flow_definition(request) %}
{% if definitions %}
{
"widgettype": "VScrollPanel",
"options": {
"width": "100%",
"height": "100%",
},
"subwidgets": [
{% for d in definitions %}
{
"widgettype": "Text",
"options": {
"css": "clickable",
"i18n": true,
"otext": "{{d.title}}",
"tip": "{{d.description}}",
"wrap": true,
"valign": "left"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "root.ai_x_area",
"options": {
"url": "{{entire_url('new_instance.ui')}}",
"params": {
"id": "{{d.id}}"
}
}
}
]
}
{% if not loop.last %},{% endif %}
{% endfor %}
]
}
{% else %}
{
"widgettype": "VBox",
"options": {
"css": "card",
"cwidth": 15,
"height": 10
},
"subwidgets": [
{
"widget": "text",
"options": {
"i18n": true,
"otext": "没有流程"
}
}
]
}
{% endif %}