提交 e4fe61bc 编写于 作者: Shine-zwj's avatar Shine-zwj

属性值长度校验--还原

上级 caabd082
......@@ -339,10 +339,6 @@ import { Environment } from '@/environments/environment';
}, message: '${formdetail.getCaption()} 必须填写', trigger: 'change' ,required:true},
</#if>
</#if>
<#if formdetail.getPSAppDEField?? && formdetail.getPSAppDEField()?? && formdetail.getPSAppDEField().getPSDEField?? && formdetail.getPSAppDEField().getPSDEField()?? && formdetail.getPSAppDEField().getPSDEField().getDataType() == 'TEXT' && formdetail.getPSAppDEField().getPSDEField().getLength() gt 0>
<#assign includeMinValue = formdetail.getPSAppDEField().getPSDEField().getLength()>
{ validator: (rule:any, value:any, callback:any) => { if(value.length > ${includeMinValue} ){return false;}else{return true;}}, message: '${formdetail.getCaption()} 长度不能超过${includeMinValue}', trigger: 'change'},
</#if>
<#if ctrl.getPSDEFormItemVRs()??>
<#list ctrl.getPSDEFormItemVRs() as fideValueRule>
<#if fideValueRule.getPSDEFormItemName()?lower_case == formdetail.getName()?lower_case >
......
......@@ -714,10 +714,6 @@ ${gridColumn.getName()}
${edititem.getName()}: [
{ required: <#if edititem.isAllowEmpty()>false<#else>true</#if>, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: `<#if langbase??><#noparse>${</#noparse>this.$t('${langbase}.columns.${edititem.getName()?lower_case}')<#noparse>}</#noparse><#noparse>${</#noparse>this.$t('app.commonWords.valueNotEmpty')<#noparse>}</#noparse><#else><#noparse>${</#noparse>this.$t('app.commonWords.valueNotEmpty')<#noparse>}</#noparse></#if>`, trigger: 'change' },
{ required: <#if edititem.isAllowEmpty()>false<#else>true</#if>, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: `<#if langbase??><#noparse>${</#noparse>this.$t('${langbase}.columns.${edititem.getName()?lower_case}')<#noparse>}</#noparse><#noparse>${</#noparse>this.$t('app.commonWords.valueNotEmpty')<#noparse>}</#noparse><#else><#noparse>${</#noparse>this.$t('app.commonWords.valueNotEmpty')<#noparse>}</#noparse></#if>`, trigger: 'blur' },
<#if edititem.getPSAppDEField?? && edititem.getPSAppDEField()?? && edititem.getPSAppDEField().getPSDEField?? && edititem.getPSAppDEField().getPSDEField()?? && edititem.getPSAppDEField().getPSDEField().getDataType() == 'TEXT' && edititem.getPSAppDEField().getPSDEField().getLength() gt 0>
<#assign includeMinValue = edititem.getPSAppDEField().getPSDEField().getLength()>
{ validator: (rule:any, value:any, callback:any) => { if(value.length > ${includeMinValue} ){return false;}else{return true;}}, message: '${edititem.getCaption()} 长度不能超过${includeMinValue}', trigger: 'change'},
</#if>
<#if ctrl.getPSDEGridEditItemVRs?? && ctrl.getPSDEGridEditItemVRs()??>
<#list ctrl.getPSDEGridEditItemVRs() as fideValueRule>
<#if fideValueRule.getPSDEGridEditItemName() == edititem.getName()>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册