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

update: 视图标题多语言

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