提交 15c1b55a 编写于 作者: tony001's avatar tony001

优化国际化附加逻辑内容

上级 bcd78dea
...@@ -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>
......
...@@ -11,238 +11,242 @@ import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US'; ...@@ -11,238 +11,242 @@ 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 = {
app: { <#-- local langue english -->
commonWords:{ app: {
error: "Error", commonWords:{
success: "Success", error: "Error",
ok: "OK", success: "Success",
cancel: "Cancel", ok: "OK",
save: "Save", cancel: "Cancel",
codeNotExist: 'Code list does not exist', save: "Save",
reqException: "Request exception", codeNotExist: 'Code list does not exist',
sysException: "System abnormality", reqException: "Request exception",
warning: "Warning", sysException: "System abnormality",
wrong: "Error", warning: "Warning",
rulesException: "Abnormal value check rule", wrong: "Error",
saveSuccess: "Saved successfully", rulesException: "Abnormal value check rule",
saveFailed: "Save failed", saveSuccess: "Saved successfully",
deleteSuccess: "Successfully deleted!", saveFailed: "Save failed",
deleteError: "Failed to delete", deleteSuccess: "Successfully deleted!",
delDataFail: "Failed to delete data", deleteError: "Failed to delete",
noData: "No data", delDataFail: "Failed to delete data",
startsuccess:"Start successful", noData: "No data",
loadmore:"Load more", startsuccess:"Start successful",
nomore:"No more", loadmore:"Load more",
other:"other" nomore:"No more",
}, other:"other"
local:{
new: "New",
add: "Add",
},
gridpage: {
choicecolumns: "Choice columns",
refresh: "refresh",
show: "Show",
records: "records",
totle: "totle",
valueVail: "Value cannot be empty",
group:"Group",
other:"Other",
notConfig: {
fetchAction: "The view table fetchaction parameter is not configured",
removeAction: "The view table removeaction parameter is not configured",
createAction: "The view table createaction parameter is not configured",
updateAction: "The view table updateaction parameter is not configured",
loaddraftAction: "The view table loadtrafaction parameter is not configured",
},
data: "Data",
delDataFail: "Failed to delete data",
delSuccess: "Delete successfully!",
confirmDel: "Are you sure you want to delete",
notRecoverable: "delete will not be recoverable?",
notBatch: "Batch addition not implemented",
grid: "Grid",
exportFail: "Data export failed",
sum: "Total",
formitemFailed: "Form item update failed",
},
list: {
notConfig: {
fetchAction: "View list fetchAction parameter is not configured",
removeAction: "View table removeAction parameter is not configured",
createAction: "View list createAction parameter is not configured",
updateAction: "View list updateAction parameter is not configured",
},
confirmDel: "Are you sure you want to delete",
notRecoverable: "delete will not be recoverable?",
},
listExpBar: {
title: "List navigation bar",
},
wfExpBar: {
title: "Process navigation bar",
},
calendarExpBar:{
title: "Calendar navigation bar",
},
treeExpBar: {
title: "Tree view navigation bar",
},
portlet: {
noExtensions: "No extensions",
},
tabpage: {
sureclosetip: {
title: "Close warning",
content: "Form data Changed, are sure close?",
}, },
closeall: "Close all", local:{
closeother: "Close other", new: "New",
}, add: "Add",
fileUpload: { },
caption: "Upload", gridpage: {
}, choicecolumns: "Choice columns",
searchButton: { refresh: "refresh",
search: "Search", show: "Show",
reset: "Reset", records: "records",
}, totle: "totle",
calendar:{ valueVail: "Value cannot be empty",
today: "today", group:"Group",
month: "month", other:"Other",
week: "week", notConfig: {
day: "day", fetchAction: "The view table fetchaction parameter is not configured",
list: "list", removeAction: "The view table removeaction parameter is not configured",
dateSelectModalTitle: "select the time you wanted", createAction: "The view table createaction parameter is not configured",
gotoDate: "goto", updateAction: "The view table updateaction parameter is not configured",
from: "From", loaddraftAction: "The view table loadtrafaction parameter is not configured",
to: "To", },
}, data: "Data",
// 非实体视图 delDataFail: "Failed to delete data",
views: { delSuccess: "Delete successfully!",
<#if app.isPubRefViewOnly()><#assign allAppViews = app.getAllRefPSAppViews()/><#else><#assign allAppViews = app.getAllPSAppViews()/></#if> confirmDel: "Are you sure you want to delete",
<#if allAppViews??> notRecoverable: "delete will not be recoverable?",
<#list allAppViews as obj> notBatch: "Batch addition not implemented",
<#if !obj.isPSDEView()> grid: "Grid",
${obj.getCodeName()?lower_case}: { exportFail: "Data export failed",
caption: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>, sum: "Total",
title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null), formitemFailed: "Form item update failed",
}, },
</#if> list: {
</#list> notConfig: {
</#if> fetchAction: "View list fetchAction parameter is not configured",
}, removeAction: "View table removeAction parameter is not configured",
utilview:{ createAction: "View list createAction parameter is not configured",
importview:"Import Data", updateAction: "View list updateAction parameter is not configured",
warning:"warning", },
info:"Please configure the data import item" confirmDel: "Are you sure you want to delete",
}, notRecoverable: "delete will not be recoverable?",
menus: { },
<#list app.getAllPSAppMenuModels() as menu> listExpBar: {
${menu.getCodeName()?lower_case}: { title: "List navigation bar",
<#list menu.getAllPSAppMenuItems() as obj> },
${obj.getName()?lower_case}: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>, wfExpBar: {
title: "Process navigation bar",
},
calendarExpBar:{
title: "Calendar navigation bar",
},
treeExpBar: {
title: "Tree view navigation bar",
},
portlet: {
noExtensions: "No extensions",
},
tabpage: {
sureclosetip: {
title: "Close warning",
content: "Form data Changed, are sure close?",
},
closeall: "Close all",
closeother: "Close other",
},
fileUpload: {
caption: "Upload",
},
searchButton: {
search: "Search",
reset: "Reset",
},
calendar:{
today: "today",
month: "month",
week: "week",
day: "day",
list: "list",
dateSelectModalTitle: "select the time you wanted",
gotoDate: "goto",
from: "From",
to: "To",
},
// 非实体视图
views: {
<#if app.isPubRefViewOnly()><#assign allAppViews = app.getAllRefPSAppViews()/><#else><#assign allAppViews = app.getAllPSAppViews()/></#if>
<#if allAppViews??>
<#list allAppViews as obj>
<#if !obj.isPSDEView()>
${obj.getCodeName()?lower_case}: {
caption: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
},
</#if>
</#list> </#list>
</#if>
}, },
</#list> utilview:{
}, importview:"Import Data",
formpage:{ warning:"warning",
error: "Error", info:"Please configure the data import item"
desc1: "Operation failed, failed to find current form item",
desc2: "Can't continue",
notconfig: {
loadaction: "View form loadAction parameter is not configured",
loaddraftaction: "View form loaddraftAction parameter is not configured",
actionname: "View form actionName parameter is not configured",
removeaction: "View form removeAction parameter is not configured",
},
saveerror: "Error saving data",
savecontent: "The data is inconsistent. The background data may have been modified. Do you want to reload the data?",
valuecheckex: "Value rule check exception",
savesuccess: "Saved successfully!",
deletesuccess: "Successfully deleted!",
workflow: {
starterror: "Workflow started successfully",
startsuccess: "Workflow failed to start",
submiterror: "Workflow submission failed",
submitsuccess: "Workflow submitted successfully",
},
updateerror: "Form item update failed",
},
gridBar: {
title: "Table navigation bar",
},
multiEditView: {
notConfig: {
fetchAction: "View multi-edit view panel fetchAction parameter is not configured",
loaddraftAction: "View multi-edit view panel loaddraftAction parameter is not configured",
}, },
}, menus: {
dataViewExpBar: { <#list app.getAllPSAppMenuModels() as menu>
title: "Card view navigation bar", ${menu.getCodeName()?lower_case}: {
}, <#list menu.getAllPSAppMenuItems() as obj>
kanban: { ${obj.getName()?lower_case}: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
notConfig: { </#list>
fetchAction: "View list fetchAction parameter is not configured", },
removeAction: "View table removeAction parameter is not configured", </#list>
}, },
delete1: "Confirm to delete ", formpage:{
delete2: "the delete operation will be unrecoverable!", error: "Error",
}, desc1: "Operation failed, failed to find current form item",
dashBoard: { desc2: "Can't continue",
handleClick: { notconfig: {
title: "Panel design", loadaction: "View form loadAction parameter is not configured",
loaddraftaction: "View form loaddraftAction parameter is not configured",
actionname: "View form actionName parameter is not configured",
removeaction: "View form removeAction parameter is not configured",
},
saveerror: "Error saving data",
savecontent: "The data is inconsistent. The background data may have been modified. Do you want to reload the data?",
valuecheckex: "Value rule check exception",
savesuccess: "Saved successfully!",
deletesuccess: "Successfully deleted!",
workflow: {
starterror: "Workflow started successfully",
startsuccess: "Workflow failed to start",
submiterror: "Workflow submission failed",
submitsuccess: "Workflow submitted successfully",
},
updateerror: "Form item update failed",
}, },
}, gridBar: {
dataView: { title: "Table navigation bar",
sum: "total",
data: "data",
},
chart: {
undefined: "Undefined",
quarter: "Quarter",
year: "Year",
},
searchForm: {
notConfig: {
loadAction: "View search form loadAction parameter is not configured",
loaddraftAction: "View search form loaddraftAction parameter is not configured",
}, },
custom: "Store custom queries", multiEditView: {
title: "Name", notConfig: {
}, fetchAction: "View multi-edit view panel fetchAction parameter is not configured",
wizardPanel: { loaddraftAction: "View multi-edit view panel loaddraftAction parameter is not configured",
back: "Back", },
next: "Next", },
complete: "Complete", dataViewExpBar: {
preactionmessage:"The calculation of the previous behavior is not configured" title: "Card view navigation bar",
},
viewLayoutPanel: {
appLogoutView: {
prompt1: "Dear customer, you have successfully exited the system, after",
prompt2: "seconds, we will jump to the",
logingPage: "login page",
}, },
appWfstepTraceView: { kanban: {
title: "Application process processing record view", notConfig: {
fetchAction: "View list fetchAction parameter is not configured",
removeAction: "View table removeAction parameter is not configured",
},
delete1: "Confirm to delete ",
delete2: "the delete operation will be unrecoverable!",
}, },
appWfstepDataView: { dashBoard: {
title: "Application process tracking view", handleClick: {
title: "Panel design",
},
}, },
appLoginView: { dataView: {
username: "Username", sum: "total",
password: "Password", data: "data",
login: "Login",
}, },
chart: {
undefined: "Undefined",
quarter: "Quarter",
year: "Year",
},
searchForm: {
notConfig: {
loadAction: "View search form loadAction parameter is not configured",
loaddraftAction: "View search form loaddraftAction parameter is not configured",
},
custom: "Store custom queries",
title: "Name",
},
wizardPanel: {
back: "Back",
next: "Next",
complete: "Complete",
preactionmessage:"The calculation of the previous behavior is not configured"
},
viewLayoutPanel: {
appLogoutView: {
prompt1: "Dear customer, you have successfully exited the system, after",
prompt2: "seconds, we will jump to the",
logingPage: "login page",
},
appWfstepTraceView: {
title: "Application process processing record view",
},
appWfstepDataView: {
title: "Application process tracking view",
},
appLoginView: {
username: "Username",
password: "Password",
login: "Login",
},
},
},
entities: {
<#list app.getAllPSAppDataEntities() as dataEntitey>
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_en_US(),
</#list>
}, },
}, components: components_en_US(),
entities: { codelist: codelist_en_US(),
<#list app.getAllPSAppDataEntities() as dataEntitey> userCustom: userCustom_en_US(),
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_en_US, };
</#list> return data;
}, }
components: components_en_US, export default getAppLocale;
codelist: codelist_en_US, \ No newline at end of file
userCustom: userCustom_en_US,
};
\ No newline at end of file
...@@ -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
...@@ -11,237 +11,241 @@ import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN'; ...@@ -11,237 +11,241 @@ 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: { <#-- 本地化语言资源 中文 -->
commonWords:{ app: {
error: "失败", commonWords:{
success: "成功", error: "失败",
ok: "确认", success: "成功",
cancel: "取消", ok: "确认",
save: "保存", cancel: "取消",
codeNotExist: "代码表不存在", save: "保存",
reqException: "请求异常", codeNotExist: "代码表不存在",
sysException: "系统异常", reqException: "请求异常",
warning: "警告", sysException: "系统异常",
wrong: "错误", warning: "警告",
rulesException: "值规则校验异常", wrong: "错误",
saveSuccess: "保存成功", rulesException: "值规则校验异常",
saveFailed: "保存失败", saveSuccess: "保存成功",
deleteSuccess: "删除成功", saveFailed: "保存失败",
deleteError: "删除失败", deleteSuccess: "删除成功",
delDataFail: "删除数据失败", deleteError: "删除失败",
noData: "暂无数据", delDataFail: "删除数据失败",
startsuccess:"启动成功", noData: "暂无数据",
loadmore:"加载更多", startsuccess:"启动成功",
nomore:"没有更多了", loadmore:"加载更多",
other:"其他" nomore:"没有更多了",
}, other:"其他"
local:{
new: "新建",
add: "增加",
},
gridpage: {
choicecolumns: "选择列",
refresh: "刷新",
show: "显示",
records: "条",
totle: "共",
valueVail: "值不能为空",
group:"分组",
other:"其他",
notConfig: {
fetchAction: "视图表格fetchAction参数未配置",
removeAction: "视图表格removeAction参数未配置",
createAction: "视图表格createAction参数未配置",
updateAction: "视图表格updateAction参数未配置",
loaddraftAction: "视图表格loaddraftAction参数未配置",
},
data: "数据",
delDataFail: "删除数据失败",
delSuccess: "删除成功!",
confirmDel: "确认要删除",
notRecoverable: "删除操作将不可恢复?",
notBatch: "批量添加未实现",
grid: "表",
exportFail: "数据导出失败",
sum: "合计",
formitemFailed: "表单项更新失败",
},
list: {
notConfig: {
fetchAction: "视图列表fetchAction参数未配置",
removeAction: "视图表格removeAction参数未配置",
createAction: "视图列表createAction参数未配置",
updateAction: "视图列表updateAction参数未配置",
},
confirmDel: "确认要删除",
notRecoverable: "删除操作将不可恢复?",
},
listExpBar: {
title: "列表导航栏",
},
wfExpBar: {
title: "流程导航栏",
},
calendarExpBar:{
title: "日历导航栏",
},
treeExpBar: {
title: "树视图导航栏",
},
portlet: {
noExtensions: "无扩展插件",
},
tabpage: {
sureclosetip: {
title: "关闭提醒",
content: "表单数据已经修改,确定要关闭?",
}, },
closeall: "关闭所有", local:{
closeother: "关闭其他", new: "新建",
}, add: "增加",
fileUpload: { },
caption: "上传", gridpage: {
}, choicecolumns: "选择列",
searchButton: { refresh: "刷新",
search: "搜索", show: "显示",
reset: "重置", records: "条",
}, totle: "共",
calendar:{ valueVail: "值不能为空",
today: "今天", group:"分组",
month: "月", other:"其他",
week: "周", notConfig: {
day: "天", fetchAction: "视图表格fetchAction参数未配置",
list: "列", removeAction: "视图表格removeAction参数未配置",
dateSelectModalTitle: "选择要跳转的时间", createAction: "视图表格createAction参数未配置",
gotoDate: "跳转", updateAction: "视图表格updateAction参数未配置",
from: "从", loaddraftAction: "视图表格loaddraftAction参数未配置",
to: "至", },
}, data: "数据",
// 非实体视图 delDataFail: "删除数据失败",
views: { delSuccess: "删除成功!",
<#if app.isPubRefViewOnly()><#assign allAppViews = app.getAllRefPSAppViews()/><#else><#assign allAppViews = app.getAllPSAppViews()/></#if> confirmDel: "确认要删除",
<#if allAppViews??> notRecoverable: "删除操作将不可恢复?",
<#list allAppViews as obj> notBatch: "批量添加未实现",
<#if !obj.isPSDEView()> grid: "表",
${obj.getCodeName()?lower_case}: { exportFail: "数据导出失败",
caption: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>, sum: "合计",
title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null), formitemFailed: "表单项更新失败",
}, },
</#if> list: {
</#list> notConfig: {
</#if> fetchAction: "视图列表fetchAction参数未配置",
}, removeAction: "视图表格removeAction参数未配置",
utilview:{ createAction: "视图列表createAction参数未配置",
importview:"导入数据", updateAction: "视图列表updateAction参数未配置",
warning:"警告", },
info:"请配置数据导入项" confirmDel: "确认要删除",
}, notRecoverable: "删除操作将不可恢复?",
menus: { },
<#list app.getAllPSAppMenuModels() as menu> listExpBar: {
${menu.getCodeName()?lower_case}: { title: "列表导航栏",
<#list menu.getAllPSAppMenuItems() as obj> },
${obj.getName()?lower_case}: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>, wfExpBar: {
title: "流程导航栏",
},
calendarExpBar:{
title: "日历导航栏",
},
treeExpBar: {
title: "树视图导航栏",
},
portlet: {
noExtensions: "无扩展插件",
},
tabpage: {
sureclosetip: {
title: "关闭提醒",
content: "表单数据已经修改,确定要关闭?",
},
closeall: "关闭所有",
closeother: "关闭其他",
},
fileUpload: {
caption: "上传",
},
searchButton: {
search: "搜索",
reset: "重置",
},
calendar:{
today: "今天",
month: "月",
week: "周",
day: "天",
list: "列",
dateSelectModalTitle: "选择要跳转的时间",
gotoDate: "跳转",
from: "从",
to: "至",
},
// 非实体视图
views: {
<#if app.isPubRefViewOnly()><#assign allAppViews = app.getAllRefPSAppViews()/><#else><#assign allAppViews = app.getAllPSAppViews()/></#if>
<#if allAppViews??>
<#list allAppViews as obj>
<#if !obj.isPSDEView()>
${obj.getCodeName()?lower_case}: {
caption: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
},
</#if>
</#list> </#list>
</#if>
}, },
</#list> utilview:{
}, importview:"导入数据",
formpage:{ warning:"警告",
desc1: "操作失败,未能找到当前表单项", info:"请配置数据导入项"
desc2: "无法继续操作",
notconfig: {
loadaction: "视图表单loadAction参数未配置",
loaddraftaction: "视图表单loaddraftAction参数未配置",
actionname: "视图表单'+actionName+'参数未配置",
removeaction: "视图表单removeAction参数未配置",
},
saveerror: "保存数据发生错误",
savecontent: "数据不一致,可能后台数据已经被修改,是否要重新加载数据?",
valuecheckex: "值规则校验异常",
savesuccess: "保存成功!",
deletesuccess: "删除成功!",
workflow: {
starterror: "工作流启动失败",
startsuccess: "工作流启动成功",
submiterror: "工作流提交失败",
submitsuccess: "工作流提交成功",
},
updateerror: "表单项更新失败",
},
gridBar: {
title: "表格导航栏",
},
multiEditView: {
notConfig: {
fetchAction: "视图多编辑视图面板fetchAction参数未配置",
loaddraftAction: "视图多编辑视图面板loaddraftAction参数未配置",
}, },
}, menus: {
dataViewExpBar: { <#list app.getAllPSAppMenuModels() as menu>
title: "卡片视图导航栏", ${menu.getCodeName()?lower_case}: {
}, <#list menu.getAllPSAppMenuItems() as obj>
kanban: { ${obj.getName()?lower_case}: <#ibizinclude>../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
notConfig: { </#list>
fetchAction: "视图列表fetchAction参数未配置", },
removeAction: "视图表格removeAction参数未配置", </#list>
}, },
delete1: "确认要删除 ", formpage:{
delete2: "删除操作将不可恢复?", desc1: "操作失败,未能找到当前表单项",
}, desc2: "无法继续操作",
dashBoard: { notconfig: {
handleClick: { loadaction: "视图表单loadAction参数未配置",
title: "面板设计", loaddraftaction: "视图表单loaddraftAction参数未配置",
actionname: "视图表单'+actionName+'参数未配置",
removeaction: "视图表单removeAction参数未配置",
},
saveerror: "保存数据发生错误",
savecontent: "数据不一致,可能后台数据已经被修改,是否要重新加载数据?",
valuecheckex: "值规则校验异常",
savesuccess: "保存成功!",
deletesuccess: "删除成功!",
workflow: {
starterror: "工作流启动失败",
startsuccess: "工作流启动成功",
submiterror: "工作流提交失败",
submitsuccess: "工作流提交成功",
},
updateerror: "表单项更新失败",
}, },
}, gridBar: {
dataView: { title: "表格导航栏",
sum: "共",
data: "条数据",
},
chart: {
undefined: "未定义",
quarter: "季度",
year: "年",
},
searchForm: {
notConfig: {
loadAction: "视图搜索表单loadAction参数未配置",
loaddraftAction: "视图搜索表单loaddraftAction参数未配置",
}, },
custom: "存储自定义查询", multiEditView: {
title: "名称", notConfig: {
}, fetchAction: "视图多编辑视图面板fetchAction参数未配置",
wizardPanel: { loaddraftAction: "视图多编辑视图面板loaddraftAction参数未配置",
back: "上一步", },
next: "下一步", },
complete: "完成", dataViewExpBar: {
preactionmessage:"未配置计算上一步行为" title: "卡片视图导航栏",
},
viewLayoutPanel: {
appLogoutView: {
prompt1: "尊敬的客户您好,您已成功退出系统,将在",
prompt2: "秒后跳转至",
logingPage: "登录页",
}, },
appWfstepTraceView: { kanban: {
title: "应用流程处理记录视图", notConfig: {
fetchAction: "视图列表fetchAction参数未配置",
removeAction: "视图表格removeAction参数未配置",
},
delete1: "确认要删除 ",
delete2: "删除操作将不可恢复?",
}, },
appWfstepDataView: { dashBoard: {
title: "应用流程跟踪视图", handleClick: {
title: "面板设计",
},
}, },
appLoginView: { dataView: {
username: "用户名", sum: "共",
password: "密码", data: "条数据",
login: "登录",
}, },
chart: {
undefined: "未定义",
quarter: "季度",
year: "年",
},
searchForm: {
notConfig: {
loadAction: "视图搜索表单loadAction参数未配置",
loaddraftAction: "视图搜索表单loaddraftAction参数未配置",
},
custom: "存储自定义查询",
title: "名称",
},
wizardPanel: {
back: "上一步",
next: "下一步",
complete: "完成",
preactionmessage:"未配置计算上一步行为"
},
viewLayoutPanel: {
appLogoutView: {
prompt1: "尊敬的客户您好,您已成功退出系统,将在",
prompt2: "秒后跳转至",
logingPage: "登录页",
},
appWfstepTraceView: {
title: "应用流程处理记录视图",
},
appWfstepDataView: {
title: "应用流程跟踪视图",
},
appLoginView: {
username: "用户名",
password: "密码",
login: "登录",
},
},
},
entities: {
<#list app.getAllPSAppDataEntities() as dataEntitey>
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_zh_CN(),
</#list>
}, },
}, components: components_zh_CN(),
entities: { codelist: codelist_zh_CN(),
<#list app.getAllPSAppDataEntities() as dataEntitey> userCustom: userCustom_zh_CN(),
${dataEntitey.getCodeName()?lower_case}: ${dataEntitey.getCodeName()?lower_case}_zh_CN, };
</#list> return data;
}, }
components: components_zh_CN, export default getAppLocale;
codelist: codelist_zh_CN, \ No newline at end of file
userCustom: userCustom_zh_CN,
};
\ No newline at end of file
...@@ -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
...@@ -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
...@@ -4,23 +4,28 @@ TARGET=PSSYSAPP ...@@ -4,23 +4,28 @@ 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(){
<#list app.getAllPSAppCodeLists() as codelist> const data:any = {
<#if codelist.getCodeListType() == "STATIC"> <#if app.getAllPSAppCodeLists()??>
${codelist.codeName}: { <#list app.getAllPSAppCodeLists() as codelist>
<#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??> <#if codelist.getCodeListType() == "STATIC">
<#list codelist.getAllPSCodeItems() as codeitem> ${codelist.codeName}: {
"${codeitem.getValue()?j_string}": commonLogic.appcommonhandle("<@getTextLanguage codeitem langrestype />",null), <#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??>
</#list> <#list codelist.getAllPSCodeItems() as codeitem>
"${codeitem.getValue()?j_string}": commonLogic.appcommonhandle("<@getTextLanguage codeitem langrestype />",null),
</#list>
</#if>
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null)
},
<#elseif codelist.getCodeListType() == "DYNAMIC">
${codelist.codeName}: {
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null),
},
</#if> </#if>
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null) </#list>
}, </#if>
<#elseif codelist.getCodeListType() == "DYNAMIC"> };
${codelist.codeName}: { return data;
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null), }
}, export default getLocaleResourceBase;
</#if> \ No newline at end of file
</#list>
</#if>
};
\ No newline at end of file
...@@ -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
...@@ -4,23 +4,28 @@ TARGET=PSSYSAPP ...@@ -4,23 +4,28 @@ 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(){
<#list app.getAllPSAppCodeLists() as codelist> const data:any = {
<#if codelist.getCodeListType() == "STATIC"> <#if app.getAllPSAppCodeLists()??>
${codelist.codeName}: { <#list app.getAllPSAppCodeLists() as codelist>
<#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??> <#if codelist.getCodeListType() == "STATIC">
<#list codelist.getAllPSCodeItems() as codeitem> ${codelist.codeName}: {
"${codeitem.getValue()?j_string}": commonLogic.appcommonhandle("<@getTextLanguage codeitem langrestype />",null), <#if codelist.getAllPSCodeItems?? && codelist.getAllPSCodeItems()??>
</#list> <#list codelist.getAllPSCodeItems() as codeitem>
"${codeitem.getValue()?j_string}": commonLogic.appcommonhandle("<@getTextLanguage codeitem langrestype />",null),
</#list>
</#if>
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null),
},
<#elseif codelist.getCodeListType() == "DYNAMIC">
${codelist.codeName}: {
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null),
},
</#if> </#if>
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null), </#list>
}, </#if>
<#elseif codelist.getCodeListType() == "DYNAMIC"> };
${codelist.codeName}: { return data;
"empty": commonLogic.appcommonhandle("<@getEmptyTextLanguage codelist langrestype '' />",null), }
}, export default getLocaleResourceBase;
</#if> \ No newline at end of file
</#list>
</#if>
};
\ No newline at end of file
...@@ -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
...@@ -6,126 +6,131 @@ import commonLogic from '@/locale/logic/common/common-logic'; ...@@ -6,126 +6,131 @@ 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()??> <#-- 实体属性输出 -->
fields: { <#if item.getAllPSAppDEFields()??>
<#list item.getAllPSAppDEFields() as field> fields: {
${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null), <#list item.getAllPSAppDEFields() as field>
</#list> ${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
}, </#list>
</#if>
<#if item.getAllPSDEFValueRules?? && item.getAllPSDEFValueRules()??>
derules:{
<#list item.getAllPSDEFValueRules() as deValueRule>
<#if deValueRule?? && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#list deVRConditions as singleCondition>
${deValueRule.getCodeName()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
</#list>
</#if>
</#list>
}, },
</#if> </#if>
<#-- 属性值规则输出 --> <#if item.getAllPSDEFValueRules?? && item.getAllPSDEFValueRules()??>
<#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??> derules:{
derules:{ <#list item.getAllPSDEFValueRules() as deValueRule>
<#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule> <#if deValueRule?? && 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}: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), </#list>
<#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??> </#if>
<#list singleCondition.getPSDEFVRConditions() as sonsingleCondition> </#list>
${deValueRule.getCodeName()?lower_case}<#if sonsingleCondition.getDEFName?? && sonsingleCondition.getDEFName()??>${sonsingleCondition.getDEFName()?lower_case}</#if>${sonsingleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${sonsingleCondition.getRuleInfo()}",null),
</#list>
</#if>
</#list>
</#if>
</#list>
},
</#if>
<#-- 实体视图输出 -->
<#if item.getAllPSAppViews()??>
views: {
<#list item.getAllPSAppViews() as obj>
${obj.getPSDEViewCodeName()?lower_case}: {
caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
},
</#list>
},
</#if>
<#-- 实体部件输出 -->
<#if item.getPSControls()??>
<#assign ctrltypes = ['FORM', 'GRID','LIST', 'DATAVIEW', 'CHART', 'KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'CALENDAR']>
<#list ctrltypes as ctrltype>
<#list item.getPSControls() as ctrl>
<#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
details: {
<#list ctrl.getAllPSDEFormDetails() as obj>
${obj.name?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
}, },
</#if> </#if>
<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART'|| ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'> <#-- 属性值规则输出 -->
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null), <#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
</#if> derules:{
<#if ctrl.getControlType() == 'GRID'> <#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
columns: { <#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#if ctrl.getAllPSDEGridColumns()??> <#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#list ctrl.getAllPSDEGridColumns() as obj> <#list deVRConditions as singleCondition>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>, ${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()??>
<#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),
</#list> </#list>
</#if> </#if>
</#list>
</#if>
</#list>
}, },
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null), </#if>
<#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? > <#-- 实体视图输出 -->
exportColumns: { <#if item.getAllPSAppViews()??>
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??> views: {
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj> <#list item.getAllPSAppViews() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>, ${obj.getPSDEViewCodeName()?lower_case}: {
</#list> caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#if> title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
}, },
</#if>
</#if>
<#if ctrl.getControlType() == 'TREEVIEW'>
nodes: {
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as obj>
<#if obj.getTreeNodeType() == 'STATIC'>
${obj.getNodeType()?lower_case}: commonLogic.appcommonhandle("<@getNameLanguage obj langrestype />",null),
</#if>
</#list> </#list>
</#if>
}, },
</#if> </#if>
<#if ctrl.getControlType() == 'TOOLBAR'> <#-- 实体部件输出 -->
<#if ctrl.getAllPSDEToolbarItems()??> <#if item.getPSControls()??>
<#list ctrl.getAllPSDEToolbarItems() as obj> <#assign ctrltypes = ['FORM', 'GRID','LIST', 'DATAVIEW', 'CHART', 'KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'CALENDAR']>
${obj.getName()?lower_case}: { <#list ctrltypes as ctrltype>
caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>, <#list item.getPSControls() as ctrl>
tip: commonLogic.appcommonhandle("<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",null), <#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
details: {
<#list ctrl.getAllPSDEFormDetails() as obj>
${obj.name?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
},
</#if>
<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART'|| ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'>
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
</#if>
<#if ctrl.getControlType() == 'GRID'>
columns: {
<#if ctrl.getAllPSDEGridColumns()??>
<#list ctrl.getAllPSDEGridColumns() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
</#if>
},
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
<#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? >
exportColumns: {
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
</#if>
}, },
</#list>
</#if> </#if>
</#if>
<#if ctrl.getControlType() == 'TREEVIEW'>
nodes: {
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as obj>
<#if obj.getTreeNodeType() == 'STATIC'>
${obj.getNodeType()?lower_case}: commonLogic.appcommonhandle("<@getNameLanguage obj langrestype />",null),
</#if>
</#list>
</#if>
},
</#if> </#if>
<#-- 部件界面行为 --> <#if ctrl.getControlType() == 'TOOLBAR'>
<#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??> <#if ctrl.getAllPSDEToolbarItems()??>
uiactions: { <#list ctrl.getAllPSDEToolbarItems() as obj>
<#list ctrl.getPSUIActions() as obj> ${obj.getName()?lower_case}: {
<#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>, caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
tip: commonLogic.appcommonhandle("<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",null),
},
</#list> </#list>
</#if>
</#if>
<#-- 部件界面行为 -->
<#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??>
uiactions: {
<#list ctrl.getPSUIActions() as obj>
<#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
},
</#if>
}, },
</#if> </#if>
}, </#if>
</#if> </#list>
</#if> </#list>
</#list> </#if>
</#list> };
</#if> return data;
}; }
\ No newline at end of file
export default getLocaleResourceBase;
\ No newline at end of file
...@@ -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
...@@ -6,114 +6,119 @@ import commonLogic from '@/locale/logic/common/common-logic'; ...@@ -6,114 +6,119 @@ 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 = {
fields: { <#-- 实体属性输出 -->
<#list item.getAllPSAppDEFields() as field> <#if item.getAllPSAppDEFields()??>
${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null), fields: {
</#list> <#list item.getAllPSAppDEFields() as field>
}, ${field.getPSDEField().getCodeName()?lower_case}: commonLogic.appcommonhandle("<@getLogicNameLanguage field.getPSDEField() langrestype />",null),
</#if> </#list>
<#-- 属性值规则输出 -->
<#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
derules:{
<#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
<#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#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),
<#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??>
<#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),
</#list>
</#if>
</#list>
</#if>
</#list>
},
</#if>
<#-- 实体视图输出 -->
<#if item.getAllPSAppViews()??>
views: {
<#list item.getAllPSAppViews() as obj>
${obj.getPSDEViewCodeName()?lower_case}: {
caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
},
</#list>
}, },
</#if> </#if>
<#-- 实体部件输出 --> <#-- 属性值规则输出 -->
<#if item.getPSControls()??> <#if item.getPSDataEntity().getAllPSDEFValueRules?? && item.getPSDataEntity().getAllPSDEFValueRules()??>
<#assign ctrltypes = ['FORM', 'GRID', 'LIST', 'DATAVIEW', 'CHART','KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'TREEGRIDEX', 'CALENDAR']> derules:{
<#list ctrltypes as ctrltype> <#list item.getPSDataEntity().getAllPSDEFValueRules() as deValueRule>
<#list item.getPSControls() as ctrl> <#if deValueRule?? && (deValueRule.isDefaultMode() == false) && deValueRule.getPSDEFVRGroupCondition?? && deValueRule.getPSDEFVRGroupCondition()?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? && deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??>
<#if ctrl.getControlType() == ctrltype> <#assign deVRConditions = deValueRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() />
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")> <#list deVRConditions as singleCondition>
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: { ${deValueRule.getCodeName()?lower_case}<#if singleCondition.getDEFName?? && singleCondition.getDEFName()??>${singleCondition.getDEFName()?lower_case}</#if>${singleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${singleCondition.getRuleInfo()}",null),
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'> <#if singleCondition.getPSDEFVRConditions?? && singleCondition.getPSDEFVRConditions()??>
details: { <#list singleCondition.getPSDEFVRConditions() as sonsingleCondition>
<#list ctrl.getAllPSDEFormDetails() as obj> ${deValueRule.getCodeName()?lower_case}<#if sonsingleCondition.getDEFName?? && sonsingleCondition.getDEFName()??>${sonsingleCondition.getDEFName()?lower_case}</#if>${sonsingleCondition.getCondType()?lower_case}:commonLogic.appcommonhandle("${sonsingleCondition.getRuleInfo()}",null),
${obj.name?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
},
</#if>
<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART' || ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'>
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
</#if>
<#if ctrl.getControlType() == 'GRID'>
columns: {
<#if ctrl.getAllPSDEGridColumns()??>
<#list ctrl.getAllPSDEGridColumns() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list> </#list>
</#if> </#if>
</#list>
</#if>
</#list>
}, },
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null), </#if>
<#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? > <#-- 实体视图输出 -->
exportColumns: { <#if item.getAllPSAppViews()??>
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??> views: {
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj> <#list item.getAllPSAppViews() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>, ${obj.getPSDEViewCodeName()?lower_case}: {
</#list> caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#if> title: commonLogic.appcommonhandle("<@getTitleLanguage obj langrestype />",null),
}, },
</#if>
</#if>
<#if ctrl.getControlType() == 'TREEVIEW'>
nodes: {
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as obj>
<#if obj.getTreeNodeType() == 'STATIC'>
${obj.getNodeType()?lower_case}: commonLogic.appcommonhandle("<@getNameLanguage obj langrestype />",null),
</#if>
</#list> </#list>
},
</#if>
<#-- 实体部件输出 -->
<#if item.getPSControls()??>
<#assign ctrltypes = ['FORM', 'GRID', 'LIST', 'DATAVIEW', 'CHART','KANBAN', 'GANTT', 'TREEGRIDEX', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'TREEGRIDEX', 'CALENDAR']>
<#list ctrltypes as ctrltype>
<#list item.getPSControls() as ctrl>
<#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
details: {
<#list ctrl.getAllPSDEFormDetails() as obj>
${obj.name?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
},
</#if>
<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'CHART' || ctrl.getControlType() == 'KANBAN'|| ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR' || ctrl.getControlType() == 'TREEVIEW'>
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
</#if>
<#if ctrl.getControlType() == 'GRID'>
columns: {
<#if ctrl.getAllPSDEGridColumns()??>
<#list ctrl.getAllPSDEGridColumns() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
</#if>
},
nodata:commonLogic.appcommonhandle("<@getEmptyTextLanguage ctrl langrestype emptyText/>",null),
<#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? >
exportColumns: {
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj>
${obj.getName()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
</#if> </#if>
}, },
</#if> </#if>
<#if ctrl.getControlType() == 'TOOLBAR'> </#if>
<#if ctrl.getAllPSDEToolbarItems()??> <#if ctrl.getControlType() == 'TREEVIEW'>
<#list ctrl.getAllPSDEToolbarItems() as obj> nodes: {
${obj.getName()?lower_case}: { <#if ctrl.getPSDETreeNodes()??>
caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>, <#list ctrl.getPSDETreeNodes() as obj>
tip: commonLogic.appcommonhandle("<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",null), <#if obj.getTreeNodeType() == 'STATIC'>
}, ${obj.getNodeType()?lower_case}: commonLogic.appcommonhandle("<@getNameLanguage obj langrestype />",null),
</#list> </#if>
</#if> </#list>
</#if>
},
</#if>
<#if ctrl.getControlType() == 'TOOLBAR'>
<#if ctrl.getAllPSDEToolbarItems()??>
<#list ctrl.getAllPSDEToolbarItems() as obj>
${obj.getName()?lower_case}: {
caption: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
tip: commonLogic.appcommonhandle("<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",null),
},
</#list>
</#if> </#if>
<#-- 部件界面行为 --> </#if>
<#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??> <#-- 部件界面行为 -->
uiactions: { <#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??>
<#list ctrl.getPSUIActions() as obj> uiactions: {
<#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>, <#list ctrl.getPSUIActions() as obj>
</#list> <#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: <#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>,
</#list>
},
</#if>
}, },
</#if> </#if>
}, </#if>
</#if> </#list>
</#if> </#list>
</#list> </#if>
</#list> };
</#if> return data;
}; }
\ No newline at end of file export default getLocaleResourceBase;
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册