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

update:路由国际化

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