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

update:路由多语言

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