【修改bug】删除记录路由的
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<MenuItem :key="item.id" v-for="(item, index) in menuData" :menuItemData="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)"
|
||||
:style="{'padding-left': item.level >= 2 ? '30px' : '10px'}">
|
||||
<div class="menu-data-flex">
|
||||
@@ -17,7 +17,7 @@
|
||||
<!-- 有children的子菜单 -->
|
||||
<template v-else>
|
||||
<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)">
|
||||
<div class="menu-data"
|
||||
:class="item.level === 1 ? 'bor-b' : ''"
|
||||
|
||||
@@ -2,9 +2,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<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>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -32,6 +36,17 @@ export default {
|
||||
}
|
||||
},
|
||||
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: {
|
||||
},
|
||||
@@ -59,4 +74,19 @@ export default {
|
||||
.processnum{
|
||||
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>
|
||||
|
||||
@@ -349,14 +349,16 @@ export default {
|
||||
}
|
||||
}
|
||||
.back{
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: #1890FF;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 45px;
|
||||
font-size: 30px;
|
||||
border-radius: 50%;
|
||||
//text-align: center;
|
||||
line-height: 30px;
|
||||
font-size: 25px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user