【修改bug】删除记录路由的
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<MenuItem :key="item.id" v-for="(item, index) in menuData" :menuItemData="item">
|
<MenuItem :key="item.id" v-for="(item, index) in menuData" :menuItemData="item">
|
||||||
<!-- 没有children的子菜单 -->
|
<!-- 没有children的子菜单 -->
|
||||||
<template v-if="!item.children">
|
<template v-if="!item.children">
|
||||||
<div class="menu-content" :class="{'active': item.href.indexOf($route.path) !== -1 || (item.href==$store.state.pathUrl)}">
|
<div class="menu-content" :class="{'active': item.href.indexOf($route.path) !== -1 }">
|
||||||
<div class="menu-data" @click="handleRouter(item)"
|
<div class="menu-data" @click="handleRouter(item)"
|
||||||
:style="{'padding-left': item.level >= 2 ? '30px' : '10px'}">
|
:style="{'padding-left': item.level >= 2 ? '30px' : '10px'}">
|
||||||
<div class="menu-data-flex">
|
<div class="menu-data-flex">
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<!-- 有children的子菜单 -->
|
<!-- 有children的子菜单 -->
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="menu-content"
|
<div class="menu-content"
|
||||||
:class="{'active': item.href.indexOf($route.path) !== -1 || (item.href==$store.state.pathUrl), 'is-collage': !item.isCollage}"
|
:class="{'active': item.href.indexOf($route.path) !== -1 , 'is-collage': !item.isCollage}"
|
||||||
@click="collageMenu(item)">
|
@click="collageMenu(item)">
|
||||||
<div class="menu-data"
|
<div class="menu-data"
|
||||||
:class="item.level === 1 ? 'bor-b' : ''"
|
:class="item.level === 1 ? 'bor-b' : ''"
|
||||||
|
|||||||
@@ -2,9 +2,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="prc-header-wrap">
|
<div class="prc-header-wrap">
|
||||||
<div class="processtitle">{{title}}</div>
|
<div class="processtitle">
|
||||||
|
<span class="back" title="返回" @click="back"><i class="el-icon-back" ></i>
|
||||||
|
</span>
|
||||||
|
{{title}}</div>
|
||||||
<div class="processnum" v-if="proceesNum">流程编号:{{proceesNum}}</div>
|
<div class="processnum" v-if="proceesNum">流程编号:{{proceesNum}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -32,6 +36,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
back(){
|
||||||
|
let index=''
|
||||||
|
if(this.$route.query.isDraft){
|
||||||
|
index='five'
|
||||||
|
}
|
||||||
|
if(this.$route.query.type){
|
||||||
|
index='second'
|
||||||
|
}
|
||||||
|
this.$store.commit('setActiveTabIndex',index)
|
||||||
|
this.$router.back(-1)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
},
|
},
|
||||||
@@ -59,4 +74,19 @@ export default {
|
|||||||
.processnum{
|
.processnum{
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
.back{
|
||||||
|
display: inline-block;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
background: #1890FF;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
//text-align: center;
|
||||||
|
line-height: 30px;
|
||||||
|
font-size: 25px;
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: sub;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -349,14 +349,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.back{
|
.back{
|
||||||
width: 45px;
|
width: 30px;
|
||||||
height: 45px;
|
height: 30px;
|
||||||
background: #1890FF;
|
background: #1890FF;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
border-radius: 50%;
|
||||||
line-height: 45px;
|
//text-align: center;
|
||||||
font-size: 30px;
|
line-height: 30px;
|
||||||
|
font-size: 25px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user