二级
This commit is contained in:
@@ -68,7 +68,7 @@ export default {
|
||||
title: '提示',
|
||||
message: '您有采购合同待审批,请及时处理,点击查看',
|
||||
onClick: () => {
|
||||
this.$router.push({ path: '/PurchaseContractApproval/index' })
|
||||
this.$router.push({ path: '/PurchasingCenter/PurchaseContractApproval' })
|
||||
setTimeout(this.noticeContract.close(), 1000)
|
||||
},
|
||||
duration: 1000 * 60
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
title: '提示',
|
||||
message: '您有合同请款申请待审批,请及时处理,点击查看',
|
||||
onClick: () => {
|
||||
this.$router.push({ path: '/FundApproval2/index' })
|
||||
this.$router.push({ path: '/PurchasingCenter/FundApproval2' })
|
||||
setTimeout(this.noticeFund.close(), 1000)
|
||||
},
|
||||
duration: 1000 * 60 * 5
|
||||
@@ -105,7 +105,7 @@ export default {
|
||||
title: '提示',
|
||||
message: '您有发票结算申请待审批,请及时处理,点击查看',
|
||||
onClick: () => {
|
||||
this.$router.push({ path: '/InvoiceSettlementApprove/index' })
|
||||
this.$router.push({ path: '/PurchasingCenter/InvoiceSettlementApprove' })
|
||||
setTimeout(this.noticeInvoice.close(), 1000)
|
||||
},
|
||||
duration: 1000 * 60 * 5
|
||||
|
||||
48
src/views/layout/components/Sidebar/SidebarItem2.vue
Normal file
48
src/views/layout/components/Sidebar/SidebarItem2.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<div class="menu-wrapper">
|
||||
<template v-for="item in routes" v-if="!item.hidden&&item.children">
|
||||
<!--一级-->
|
||||
<router-link v-if="item.children.length===1 && !item.children[0].children" :to="item.path+'/'+item.children[0].path" :key="item.children[0].name">
|
||||
<el-menu-item :index="item.path+'/'+item.children[0].path" :class="{'submenu-title-noDropdown':!isNest}">
|
||||
<svg-icon v-if="item.children[0].meta&&item.children[0].meta.icon" :icon-class="item.children[0].meta.icon"/>
|
||||
<span v-if="item.children[0].meta&&item.children[0].meta.title">{{ item.children[0].meta.title }}</span>
|
||||
</el-menu-item>
|
||||
</router-link>
|
||||
<!--二级-->
|
||||
<el-submenu v-else :index="item.name||item.path" :key="item.name">
|
||||
<template slot="title">
|
||||
<svg-icon v-if="item.meta&&item.meta.icon" :icon-class="item.meta.icon"/>
|
||||
<span v-if="item.meta&&item.meta.title">{{ item.meta.title }}</span>
|
||||
</template>
|
||||
|
||||
<template v-for="child in item.children" v-if="!child.hidden">
|
||||
<sidebar-item v-if="child.children&&child.children.length>0" :routes="[child]" :key="child.path" :is-nest="true" class="nest-menu"/>
|
||||
<router-link v-else :to="item.path+child.path" :key="child.name">
|
||||
<el-menu-item :index="item.path+'/'+child.path">
|
||||
<svg-icon v-if="child.meta&&child.meta.icon" :icon-class="child.meta.icon"/>
|
||||
<span v-if="child.meta&&child.meta.title">{{ child.meta.title }}</span>
|
||||
{{ item.path+'/'+child.path }}
|
||||
</el-menu-item>
|
||||
</router-link>
|
||||
</template>
|
||||
</el-submenu>
|
||||
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'SidebarItem',
|
||||
props: {
|
||||
routes: {
|
||||
type: Array,
|
||||
default: null
|
||||
},
|
||||
isNest: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user