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

update:视图标题多语言优化

上级 cf60b2a2
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</template> </template>
<template #headerLeft> <template #headerLeft>
<#if view.isShowCaptionBar()> <#if view.isShowCaptionBar()>
<app-caption :openType="openType" :caption="model.srfCaption"></app-caption> <app-caption :openType="openType" :caption="$t(model.srfCaption<#if view.getCaption()??>, '${view.getCaption()}'</#if>)"></app-caption>
</#if> </#if>
</template> </template>
<template #headerRight> <template #headerRight>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<#if (view.isEnableQuickSearch() || view.hasPSControl('toolbar') || view.isEnableQuickGroup() || view.getQuickPSDESearchForm()??)> <#if (view.isEnableQuickSearch() || view.hasPSControl('toolbar') || view.isEnableQuickGroup() || view.getQuickPSDESearchForm()??)>
<template #headerTop> <template #headerTop>
<#if view.isShowCaptionBar()> <#if view.isShowCaptionBar()>
<app-caption v-if="openType == 'EMBED'" :openType="openType" :caption="model.srfCaption"></app-caption> <app-caption v-if="openType == 'EMBED'" :openType="openType" :caption="$t(model.srfCaption<#if view.getCaption()??>, '${view.getCaption()}'</#if>)"></app-caption>
</#if> </#if>
<#if view.hasPSControl('toolbar')> <#if view.hasPSControl('toolbar')>
<@ibizindent blank=8> <@ibizindent blank=8>
......
...@@ -186,9 +186,9 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -186,9 +186,9 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public model: any = { public model: any = {
srfCaption: <#if view.getCapPSLanguageRes()??>this.$t('${view.getCapPSLanguageRes().getLanResTag()}','<#if view.getCaption()??>${view.getCaption()}</#if>')<#else>'<#if view.getCaption()??>${view.getCaption()}</#if>'</#if>, srfCaption: '<#if view.getCapPSLanguageRes()??>${view.getCapPSLanguageRes().getLanResTag()}<#else><#if view.getCaption()??>${view.getCaption()}</#if></#if>',
srfTitle: <#if view.getTitlePSLanguageRes()??>this.$t('${view.getTitlePSLanguageRes().getLanResTag()}','<#if view.getTitle()??>${view.getTitle()}</#if>')<#else>'<#if view.getTitle()??>${view.getTitle()}</#if>'</#if>, srfTitle: '<#if view.getTitlePSLanguageRes()??>${view.getTitlePSLanguageRes().getLanResTag()}<#else><#if view.getTitle()??>${view.getTitle()}</#if></#if>',
srfSubTitle: <#if view.getSubCapPSLanguageRes()??>this.$t('${view.getSubCapPSLanguageRes().getLanResTag()}','<#if view.getSubCaption()??>${view.getSubCaption()}</#if>')<#else>'<#if view.getSubCaption()??>${view.getSubCaption()}</#if>'</#if>, srfSubTitle: '<#if view.getSubCapPSLanguageRes()??>${view.getSubCapPSLanguageRes().getLanResTag()}<#else><#if view.getSubCaption()??>${view.getSubCaption()}</#if></#if>',
dataInfo: '' dataInfo: ''
} }
......
...@@ -241,9 +241,9 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -241,9 +241,9 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public model: any = { public model: any = {
srfCaption: <#if view.getCapPSLanguageRes()??>this.$t('${view.getCapPSLanguageRes().getLanResTag()}','<#if view.getCaption()??>${view.getCaption()}</#if>')<#else>'<#if view.getCaption()??>${view.getCaption()}</#if>'</#if>, srfCaption: '<#if view.getCapPSLanguageRes()??>${view.getCapPSLanguageRes().getLanResTag()}<#else><#if view.getCaption()??>${view.getCaption()}</#if></#if>',
srfTitle: <#if view.getTitlePSLanguageRes()??>this.$t('${view.getTitlePSLanguageRes().getLanResTag()}','<#if view.getTitle()??>${view.getTitle()}</#if>')<#else>'<#if view.getTitle()??>${view.getTitle()}</#if>'</#if>, srfTitle: '<#if view.getTitlePSLanguageRes()??>${view.getTitlePSLanguageRes().getLanResTag()}<#else><#if view.getTitle()??>${view.getTitle()}</#if></#if>',
srfSubTitle: <#if view.getSubCapPSLanguageRes()??>this.$t('${view.getSubCapPSLanguageRes().getLanResTag()}','<#if view.getSubCaption()??>${view.getSubCaption()}</#if>')<#else>'<#if view.getSubCaption()??>${view.getSubCaption()}</#if>'</#if>, srfSubTitle: '<#if view.getSubCapPSLanguageRes()??>${view.getSubCapPSLanguageRes().getLanResTag()}<#else><#if view.getSubCaption()??>${view.getSubCaption()}</#if></#if>',
dataInfo: '' dataInfo: ''
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册