templates.index.vue.ftl Maven / Gradle / Ivy
<#list table.fields as field>
<#if field.propertyType=='LocalDate' || field.propertyType=='Date'>
<#elseif field.propertyType=='LocalDateTime' || field.propertyType=='DateTime'>
<#else>
#if>
#list>
查询
显示全部
新增
修改
删除
导入Excel
导出Excel
<#list table.fields as field>
#list>
查看详情
修改
删除
<#if templateHtml??>
${templateHtml}
<#else>
<#list table.fields as field>
<#if field.propertyName=='orderIndex'>
<#elseif field.propertyName!='createTime' && field.propertyName!='updateTime'>
<#--判断是否为null的规则-->
<#assign rules1=field.metaInfo.nullable?string("","{required: true, message: '" + field.comment + "不能为空'}")>
<#if field.propertyType=='String'>
<#if field.metaInfo.length gte 255>
<#else>
#if>
<#elseif field.propertyType=='Integer' || field.propertyType=='Long'
|| field.propertyType=='BigDecimal'|| field.propertyType=='Double'>
<#--数字的可能有2种规则,所以单独判断-->
<#assign rules2=field.metaInfo.nullable?string("{type: 'number', message: '必须为数字'}","{required: true, message: '" + field.comment + "不能为空'},{type: 'number', message: '必须为数字'}")>
<#elseif field.propertyType=='LocalDate' || field.propertyType=='Date'>
<#elseif field.propertyType=='LocalDateTime' || field.propertyType=='DateTime'>
<#else>
#if>
#if>
#list>
#if>
<#if templateCss??>
#if>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy