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

update:路由多语言

上级 81670bbb
<#macro getRouteViewCaption view> <#macro getRouteViewCaption view>
caption: '${view.getCaption()}',
<#if view.getCapPSLanguageRes?? && view.getCapPSLanguageRes()??> <#if view.getCapPSLanguageRes?? && view.getCapPSLanguageRes()??>
captionLanResTag: '${view.getCapPSLanguageRes().getLanResTag()}', captionLanResTag: '${view.getCapPSLanguageRes().getLanResTag()}',<#t>
</#if> </#if>
</#macro> </#macro>
import Vue from 'vue'; import Vue from 'vue';
...@@ -18,6 +17,7 @@ Vue.use(Router); ...@@ -18,6 +17,7 @@ Vue.use(Router);
{ {
path: '<#if !isIncludeIndex>/</#if>appdataredirectview/:appdataredirectview?', path: '<#if !isIncludeIndex>/</#if>appdataredirectview/:appdataredirectview?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
...@@ -39,6 +39,7 @@ Vue.use(Router); ...@@ -39,6 +39,7 @@ Vue.use(Router);
{ {
path: '<#if !isIncludeIndex>/</#if>appwfdataredirectview/:appwfdataredirectview?', path: '<#if !isIncludeIndex>/</#if>appwfdataredirectview/:appwfdataredirectview?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
...@@ -60,6 +61,7 @@ Vue.use(Router); ...@@ -60,6 +61,7 @@ Vue.use(Router);
{ {
path: '<#if !isIncludeIndex>/</#if>${subView.getViewType()?lower_case}/:${subView.getViewType()?lower_case}?', path: '<#if !isIncludeIndex>/</#if>${subView.getViewType()?lower_case}/:${subView.getViewType()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
...@@ -83,6 +85,7 @@ Vue.use(Router); ...@@ -83,6 +85,7 @@ Vue.use(Router);
{ {
path: '<#if !isIncludeIndex>/</#if>${srfpluralize(subView.getPSAppDataEntity().codeName)?lower_case}/:${subView.getPSAppDataEntity().getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?', path: '<#if !isIncludeIndex>/</#if>${srfpluralize(subView.getPSAppDataEntity().codeName)?lower_case}/:${subView.getPSAppDataEntity().getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
...@@ -106,6 +109,7 @@ Vue.use(Router); ...@@ -106,6 +109,7 @@ Vue.use(Router);
{ {
path: '<#if !isIncludeIndex>/</#if>${subView.getCodeName()?lower_case}/:${subView.getCodeName()?lower_case}?', path: '<#if !isIncludeIndex>/</#if>${subView.getCodeName()?lower_case}/:${subView.getCodeName()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
...@@ -145,6 +149,7 @@ Vue.use(Router); ...@@ -145,6 +149,7 @@ Vue.use(Router);
path: '/${path}${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?', path: '/${path}${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?',
<#-- 嵌入关系路由未设置name属性 --> <#-- 嵌入关系路由未设置name属性 -->
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -169,6 +174,7 @@ Vue.use(Router); ...@@ -169,6 +174,7 @@ Vue.use(Router);
{ {
path: '/${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?', path: '/${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -187,6 +193,7 @@ Vue.use(Router); ...@@ -187,6 +193,7 @@ Vue.use(Router);
{ {
path: '/${subView.getCodeName()?lower_case}/:${subView.getCodeName()?lower_case}?', path: '/${subView.getCodeName()?lower_case}/:${subView.getCodeName()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -228,7 +235,8 @@ const router = new Router({ ...@@ -228,7 +235,8 @@ const router = new Router({
}); });
}, },
meta: { meta: {
caption: '<@getRouteViewCaption view/>', caption: '${subView.getCaption()}',
<@getRouteViewCaption view/>
info:'', info:'',
viewType: 'APPINDEX', viewType: 'APPINDEX',
<#if view.getPSSysImage()??> <#if view.getPSSysImage()??>
...@@ -259,6 +267,7 @@ const router = new Router({ ...@@ -259,6 +267,7 @@ const router = new Router({
{ {
path: '${path}${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?', path: '${path}${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -284,6 +293,7 @@ const router = new Router({ ...@@ -284,6 +293,7 @@ const router = new Router({
{ {
path: '${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?', path: '${srfpluralize(appDataEntity.codeName)?lower_case}/:${appDataEntity.getCodeName()?lower_case}?/${subView.getPSDEViewCodeName()?lower_case}/:${subView.getPSDEViewCodeName()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -303,6 +313,7 @@ const router = new Router({ ...@@ -303,6 +313,7 @@ const router = new Router({
{ {
path: '${subView.getCodeName()?lower_case}/:${subView.getCodeName()?lower_case}?', path: '${subView.getCodeName()?lower_case}/:${subView.getCodeName()?lower_case}?',
meta: { meta: {
caption: '${subView.getCaption()}',
<@getRouteViewCaption subView/> <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册