提交 a651bd9f 编写于 作者: Cano1997's avatar Cano1997

update:表格代码表多语言

上级 886aa82f
......@@ -1288,7 +1288,7 @@ ${gridColumn.getName()}
*/
public getCodelistValue(items: any[], value: any, codelist: any,){
if(!value && value !== 0 && value !== false){
return this.$t('codelist.'+codelist.srfkey+'.empty');
return codelist.emptytextLanRes ? this.$t(codelist.emptytextLanRes, codelist.emptytext) : codelist.emptytext;
}
if (items) {
let result:any = [];
......
......@@ -1047,7 +1047,7 @@ import { FormItemModel } from '@/model/form-detail';
*/
public getCodelistValue(items: any[], value: any, codelist: any,){
if(!value){
return this.$t('codelist.'+codelist.srfkey+'.empty');
return codelist.emptytextLanRes ? this.$t(codelist.emptytextLanRes, codelist.emptytext) : codelist.emptytext;
}
if (items) {
let result:any = [];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册