Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
15c1b55a
提交
15c1b55a
编写于
12月 13, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化国际化附加逻辑内容
上级
bcd78dea
变更
13
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
766 行增加
和
715 行删除
+766
-715
index.ts.ftl
APP/src/locale/index.ts.ftl
+2
-2
en-US-base.ts.ftl
APP/src/locale/lang/en-US-base.ts.ftl
+227
-223
en-US.ts.ftl
APP/src/locale/lang/en-US.ts.ftl
+7
-3
zh-CN-base.ts.ftl
APP/src/locale/lang/zh-CN-base.ts.ftl
+226
-222
zh-CN.ts.ftl
APP/src/locale/lang/zh-CN.ts.ftl
+7
-3
codelist_en_US.ts.ftl
APP/src/locale/lanres/codelist/codelist_en_US.ts.ftl
+6
-3
codelist_en_US_base.ts.ftl
APP/src/locale/lanres/codelist/codelist_en_US_base.ts.ftl
+24
-19
codelist_zh_CN.ts.ftl
APP/src/locale/lanres/codelist/codelist_zh_CN.ts.ftl
+7
-3
codelist_zh_CN_base.ts.ftl
APP/src/locale/lanres/codelist/codelist_zh_CN_base.ts.ftl
+24
-19
%DE_PKGPATH%_en_US.ts.ftl
...le/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_en_US.ts.ftl
+7
-3
%DE_PKGPATH%_en_US_base.ts.ftl
...nres/entities/%DE_PKGPATH%/%DE_PKGPATH%_en_US_base.ts.ftl
+116
-111
%DE_PKGPATH%_zh_CN.ts.ftl
...le/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_zh_CN.ts.ftl
+7
-3
%DE_PKGPATH%_zh_CN_base.ts.ftl
...nres/entities/%DE_PKGPATH%/%DE_PKGPATH%_zh_CN_base.ts.ftl
+106
-101
未找到文件。
APP/src/locale/index.ts.ftl
浏览文件 @
15c1b55a
...
@@ -13,7 +13,7 @@ import iviewZhCnLocale from 'view-design/dist/locale/zh-CN';
...
@@ -13,7 +13,7 @@ import iviewZhCnLocale from 'view-design/dist/locale/zh-CN';
import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN';
import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN';
const messages = {
const messages = {
'zh-CN': Object.assign(iviewZhCnLocale, elementZhLocale, zhCn),
'zh-CN': Object.assign(iviewZhCnLocale, elementZhLocale, zhCn
()
),
};
};
<#if app.getAllPSAppLans()??>
<#if app.getAllPSAppLans()??>
...
@@ -24,7 +24,7 @@ import iviewEnUsLocale from 'view-design/dist/locale/en-US';
...
@@ -24,7 +24,7 @@ import iviewEnUsLocale from 'view-design/dist/locale/en-US';
import elementEnLocale from 'element-ui/lib/locale/lang/en';
import elementEnLocale from 'element-ui/lib/locale/lang/en';
Object.assign(messages, {
Object.assign(messages, {
'en-US': Object.assign(iviewEnUsLocale, elementEnLocale, enUs),
'en-US': Object.assign(iviewEnUsLocale, elementEnLocale, enUs
()
),
});
});
</#if>
</#if>
</#list>
</#list>
...
...
APP/src/locale/lang/en-US-base.ts.ftl
浏览文件 @
15c1b55a
...
@@ -11,8 +11,9 @@ import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
...
@@ -11,8 +11,9 @@ import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
import commonLogic from '@/locale/logic/common/common-logic';
import commonLogic from '@/locale/logic/common/common-logic';
<#assign langrestype = 'EN'/>
<#assign langrestype = 'EN'/>
export default {
function getAppLocale(){
<#-- local langue english -->
const data:any = {
<#-- local langue english -->
app: {
app: {
commonWords:{
commonWords:{
error: "Error",
error: "Error",
...
@@ -239,10 +240,13 @@ export default {
...
@@ -239,10 +240,13 @@ export default {
},
},
entities: {
entities: {
<#list app.getAllPSAppDataEntities() as dataEntitey>
<#list app.getAllPSAppDataEntities() as dataEntitey>
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_en_US
,
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_en_US()
,
</#list>
</#list>
},
},
components: components_en_US,
components: components_en_US(),
codelist: codelist_en_US,
codelist: codelist_en_US(),
userCustom: userCustom_en_US,
userCustom: userCustom_en_US(),
};
};
\ No newline at end of file
return data;
}
export default getAppLocale;
\ No newline at end of file
APP/src/locale/lang/en-US.ts.ftl
浏览文件 @
15c1b55a
...
@@ -3,6 +3,10 @@ TARGET=PSSYSAPP
...
@@ -3,6 +3,10 @@ TARGET=PSSYSAPP
</#ibiztemplate>
</#ibiztemplate>
import app_en_US_Base from './en-US-base';
import app_en_US_Base from './en-US-base';
const app_en_US_OwnData = {};
function getLocaleResource(){
const targetData = Object.assign(app_en_US_Base, app_en_US_OwnData);
const app_en_US_OwnData = {};
export default targetData;
const targetData = Object.assign(app_en_US_Base(), app_en_US_OwnData);
\ No newline at end of file
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lang/zh-CN-base.ts.ftl
浏览文件 @
15c1b55a
...
@@ -11,8 +11,9 @@ import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
...
@@ -11,8 +11,9 @@ import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
import commonLogic from '@/locale/logic/common/common-logic';
import commonLogic from '@/locale/logic/common/common-logic';
<#assign langrestype = 'ZH_CN'/>
<#assign langrestype = 'ZH_CN'/>
export default {
function getAppLocale(){
<#-- 本地化语言资源 中文 -->
const data:any = {
<#-- 本地化语言资源 中文 -->
app: {
app: {
commonWords:{
commonWords:{
error: "失败",
error: "失败",
...
@@ -238,10 +239,13 @@ export default {
...
@@ -238,10 +239,13 @@ export default {
},
},
entities: {
entities: {
<#list app.getAllPSAppDataEntities() as dataEntitey>
<#list app.getAllPSAppDataEntities() as dataEntitey>
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_zh_CN
,
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_zh_CN()
,
</#list>
</#list>
},
},
components: components_zh_CN,
components: components_zh_CN(),
codelist: codelist_zh_CN,
codelist: codelist_zh_CN(),
userCustom: userCustom_zh_CN,
userCustom: userCustom_zh_CN(),
};
};
\ No newline at end of file
return data;
}
export default getAppLocale;
\ No newline at end of file
APP/src/locale/lang/zh-CN.ts.ftl
浏览文件 @
15c1b55a
...
@@ -3,6 +3,10 @@ TARGET=PSSYSAPP
...
@@ -3,6 +3,10 @@ TARGET=PSSYSAPP
</#ibiztemplate>
</#ibiztemplate>
import app_zh_CN_Base from './zh-CN-base';
import app_zh_CN_Base from './zh-CN-base';
const app_zh_CN_OwnData = {};
function getLocaleResource(){
const targetData = Object.assign(app_zh_CN_Base, app_zh_CN_OwnData);
const app_zh_CN_OwnData = {};
export default targetData;
const targetData = Object.assign(app_zh_CN_Base(), app_zh_CN_OwnData);
\ No newline at end of file
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/codelist/codelist_en_US.ts.ftl
浏览文件 @
15c1b55a
...
@@ -3,6 +3,9 @@ TARGET=PSSYSAPP
...
@@ -3,6 +3,9 @@ TARGET=PSSYSAPP
</#ibiztemplate>
</#ibiztemplate>
import codelist_en_US_Base from './codelist_en_US_base';
import codelist_en_US_Base from './codelist_en_US_base';
const codelist_en_US_OwnData = {};
function getLocaleResource(){
const targetData = Object.assign(codelist_en_US_Base, codelist_en_US_OwnData);
const codelist_en_US_OwnData = {};
export default targetData;
const targetData = Object.assign(codelist_en_US_Base(), codelist_en_US_OwnData);
\ No newline at end of file
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/codelist/codelist_en_US_base.ts.ftl
浏览文件 @
15c1b55a
...
@@ -4,8 +4,10 @@ TARGET=PSSYSAPP
...
@@ -4,8 +4,10 @@ TARGET=PSSYSAPP
import commonLogic from '@/locale/logic/common/common-logic';
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'EN'/>
<#assign langrestype = 'EN'/>
export default {
<#if app.getAllPSAppCodeLists()??>
function getLocaleResourceBase(){
const data:any = {
<#if app.getAllPSAppCodeLists()??>
<#list app.getAllPSAppCodeLists() as codelist>
<#list app.getAllPSAppCodeLists() as codelist>
<#if codelist.getCodeListType() == "STATIC">
<#if codelist.getCodeListType() == "STATIC">
${codelist.codeName}: {
${codelist.codeName}: {
...
@@ -22,5 +24,8 @@ export default {
...
@@ -22,5 +24,8 @@ export default {
},
},
</#if>
</#if>
</#list>
</#list>
</#if>
</#if>
};
};
\ No newline at end of file
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
APP/src/locale/lanres/codelist/codelist_zh_CN.ts.ftl
浏览文件 @
15c1b55a
...
@@ -3,6 +3,10 @@ TARGET=PSSYSAPP
...
@@ -3,6 +3,10 @@ TARGET=PSSYSAPP
</#ibiztemplate>
</#ibiztemplate>
import codelist_zh_CN_Base from './codelist_zh_CN_base';
import codelist_zh_CN_Base from './codelist_zh_CN_base';
const codelist_zh_CN_OwnData = {};
function getLocaleResource(){
const targetData = Object.assign(codelist_zh_CN_Base, codelist_zh_CN_OwnData);
const codelist_zh_CN_OwnData = {};
export default targetData;
const targetData = Object.assign(codelist_zh_CN_Base(), codelist_zh_CN_OwnData);
\ No newline at end of file
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/codelist/codelist_zh_CN_base.ts.ftl
浏览文件 @
15c1b55a
...
@@ -4,8 +4,10 @@ TARGET=PSSYSAPP
...
@@ -4,8 +4,10 @@ TARGET=PSSYSAPP
import commonLogic from '@/locale/logic/common/common-logic';
import commonLogic from '@/locale/logic/common/common-logic';
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'ZH_CN'/>
<#assign langrestype = 'ZH_CN'/>
export default {
<#if app.getAllPSAppCodeLists()??>
function getLocaleResourceBase(){
const data:any = {
<#if app.getAllPSAppCodeLists()??>
<#list app.getAllPSAppCodeLists() as codelist>
<#list app.getAllPSAppCodeLists() as codelist>
<#if codelist.getCodeListType() == "STATIC">
<#if codelist.getCodeListType() == "STATIC">
${codelist.codeName}: {
${codelist.codeName}: {
...
@@ -22,5 +24,8 @@ export default {
...
@@ -22,5 +24,8 @@ export default {
},
},
</#if>
</#if>
</#list>
</#list>
</#if>
</#if>
};
};
\ No newline at end of file
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
APP/src/locale/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_en_US.ts.ftl
浏览文件 @
15c1b55a
...
@@ -3,6 +3,10 @@ TARGET=PSAPPDATAENTITY
...
@@ -3,6 +3,10 @@ TARGET=PSAPPDATAENTITY
</#ibiztemplate>
</#ibiztemplate>
import ${item.getCodeName()}_en_US_Base from './${srffilepath2(item.getCodeName())}_en_US_base';
import ${item.getCodeName()}_en_US_Base from './${srffilepath2(item.getCodeName())}_en_US_base';
const ${item.getCodeName()}_en_US_OwnData = {};
function getLocaleResource(){
const targetData = Object.assign(${item.getCodeName()}_en_US_Base, ${item.getCodeName()}_en_US_OwnData);
const ${item.getCodeName()}_en_US_OwnData = {};
export default targetData;
const targetData = Object.assign(${item.getCodeName()}_en_US_Base(), ${item.getCodeName()}_en_US_OwnData);
\ No newline at end of file
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_en_US_base.ts.ftl
浏览文件 @
15c1b55a
...
@@ -6,47 +6,48 @@ import commonLogic from '@/locale/logic/common/common-logic';
...
@@ -6,47 +6,48 @@ import commonLogic from '@/locale/logic/common/common-logic';
<#assign langrestype = 'EN'/>
<#assign langrestype = 'EN'/>
<#assign emptyText = 'No data.'>
<#assign emptyText = 'No data.'>
export default {
function getLocaleResourceBase(){
<#-- 实体属性输出 -->
const data:any = {
<#if item.getAllPSAppDEFields()??>
<#-- 实体属性输出 -->
<#if item.getAllPSAppDEFields()??>
fields: {
fields: {
<#list item.getAllPSAppDEFields() as field>
<#list item.getAllPSAppDEFields() as field>
${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
</#list>
</#list>
},
},
</#if>
</#if>
<#if item.getAllPSDEFValueRules?? && item.getAllPSDEFValueRules()??>
<#if item.getAllPSDEFValueRules?? && item.getAllPSDEFValueRules()??>
derules:{
derules:{
<#list item.getAllPSDEFValueRules() as deValueRule>
<#list item.getAllPSDEFValueRules() as deValueRule>
<#if deValueRule?? && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#if deValueRule?? && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#list deVRConditions as singleCondition>
<#list deVRConditions as singleCondition>
${deValueRule.getCodeName()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
${deValueRule.getCodeName()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
</#list>
</#list>
</#if>
</#if>
</#list>
</#list>
},
},
</#if>
</#if>
<#-- 属性值规则输出 -->
<#-- 属性值规则输出 -->
<#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
<#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
derules:{
derules:{
<#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
<#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
<#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#list deVRConditions as singleCondition>
<#list deVRConditions as singleCondition>
${deValueRule.getCodeName()?lower_case}<#if singleCondition.getDEFName?? && singleCondition.getDEFName()??>${singleCondition.getDEFName()?lower_case}</#if>${singleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
${deValueRule.getCodeName()?lower_case}<#if singleCondition.getDEFName?? && singleCondition.getDEFName()??>${singleCondition.getDEFName()?lower_case}</#if>${singleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
<#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??>
<#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??>
<#list singleCondition.getPSDEFVRConditions() as sonsingleCondition>
<#list singleCondition.getPSDEFVRConditions() as sonsingleCondition>
${deValueRule.getCodeName()?lower_case}<#if sonsingleCondition.getDEFName?? && sonsingleCondition.getDEFName()??>${sonsingleCondition.getDEFName()?lower_case}</#if>${sonsingleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${sonsingleCondition.getRuleInfo()}",null),
${deValueRule.getCodeName()?lower_case}<#if sonsingleCondition.getDEFName?? && sonsingleCondition.getDEFName()??>${sonsingleCondition.getDEFName()?lower_case}</#if>${sonsingleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${sonsingleCondition.getRuleInfo()}",null),
</#list>
</#list>
</#if>
</#if>
</#list>
</#list>
</#if>
</#if>
</#list>
</#list>
},
},
</#if>
</#if>
<#-- 实体视图输出 -->
<#-- 实体视图输出 -->
<#if item.getAllPSAppViews()??>
<#if item.getAllPSAppViews()??>
views: {
views: {
<#list item.getAllPSAppViews() as obj>
<#list item.getAllPSAppViews() as obj>
${obj.getPSDEViewCodeName()?lower_case}: {
${obj.getPSDEViewCodeName()?lower_case}: {
...
@@ -55,14 +56,14 @@ export default {
...
@@ -55,14 +56,14 @@ export default {
},
},
</#list>
</#list>
},
},
</#if>
</#if>
<#-- 实体部件输出 -->
<#-- 实体部件输出 -->
<#if item.getPSControls()??>
<#if item.getPSControls()??>
<#assign ctrltypes = ['FORM', 'GRID','LIST', 'DATAVIEW', 'CHART', 'KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'CALENDAR']>
<#assign ctrltypes = ['FORM', 'GRID','LIST', 'DATAVIEW', 'CHART', 'KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'CALENDAR']>
<#list ctrltypes as ctrltype>
<#list ctrltypes as ctrltype>
<#list item.getPSControls() as ctrl>
<#list item.getPSControls() as ctrl>
<#if ctrl.getControlType() == ctrltype>
<#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
details: {
details: {
...
@@ -123,9 +124,13 @@ export default {
...
@@ -123,9 +124,13 @@ export default {
},
},
</#if>
</#if>
},
},
</#if>
</#if>
</#if>
</#if>
</#list>
</#list>
</#list>
</#list>
</#if>
</#if>
};
};
\ No newline at end of file
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
APP/src/locale/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_zh_CN.ts.ftl
浏览文件 @
15c1b55a
...
@@ -3,6 +3,10 @@ TARGET=PSAPPDATAENTITY
...
@@ -3,6 +3,10 @@ TARGET=PSAPPDATAENTITY
</#ibiztemplate>
</#ibiztemplate>
import ${item.getCodeName()}_zh_CN_Base from './${srffilepath2(item.getCodeName())}_zh_CN_base';
import ${item.getCodeName()}_zh_CN_Base from './${srffilepath2(item.getCodeName())}_zh_CN_base';
const ${item.getCodeName()}_zh_CN_OwnData = {};
function getLocaleResource(){
const targetData = Object.assign(${item.getCodeName()}_zh_CN_Base, ${item.getCodeName()}_zh_CN_OwnData);
const ${item.getCodeName()}_zh_CN_OwnData = {};
export default targetData;
const targetData = Object.assign(${item.getCodeName()}_zh_CN_Base(), ${item.getCodeName()}_zh_CN_OwnData);
\ No newline at end of file
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
APP/src/locale/lanres/entities/%DE_PKGPATH%/%DE_PKGPATH%_zh_CN_base.ts.ftl
浏览文件 @
15c1b55a
...
@@ -6,35 +6,37 @@ import commonLogic from '@/locale/logic/common/common-logic';
...
@@ -6,35 +6,37 @@ import commonLogic from '@/locale/logic/common/common-logic';
<#assign langrestype = 'ZH_CN'/>
<#assign langrestype = 'ZH_CN'/>
<#assign emptyText = '暂无数据'>
<#assign emptyText = '暂无数据'>
export default {
<#-- 实体属性输出 -->
function getLocaleResourceBase(){
<#if item.getAllPSAppDEFields()??>
const data:any = {
<#-- 实体属性输出 -->
<#if item.getAllPSAppDEFields()??>
fields: {
fields: {
<#list item.getAllPSAppDEFields() as field>
<#list item.getAllPSAppDEFields() as field>
${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
</#list>
</#list>
},
},
</#if>
</#if>
<#-- 属性值规则输出 -->
<#-- 属性值规则输出 -->
<#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
<#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
derules:{
derules:{
<#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
<#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
<#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#list deVRConditions as singleCondition>
<#list deVRConditions as singleCondition>
${deValueRule.getCodeName()?lower_case}<#if singleCondition.getDEFName?? && singleCondition.getDEFName()??>${singleCondition.getDEFName()?lower_case}</#if>${singleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
${deValueRule.getCodeName()?lower_case}<#if singleCondition.getDEFName?? && singleCondition.getDEFName()??>${singleCondition.getDEFName()?lower_case}</#if>${singleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
<#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??>
<#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??>
<#list singleCondition.getPSDEFVRConditions() as sonsingleCondition>
<#list singleCondition.getPSDEFVRConditions() as sonsingleCondition>
${deValueRule.getCodeName()?lower_case}<#if sonsingleCondition.getDEFName?? && sonsingleCondition.getDEFName()??>${sonsingleCondition.getDEFName()?lower_case}</#if>${sonsingleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${sonsingleCondition.getRuleInfo()}",null),
${deValueRule.getCodeName()?lower_case}<#if sonsingleCondition.getDEFName?? && sonsingleCondition.getDEFName()??>${sonsingleCondition.getDEFName()?lower_case}</#if>${sonsingleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${sonsingleCondition.getRuleInfo()}",null),
</#list>
</#list>
</#if>
</#if>
</#list>
</#list>
</#if>
</#if>
</#list>
</#list>
},
},
</#if>
</#if>
<#-- 实体视图输出 -->
<#-- 实体视图输出 -->
<#if item.getAllPSAppViews()??>
<#if item.getAllPSAppViews()??>
views: {
views: {
<#list item.getAllPSAppViews() as obj>
<#list item.getAllPSAppViews() as obj>
${obj.getPSDEViewCodeName()?lower_case}: {
${obj.getPSDEViewCodeName()?lower_case}: {
...
@@ -43,14 +45,14 @@ export default {
...
@@ -43,14 +45,14 @@ export default {
},
},
</#list>
</#list>
},
},
</#if>
</#if>
<#-- 实体部件输出 -->
<#-- 实体部件输出 -->
<#if item.getPSControls()??>
<#if item.getPSControls()??>
<#assign ctrltypes = ['FORM', 'GRID', 'LIST', 'DATAVIEW', 'CHART','KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'TREEGRIDEX', 'CALENDAR']>
<#assign ctrltypes = ['FORM', 'GRID', 'LIST', 'DATAVIEW', 'CHART','KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'TREEGRIDEX', 'CALENDAR']>
<#list ctrltypes as ctrltype>
<#list ctrltypes as ctrltype>
<#list item.getPSControls() as ctrl>
<#list item.getPSControls() as ctrl>
<#if ctrl.getControlType() == ctrltype>
<#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
details: {
details: {
...
@@ -111,9 +113,12 @@ export default {
...
@@ -111,9 +113,12 @@ export default {
},
},
</#if>
</#if>
},
},
</#if>
</#if>
</#if>
</#if>
</#list>
</#list>
</#list>
</#list>
</#if>
</#if>
};
};
\ No newline at end of file
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录