From 2274898a673791530c6c6b6a8c5b3c1061cfad88 Mon Sep 17 00:00:00 2001 From: xiaxl Date: Thu, 1 Sep 2022 09:47:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E9=83=A8=E5=88=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/template/default/model_card_flow.ftl | 157 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 4 deletions(-) diff --git a/smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl b/smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl index 5c45054..2135d2e 100644 --- a/smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl +++ b/smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl @@ -141,7 +141,7 @@ }, "children": [ { - <#list layout.card as group> + <#list layout.flow as group> "id": "${newId()}", "type": "fx-form-panel", "shape": "panel", @@ -242,10 +242,159 @@ "id": "${newId()}", "type": "fx-form-panel", "shape": "panel", - "props": { - "name": "d2" + "props": { + "size": "10", + "backgroundColor": "transparent" + }, + "children": [] + }, + { + "id": "${newId()}", + "type": "fx-split-panel", + "shape": "panel", + "props": { + "size": "48", + "horizontal": true + }, + "children": [ + { + "id": "${newId()}", + "type": "fx-form-panel", + "shape": "panel", + "props": { + "size": "", + "label": "", + "colNum": 2, + "alignY": "center", + "paddingLeft": 32, + "paddingRight": 32, + "shadow": "", + "backgroundImage": "bgImg-region-title" + }, + "children": [ + { + "id": "id${newId()}", + "type": "fx-title", + "props": { + "label": "子表列表配置", + "fontSize": 16, + "color": "#01070D", + "fontWeight": "bold", + "showPrefix": false, + "prefixWidth": 5, + "prefixHeight": 24, + "prefixColor": "#1E90FF" + } + } + ] + }, + { + "id": "id${newId()}", + "type": "fx-form-panel", + "shape": "panel", + "props": { + "alignX": "center", + "size": "150", + "alignY": "center", + "backgroundImage": "bgImg-region-title" + }, + "children": [ + { + "id": "id${newId()}", + "type": "fx-button", + "props": { + "label": "新增", + "type": "primary", + "action": "button:addRow", + "size": "default", + "linkType": "dialog", + "leftIcon": "plus", + "fxLink": "dialog:cardSubDialog", + "fxLink_text": "子表编辑卡片", + "nextAction": "", + "preAction": "", + "dataset": "${layout.listSub[0].dataset}" + }, + "events": {} + } + ] + } + ] }, - "children": [] + { + "id": "${newId()}", + "type": "fx-form-panel", + "shape": "panel", + "props": { + "size": "400", + "label": "列表", + "colNum": 0, + "paddingLeft": 20, + "paddingRight": 20, + "shadow": "", + "paddingTop": 0 + }, + "children": [ + { + "id": "id${newId()}", + "type": "fx-table", + "props": { + "label": "表格", + "border": true, + "stripe": true, + "showHeader": true, + "fit": true, + "dataset": "${group.dataset}", + "actionWidth": 150 + }, + "slots": { + "default": [ + <#list layout.comment[0].fields as field> + { + "id": "id${newId()}", + "type": "fx-table-column", + "props": { + "field": "${field.id}", + "label": "${field.label}" + } + } + <#if field_has_next>, + + ], + "button": [ + { + "id": "id${newId()}", + "type": "fx-button", + "props": { + "label": "编辑", + "type": "text", + "leftIcon": "edit", + "action": "button:edit", + "dataset": "${layout.listSub[0].dataset}", + "link": true, + "linkType": "", + "nextAction": "", + "fxLink": "" + } + }, + { + "id": "id${newId()}", + "type": "fx-button", + "props": { + "label": "删除", + "type": "text", + "leftIcon": "delete-themes", + "action": "button:remove", + "preAction": "", + "link": true, + "confirm": "" + } + } + ] + }, + "events": {} + } + ] } ] },