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

update:路由国际化

上级 c0feb07e
<#macro getRouteViewCaption view> <#macro getRouteViewCaption view>
<#if view.getCapPSLanguageRes?? && view.getCapPSLanguageRes()??> caption: '${view.getCaption()}',
${view.getCapPSLanguageRes().getLanResTag()}<#t> <#if view.getCapPSLanguageRes?? && view.getCapPSLanguageRes()??>
<#else> captionLanResTag: '${view.getCapPSLanguageRes().getLanResTag()}',
${view.getCaption()}<#t> </#if>
</#if>
</#macro> </#macro>
import Vue from 'vue'; import Vue from 'vue';
import Router from 'vue-router'; import Router from 'vue-router';
...@@ -19,7 +18,7 @@ Vue.use(Router); ...@@ -19,7 +18,7 @@ Vue.use(Router);
{ {
path: '<#if !isIncludeIndex>/</#if>appdataredirectview/:appdataredirectview?', path: '<#if !isIncludeIndex>/</#if>appdataredirectview/:appdataredirectview?',
meta: { meta: {
caption: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -40,7 +39,7 @@ Vue.use(Router); ...@@ -40,7 +39,7 @@ Vue.use(Router);
{ {
path: '<#if !isIncludeIndex>/</#if>appwfdataredirectview/:appwfdataredirectview?', path: '<#if !isIncludeIndex>/</#if>appwfdataredirectview/:appwfdataredirectview?',
meta: { meta: {
caption: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -61,7 +60,7 @@ Vue.use(Router); ...@@ -61,7 +60,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -84,7 +83,7 @@ Vue.use(Router); ...@@ -84,7 +83,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -107,7 +106,7 @@ Vue.use(Router); ...@@ -107,7 +106,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
viewType: 'REDIRECTVIEW', viewType: 'REDIRECTVIEW',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
...@@ -146,7 +145,7 @@ Vue.use(Router); ...@@ -146,7 +145,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
imgPath: '${subView.getPSSysImage().getImagePath()}', imgPath: '${subView.getPSSysImage().getImagePath()}',
...@@ -170,7 +169,7 @@ Vue.use(Router); ...@@ -170,7 +169,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
imgPath: '${subView.getPSSysImage().getImagePath()}', imgPath: '${subView.getPSSysImage().getImagePath()}',
...@@ -188,7 +187,7 @@ Vue.use(Router); ...@@ -188,7 +187,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
imgPath: '${subView.getPSSysImage().getImagePath()}', imgPath: '${subView.getPSSysImage().getImagePath()}',
...@@ -260,7 +259,7 @@ const router = new Router({ ...@@ -260,7 +259,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
imgPath: '${subView.getPSSysImage().getImagePath()}', imgPath: '${subView.getPSSysImage().getImagePath()}',
...@@ -285,7 +284,7 @@ const router = new Router({ ...@@ -285,7 +284,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
imgPath: '${subView.getPSSysImage().getImagePath()}', imgPath: '${subView.getPSSysImage().getImagePath()}',
...@@ -304,7 +303,7 @@ const router = new Router({ ...@@ -304,7 +303,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: '<@getRouteViewCaption subView/>', <@getRouteViewCaption subView/>
info:'', info:'',
<#if subView.getPSSysImage()??> <#if subView.getPSSysImage()??>
imgPath: '${subView.getPSSysImage().getImagePath()}', imgPath: '${subView.getPSSysImage().getImagePath()}',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册