提交 bf7784e4 编写于 作者: LUCIFER-ZHU's avatar LUCIFER-ZHU

update: 更新

上级 e3bca050
...@@ -671,8 +671,8 @@ ${gridColumn.getName()} ...@@ -671,8 +671,8 @@ ${gridColumn.getName()}
return { return {
<#list ctrl.getPSDEGridEditItems() as edititem> <#list ctrl.getPSDEGridEditItems() as edititem>
${edititem.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 edititem.getCapPSLanguageRes()??><#noparse>${</#noparse>this.$t('${edititem.getCapPSLanguageRes().getLanResTag()}')<#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' }, { 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 edititem.getCapPSLanguageRes()??><#noparse>${</#noparse>this.$t('${edititem.getCapPSLanguageRes().getLanResTag()}')<#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 ctrl.getPSDEGridEditItemVRs?? && ctrl.getPSDEGridEditItemVRs()??> <#if ctrl.getPSDEGridEditItemVRs?? && ctrl.getPSDEGridEditItemVRs()??>
<#list ctrl.getPSDEGridEditItemVRs() as fideValueRule> <#list ctrl.getPSDEGridEditItemVRs() as fideValueRule>
<#if fideValueRule.getPSDEGridEditItemName() == edititem.getName()> <#if fideValueRule.getPSDEGridEditItemName() == edititem.getName()>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<#macro getItemLanguageCaption item> <#macro getItemLanguageCaption item>
<#if item.getCapPSLanguageRes?? && item.getCapPSLanguageRes()??> <#if item.getCapPSLanguageRes?? && item.getCapPSLanguageRes()??>
$t('${item.getCapPSLanguageRes()}', '${item.getCaption()}')<#t> $t('${item.getCapPSLanguageRes().getLanResTag()}', '${item.getCaption()}')<#t>
<#else> <#else>
'${item.getCaption()}'<#t> '${item.getCaption()}'<#t>
</#if> </#if>
...@@ -129,9 +129,7 @@ ${navParam.getKey()}:<#if navParam.isRawValue()?? && navParam.isRawValue() == tr ...@@ -129,9 +129,7 @@ ${navParam.getKey()}:<#if navParam.isRawValue()?? && navParam.isRawValue() == tr
<#-- BEGIN:获取空值语言资源 --> <#-- BEGIN:获取空值语言资源 -->
<#macro getEmptyTextLanguage obj emptyValue='暂无数据'> <#macro getEmptyTextLanguage obj emptyValue='暂无数据'>
<#if obj.getEmptyTextPSLanguageRes()??> <#if obj.getEmptyTextPSLanguageRes()??>
$t('${obj.getEmptyTextPSLanguageRes().getLanResTag()}')<#t> $t('${obj.getEmptyTextPSLanguageRes().getLanResTag()}')<#t>
<#elseif obj.getEmptyText()?? && obj.getEmptyText() != '未定义'>
'${obj.getEmptyText()}'<#t>
<#else> <#else>
${emptyValue}<#t> ${emptyValue}<#t>
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册