Browse Source

修改:修改list_card.ftl模板

4.0
FLYPHT 2 years ago
parent
commit
f92def87d8
3 changed files with 6 additions and 11 deletions
  1. +1
    -1
      smtweb-framework/bpm/src/main/resources/static/template/default/incModel/inc_list_table.ftl
  2. +3
    -3
      smtweb-framework/bpm/src/main/resources/static/template/default/index.yaml
  3. +2
    -7
      smtweb-framework/bpm/src/main/resources/static/template/default/model_list_card.ftl

+ 1
- 1
smtweb-framework/bpm/src/main/resources/static/template/default/incModel/inc_list_table.ftl View File

@@ -21,7 +21,7 @@
"stripe": true, "stripe": true,
"showHeader": true, "showHeader": true,
"fit": true, "fit": true,
"dataset": "${param.queryDs}",
"dataset": "${group.dataset}",
"actionWidth": 120 "actionWidth": 120
}, },
"slots": { "slots": {


+ 3
- 3
smtweb-framework/bpm/src/main/resources/static/template/default/index.yaml View File

@@ -26,11 +26,11 @@ model:
# 布局 # 布局
layout: layout:
- -
name: 'c1'
name: 'list'
label: '简单列表' label: '简单列表'
type: 'list' type: 'list'
hasGroup: false hasGroup: false
- name: 'c2'
- name: 'card'
label: '编辑卡片' label: '编辑卡片'
type: 'card' type: 'card'
hasGroup: false hasGroup: false
@@ -229,4 +229,4 @@ model:
name: 'mainDs' name: 'mainDs'
type: 'ds' type: 'ds'
label: '主卡片数据集' label: '主卡片数据集'
desc: '请选择主要卡片数据集'
desc: '请选择主要卡片数据集'

+ 2
- 7
smtweb-framework/bpm/src/main/resources/static/template/default/model_list_card.ftl View File

@@ -1,5 +1,5 @@
{ {
<#list layout.c1 as group>
<#list layout.list as group>
"form": "form":
[ [
{ {
@@ -76,8 +76,6 @@
<#else> <#else>
"fxLink_text": "${param.editTitle}", "fxLink_text": "${param.editTitle}",
</#if> </#if>

"dataset": "${param.editDs}"
}, },
"id": "id${newId()}" "id": "id${newId()}"
} }
@@ -103,7 +101,7 @@
<#if (group.sfilters?size>0)> <#if (group.sfilters?size>0)>
<#include "incModel/inc_query_sfilters.ftl"/> <#include "incModel/inc_query_sfilters.ftl"/>
</#if> </#if>
<#list layout.c2 as dialog>
<#list layout.card as dialog>
,{ ,{
"page": { "page": {
"id": "id${newId()}", "id": "id${newId()}",
@@ -270,7 +268,6 @@
"leftIcon": "save", "leftIcon": "save",
"type": "success", "type": "success",
"action": "button:save", "action": "button:save",
"dataset": "${param.editDs}"
}, },
"id": "id${newId()}" "id": "id${newId()}"
}, },
@@ -280,8 +277,6 @@
"label": "关闭", "label": "关闭",
"leftIcon": "close", "leftIcon": "close",
"action": "button:closeDialog", "action": "button:closeDialog",
"dataset": "${param.queryDs}",
"nextAction": "button:search"
}, },
"id": "id${newId()}" "id": "id${newId()}"
} }


Loading…
Cancel
Save