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

首页导航模式

上级 a227a4f9
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<#if ctrl.render??> <#if ctrl.render??>
${ctrl.render.code} ${ctrl.render.code}
<#else> <#else>
<div v-for = "item in items" :key="item.srfmajortext" :class="['app-list-item', {'isSelect': item.isselected === true ? true : false}]" @click="handleClick(item)" @dblclick="handleDblClick(item)"> <div v-for = "item in items" :key="item.srfkey" :class="['app-list-item', {'isSelect': item.isselected === true ? true : false}]" @click="handleClick(item)" @dblclick="handleDblClick(item)">
<#if ctrl.getItemPSLayoutPanel()??> <#if ctrl.getItemPSLayoutPanel()??>
<#assign panel = ctrl.getItemPSLayoutPanel()> <#assign panel = ctrl.getItemPSLayoutPanel()>
<@ibizindent blank=16> <@ibizindent blank=16>
......
...@@ -485,7 +485,11 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -485,7 +485,11 @@ import NavDataService from '@/service/app/navdata-service';
public click(item: any) { public click(item: any) {
if (item) { if (item) {
let navDataService = NavDataService.getInstance(this.$store); let navDataService = NavDataService.getInstance(this.$store);
if(Object.is(this.navModel,"route")){
navDataService.removeNavData(this.viewtag); navDataService.removeNavData(this.viewtag);
}else{
navDataService.removeNavDataWithoutCache(this.viewtag);
}
switch (item.appfunctag) { switch (item.appfunctag) {
<#if ctrl.getPSAppFuncs()??> <#if ctrl.getPSAppFuncs()??>
<#assign appFuncs = ctrl.getPSAppFuncs()> <#assign appFuncs = ctrl.getPSAppFuncs()>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<div class="page-logo"> <div class="page-logo">
<i v-show="!collapseChange" class="ivu-icon el-icon-s-fold" @click="handleClick"></i> <i v-show="!collapseChange" class="ivu-icon el-icon-s-fold" @click="handleClick"></i>
<i v-show="collapseChange" class="ivu-icon el-icon-s-unfold" @click="handleClick"></i> <i v-show="collapseChange" class="ivu-icon el-icon-s-unfold" @click="handleClick"></i>
<app-breadcrumb v-if="Object.is(navModel,'route')" indexViewTag="${srffilepath2(view.getCodeName())}"></app-breadcrumb> <app-breadcrumb :navModel="navModel" indexViewTag="${srffilepath2(view.getCodeName())}"></app-breadcrumb>
</div> </div>
</div> </div>
<div class="header-right" style="display: flex;align-items: center;justify-content: space-between;"> <div class="header-right" style="display: flex;align-items: center;justify-content: space-between;">
......
...@@ -49,7 +49,7 @@ public click${item.codeName}(item: any = {}) { ...@@ -49,7 +49,7 @@ public click${item.codeName}(item: any = {}) {
<#-- END:准备参数 --> <#-- END:准备参数 -->
<#if dataview.getOpenMode() == 'INDEXVIEWTAB' || dataview.getOpenMode() == ''> <#if dataview.getOpenMode() == 'INDEXVIEWTAB' || dataview.getOpenMode() == ''>
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.path,path)){ if(Object.is(this.$route.fullPath,path)){
return; return;
} }
this.$nextTick(function(){ this.$nextTick(function(){
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public navModel:string = "route"; public navModel:string = "<#if view.getViewStyle() == "DEFAULT">tab<#else>route</#if>";
/** /**
* 抽屉状态 * 抽屉状态
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册