Browse Source

修改:model_list_card.ftl调整

4.0
FLYPHT 2 years ago
parent
commit
ef0ff750ad
5 changed files with 23 additions and 32 deletions
  1. +2
    -4
      smtweb-framework/bpm/src/main/resources/static/template/default/incModel/inc_list_query.ftl
  2. +5
    -9
      smtweb-framework/bpm/src/main/resources/static/template/default/incModel/inc_list_table.ftl
  3. +4
    -6
      smtweb-framework/bpm/src/main/resources/static/template/default/incModel/inc_query_sfilters.ftl
  4. +1
    -1
      smtweb-framework/bpm/src/main/resources/static/template/default/index.yaml
  5. +11
    -12
      smtweb-framework/bpm/src/main/resources/static/template/default/model_list_card.ftl

+ 2
- 4
smtweb-framework/bpm/src/main/resources/static/template/default/incModel/inc_list_query.ftl View File

@@ -51,7 +51,6 @@
"props": { "props": {
"label": "重置", "label": "重置",
"leftIcon": "clear", "leftIcon": "clear",
"type": "",
"action": "button:reset", "action": "button:reset",
"dataset": "${param.queryDs}", "dataset": "${param.queryDs}",
"link": false, "link": false,
@@ -65,8 +64,7 @@
"label": "查询", "label": "查询",
"leftIcon": "search", "leftIcon": "search",
"type": "primary", "type": "primary",
"action": "button:search",
"dataset": "${param.queryDs}"
"action": "button:loadList"
} }
} }
<#if (group.sfilters?size>0)> <#if (group.sfilters?size>0)>
@@ -79,7 +77,7 @@
"action": "button:link", "action": "button:link",
"link": true, "link": true,
"linkType": "drawer", "linkType": "drawer",
"fxLink": "dialog:qrueydialog"
"fxLink": "dialog:queryDialog"
} }
} }
</#if> </#if>


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

@@ -66,13 +66,12 @@
"label": "编辑", "label": "编辑",
"type": "primary", "type": "primary",
"leftIcon": "edit", "leftIcon": "edit",
"action": "button:edit",
"action": "button:editCard",
"link": false, "link": false,
"text": true, "text": true,
"linkType": "dialog", "linkType": "dialog",
"fxLink": "dialog:editDialog",
"fxLink_text": "${param.editTitle}",
"dataset": "${param.editDs}"
"fxLink": "dialog:cardDialog",
"fxLink_text": "${param.cardTitle}"
} }
}, },
</#if> </#if>
@@ -83,13 +82,10 @@
"label": "删除", "label": "删除",
"type": "danger", "type": "danger",
"leftIcon": "delete-themes", "leftIcon": "delete-themes",
"action": "button:remove",
"preAction": "",
"action": "button:delCard",
"link": false, "link": false,
"text": true, "text": true,
"confirm": "",
"nextAction": "button:search",
"dataset": "${param.queryDs}"
"confirm": ""
} }
} }
] ]


+ 4
- 6
smtweb-framework/bpm/src/main/resources/static/template/default/incModel/inc_query_sfilters.ftl View File

@@ -5,7 +5,7 @@
"type":"fx-dialog", "type":"fx-dialog",
"props": { "props": {
"title": "查询条件", "title": "查询条件",
"key": "qrueydialog",
"key": "queryDialog",
"destroyOnClose": true, "destroyOnClose": true,
"closeOnClickModal": true, "closeOnClickModal": true,
"width": "20%", "width": "20%",
@@ -81,8 +81,7 @@
"type": "fx-button", "type": "fx-button",
"props": { "props": {
"label": "重置", "label": "重置",
"leftIcon": "clear",
"action": "button:return"
"leftIcon": "clear"
}, },
"id": "id${newId()}" "id": "id${newId()}"
}, },
@@ -92,8 +91,7 @@
"label": "查询", "label": "查询",
"leftIcon": "save", "leftIcon": "save",
"type": "success", "type": "success",
"action": "button:search",
"dataset": "${param.queryDs}"
"action": "button:loadList"
}, },
"id": "id${newId()}" "id": "id${newId()}"
} }
@@ -103,4 +101,4 @@
] ]
}] }]
} }
}
}

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

@@ -37,7 +37,7 @@ model:
# 变量 # 变量
param: param:
- -
name: 'editTitle'
name: 'cardTitle'
type: 'input' type: 'input'
label: '卡片标题' label: '卡片标题'
desc: '请选择弹窗卡片标题' desc: '请选择弹窗卡片标题'


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

@@ -66,15 +66,14 @@
"label": "新增", "label": "新增",
"leftIcon": "plus", "leftIcon": "plus",
"type": "primary", "type": "primary",
"action": "button:add",
"action": "button:addCard",
"link": false, "link": false,

"linkType": "dialog", "linkType": "dialog",
"fxLink": "dialog:editDialog",
<#if (param.editTitle == "")>
"title": "卡片demo",
"fxLink": "dialog:cardDialog",
<#if (param.cardTitle == "")>
"title": "卡片"
<#else> <#else>
"fxLink_text": "${param.editTitle}",
"fxLink_text": "${param.cardTitle}"
</#if> </#if>
}, },
"id": "id${newId()}" "id": "id${newId()}"
@@ -107,12 +106,12 @@
"id": "id${newId()}", "id": "id${newId()}",
"type": "fx-dialog", "type": "fx-dialog",
"props": { "props": {
<#if (param.editTitle == "")>
"title": "卡片demo",
<#if (param.cardTitle == "")>
"title": "卡片",
<#else> <#else>
"title": "${param.editTitle}",
"title": "${param.cardTitle}",
</#if> </#if>
"key": "editDialog",
"key": "cardDialog",
"fontSize": 16, "fontSize": 16,
"color": "#313131", "color": "#313131",
"fontWeight": "bold", "fontWeight": "bold",
@@ -267,7 +266,7 @@
"label": "保存", "label": "保存",
"leftIcon": "save", "leftIcon": "save",
"type": "success", "type": "success",
"action": "button:save",
"action": "button:saveCard"
}, },
"id": "id${newId()}" "id": "id${newId()}"
}, },
@@ -276,7 +275,7 @@
"props": { "props": {
"label": "关闭", "label": "关闭",
"leftIcon": "close", "leftIcon": "close",
"action": "button:closeDialog",
"action": "button:closeDialog"
}, },
"id": "id${newId()}" "id": "id${newId()}"
} }


Loading…
Cancel
Save