提交 228305c5 编写于 作者: RedPig97's avatar RedPig97

update:搜索表单值规则国际化

上级 8f912dd3
......@@ -145,8 +145,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
<#list ctrl.getAllPSDEFormDetails() as formdetail>
<#if formdetail.getDetailType?? && formdetail.getDetailType() == 'FORMITEM'>
${formdetail.getName()}: [
{ type: '<#assign datatype=srfjavatype(formdetail.getStdDataType())><#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>number<#else>string</#if>', message: '${formdetail.getCaption()} 值必须为<#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>数值<#else>字符串</#if>类型', trigger: 'change' },
{ type: '<#assign datatype=srfjavatype(formdetail.getStdDataType())><#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>number<#else>string</#if>', message: '${formdetail.getCaption()} 值必须为<#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>数值<#else>字符串</#if>类型', trigger: 'blur' },
{ type: '<#assign datatype=srfjavatype(formdetail.getStdDataType())><#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>number<#else>string</#if>', message: '`<#if formdetail.getCapPSLanguageRes()??><#noparse>${</#noparse>this.$t('${formdetail.getCapPSLanguageRes().getLanResTag()}', '${formdetail.getCaption()}')<#noparse>}</#noparse><#else>${formdetail.getCaption()}</#if>` this.$t('app.commonWords.valueMustBe')<#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>this.$t('app.commonWords.number')<#else>this.$t('app.commonWords.string')</#if>this.$t('app.commonWords.kind')', trigger: 'change' },
{ type: '<#assign datatype=srfjavatype(formdetail.getStdDataType())><#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>number<#else>string</#if>', message: '`<#if formdetail.getCapPSLanguageRes()??><#noparse>${</#noparse>this.$t('${formdetail.getCapPSLanguageRes().getLanResTag()}', '${formdetail.getCaption()}')<#noparse>}</#noparse><#else>${formdetail.getCaption()}</#if>` this.$t('app.commonWords.valueMustBe')<#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>this.$t('app.commonWords.number')<#else>this.$t('app.commonWords.string')</#if>this.$t('app.commonWords.kind')', trigger: 'blur' },
{ required: this.detailsModel.${formdetail.getName()}.required, type: '<#assign datatype=srfjavatype(formdetail.getStdDataType())><#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>number<#else>string</#if>', message: `<#if formdetail.getCapPSLanguageRes()??><#noparse>${</#noparse>this.$t('${formdetail.getCapPSLanguageRes().getLanResTag()}', '${formdetail.getCaption()}')<#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: this.detailsModel.${formdetail.getName()}.required, type: '<#assign datatype=srfjavatype(formdetail.getStdDataType())><#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>number<#else>string</#if>', message: `<#if formdetail.getCapPSLanguageRes()??><#noparse>${</#noparse>this.$t('${formdetail.getCapPSLanguageRes().getLanResTag()}', '${formdetail.getCaption()}')<#noparse>}</#noparse><#noparse>${</#noparse>this.$t('app.commonWords.valueNotEmpty')<#noparse>}</#noparse><#else><#noparse>${</#noparse>this.$t('app.commonWords.valueNotEmpty')<#noparse>}</#noparse></#if>`, trigger: 'blur' },
],
......
......@@ -31,6 +31,10 @@ function getLocaleResource(){
'app.commonWords.other': 'other',
'app.commonWords.isExist': 'is exist',
'app.commonWords.valueNotEmpty': 'The value cannot be null',
'app.commonWords.valueMustBe': "The value must be",
'app.commonWords.number': "number",
'app.commonWords.string': "string",
'app.commonWords.kind': "type",
'app.local.new': 'New',
'app.local.add': 'Add',
'app.grid.exportexcel.error': 'Export Failed',
......
......@@ -31,6 +31,10 @@ function getLocaleResource(){
'app.commonWords.other': "其他",
'app.commonWords.isExist': '已经存在',
'app.commonWords.valueNotEmpty': "值不能为空",
'app.commonWords.valueMustBe': "值必须为",
'app.commonWords.number': "数值",
'app.commonWords.string': "字符串",
'app.commonWords.kind': "类型",
'app.local.new': "新建",
'app.local.add': "增加",
'app.grid.exportexcel.error': '导出失败',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册