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

调整导航部分内容

上级 0985de7c
...@@ -151,10 +151,6 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -151,10 +151,6 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
*/ */
protected click(item: any) { protected click(item: any) {
if (item) { if (item) {
let navDataService = NavDataService.getInstance(this.$store);
if(Object.is(this.navModel,"route")){
navDataService.removeNavData(this.viewtag);
}
switch (item.appfunctag) { switch (item.appfunctag) {
<#if ctrl.getPSAppFuncs()??> <#if ctrl.getPSAppFuncs()??>
<#assign appFuncs = ctrl.getPSAppFuncs()> <#assign appFuncs = ctrl.getPSAppFuncs()>
......
...@@ -13,15 +13,6 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -13,15 +13,6 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
../@MACRO/CONTROL/CONTROL_HEADER-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_HEADER-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
/**
* 视图默认使用
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Inject('navModel')
public navModel!:string;
/** /**
* 工作流审批意见控件绑定值 * 工作流审批意见控件绑定值
* *
......
...@@ -178,15 +178,6 @@ import { Environment } from '@/environments/environment'; ...@@ -178,15 +178,6 @@ import { Environment } from '@/environments/environment';
*/ */
@Prop() public width?: number; @Prop() public width?: number;
/**
* 视图默认使用
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Inject('navModel')
public navModel!:string;
<#if ctrl.getPortletType() == 'ACTIONBAR'> <#if ctrl.getPortletType() == 'ACTIONBAR'>
/** /**
* 操作栏模型数据 * 操作栏模型数据
......
...@@ -33,9 +33,6 @@ import view_${ctrl.getName()} from '@widgets/app/${srffilepath2(ctrl.getCodeName ...@@ -33,9 +33,6 @@ import view_${ctrl.getName()} from '@widgets/app/${srffilepath2(ctrl.getCodeName
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag }); vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
}); });
}, },
......
...@@ -147,12 +147,6 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -147,12 +147,6 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
} }
}) })
} }
if(Object.is(this.navModel,"tab")){
this.navDataService.removeNavDataByTag(this.viewtag);
}
if (this.serviceStateEvent) {
this.serviceStateEvent.unsubscribe();
}
} }
</#if> </#if>
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册