提交 f1e789b8 编写于 作者: KK's avatar KK

分页面板导航参数调整

上级 7c55fb53
<#ibizinclude>../../@NAVPARAMS/FUNC/PUBLIC.vue.ftl</#ibizinclude>
<#ibizinclude> <#ibizinclude>
./CONTROL-BASE.template.ftl ./CONTROL-BASE.template.ftl
</#ibizinclude> </#ibizinclude>
...@@ -12,7 +13,7 @@ ...@@ -12,7 +13,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: {} }) protected panelNavParam?: any; public panelNavParam= <@getNavigateParams ctrl />;
/** /**
* 面板导航上下文 * 面板导航上下文
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: {} }) protected panelNavContext?: any; public panelNavContext= <@getNavigateContext ctrl />;
/** /**
* 获取多项数据 * 获取多项数据
......
<#ibizinclude>../../@NAVPARAMS/FUNC/PUBLIC.vue.ftl</#ibizinclude>
<#assign content>
:panelNavParam= '<@getNavigateParams ctrl />'
:panelNavContext= '<@getNavigateContext ctrl />'
</#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl ../@MACRO/HTML/DEFAULT.html.ftl
</#ibizinclude> </#ibizinclude>
\ No newline at end of file
...@@ -118,22 +118,6 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -118,22 +118,6 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
*/ */
protected navParam: any = {<#if view.getPSAppViewNavParams?? && view.getPSAppViewNavParams()??> <#list view.getPSAppViewNavParams() as param>'${param.getKey()?lower_case}': '<#if param.isRawValue()>${param.getValue()}<#else>%${param.getValue()}%</#if>'<#if param_has_next>, </#if></#list> </#if>}; protected navParam: any = {<#if view.getPSAppViewNavParams?? && view.getPSAppViewNavParams()??> <#list view.getPSAppViewNavParams() as param>'${param.getKey()?lower_case}': '<#if param.isRawValue()>${param.getValue()}<#else>%${param.getValue()}%</#if>'<#if param_has_next>, </#if></#list> </#if>};
/**
* 面板导航参数
*
* @type {*}
* @memberof ${srfclassname('${view.name}')}Base
*/
@Prop({ default: ()=> {} }) protected panelNavParam?: any;
/**
* 面板导航上下文
*
* @type {*}
* @memberof ${srfclassname('${view.name}')}Base
*/
@Prop({ default: ()=> {} }) protected panelNavContext?: any;
/** /**
* 视图模型数据 * 视图模型数据
* *
...@@ -225,8 +209,7 @@ ${P.getCtrlCode(ctrl, 'CONTROL.vue').code} ...@@ -225,8 +209,7 @@ ${P.getCtrlCode(ctrl, 'CONTROL.vue').code}
*/ */
protected parseViewParam(): void { protected parseViewParam(): void {
const { context, viewparams } = this.$viewTool.parseViewData(this, ${view.isPSDEView()?c}); const { context, viewparams } = this.$viewTool.parseViewData(this, ${view.isPSDEView()?c});
const { context:navContext, param: navParam } = this.$viewTool.formatNavigateParam({ context: this.panelNavContext, param: this.panelNavParam }, this.context, this.viewparams, {}); this.context = { ...this.context, ...context };
this.context = { ...this.context, ...context, ...navContext };
this.viewparams = { ...this.viewparams, ...viewparams } this.viewparams = { ...this.viewparams, ...viewparams }
} }
<#-- 移动端参数:BEGIN --> <#-- 移动端参数:BEGIN -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册