|
@@ -141,7 +141,7 @@ |
|
|
}, |
|
|
}, |
|
|
"children": [ |
|
|
"children": [ |
|
|
{ |
|
|
{ |
|
|
<#list layout.card as group> |
|
|
|
|
|
|
|
|
<#list layout.flow as group> |
|
|
"id": "${newId()}", |
|
|
"id": "${newId()}", |
|
|
"type": "fx-form-panel", |
|
|
"type": "fx-form-panel", |
|
|
"shape": "panel", |
|
|
"shape": "panel", |
|
@@ -242,10 +242,159 @@ |
|
|
"id": "${newId()}", |
|
|
"id": "${newId()}", |
|
|
"type": "fx-form-panel", |
|
|
"type": "fx-form-panel", |
|
|
"shape": "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>,</#if> |
|
|
|
|
|
</#list> |
|
|
|
|
|
], |
|
|
|
|
|
"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": {} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|