代码生成,online自定义按钮无排序报错

master
JEECG 2025-08-18 23:02:53 +08:00
parent b2da45d803
commit fb9f367517
19 changed files with 50 additions and 50 deletions

View File

@ -33,7 +33,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -303,7 +303,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -339,7 +339,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -378,7 +378,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -107,7 +107,7 @@
}; };
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -110,7 +110,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -368,7 +368,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -404,7 +404,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -484,7 +484,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -77,7 +77,7 @@
visible.value = false; visible.value = false;
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -38,7 +38,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -447,7 +447,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -483,7 +483,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -544,7 +544,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -157,7 +157,7 @@
}; };
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -120,7 +120,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -518,7 +518,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -559,7 +559,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -597,7 +597,7 @@
} }
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -33,7 +33,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -349,7 +349,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -384,7 +384,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -443,7 +443,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -106,7 +106,7 @@
} }
}; };
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -114,7 +114,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="ant-design:${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -389,7 +389,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
}, },
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -426,7 +426,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -464,7 +464,7 @@
} }
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -79,7 +79,7 @@
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -46,7 +46,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -356,7 +356,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -392,7 +392,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -451,7 +451,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -252,7 +252,7 @@
</#list> </#list>
}; };
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -32,7 +32,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -330,7 +330,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -366,7 +366,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -425,7 +425,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -251,7 +251,7 @@
</#list> </#list>
}; };
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -113,7 +113,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -364,7 +364,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -401,7 +401,7 @@
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -441,7 +441,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -59,7 +59,7 @@
closeModal(); closeModal();
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');
@ -75,7 +75,7 @@
handleSubmit, handleSubmit,
submitSuccess, submitSuccess,
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
handle${btn.buttonCode?cap_first}, handle${btn.buttonCode?cap_first},
</#if> </#if>

View File

@ -32,7 +32,7 @@
<a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" v-auth="'${entityPackage}:${tableName}:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" v-auth="'${entityPackage}:${tableName}:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'button'> <#if btn.buttonStyle == 'button'>
<a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button> <a-button type="primary" @click="handle${btn.buttonCode?cap_first}" <#if btn.buttonIcon??> preIcon="${btn.buttonIcon}" </#if>>${btn.buttonName}</a-button>
</#if> </#if>
@ -329,7 +329,7 @@
ifShow: !!record.bpmStatus && record.bpmStatus !== '1', ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -365,7 +365,7 @@
auth: '${entityPackage}:${tableName}:delete' auth: '${entityPackage}:${tableName}:delete'
} }
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle == 'link'> <#if btn.buttonStyle == 'link'>
,{ ,{
label: '${btn.buttonName}', label: '${btn.buttonName}',
@ -424,7 +424,7 @@
</#if> </#if>
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='button'> <#if btn.buttonStyle=='button'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');

View File

@ -286,7 +286,7 @@
</#list> </#list>
}; };
<#if buttonList?size gt 0> <#if buttonList?size gt 0>
<#list buttonList?sort_by('orderNum') as btn> <#list buttonList?filter(it -> it.orderNum?? && it.orderNum != null)?sort_by("orderNum") as btn>
<#if btn.buttonStyle=='form'> <#if btn.buttonStyle=='form'>
function handle${btn.buttonCode?cap_first}(){ function handle${btn.buttonCode?cap_first}(){
createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!'); createMessage.info('点击了${btn.buttonName}按钮,对应的业务逻辑需自行实现!');