提交 90afee67 编写于 作者: tony001's avatar tony001

首页导航模式 --- fix10

上级 4ebdecf8
...@@ -125,9 +125,11 @@ ...@@ -125,9 +125,11 @@
}); });
}); });
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams); this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
<#if appde??>
if(inputvalue){ if(inputvalue){
Object.assign(this.context,{'${appde.getCodeName()?lower_case}':inputvalue}); Object.assign(this.context,{'${appde.getCodeName()?lower_case}':inputvalue});
} }
</#if>
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){ if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context); Object.assign(this.context,this.$store.getters.getAppData().context);
} }
...@@ -226,7 +228,7 @@ ...@@ -226,7 +228,7 @@
*/ */
public initNavData(data:any = null){ public initNavData(data:any = null){
if(this.viewDefaultUsage){ if(this.viewDefaultUsage){
this.navDataService.addNavData({id:'${srffilepath2(view.getCodeName())}',srfkey:this.context.${appde.getCodeName()?lower_case},title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath}); this.navDataService.addNavData({id:'${srffilepath2(view.getCodeName())}',srfkey:<#if appde??>this.context.${appde.getCodeName()?lower_case}<#else>null</#if>,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册