|
@@ -9,20 +9,20 @@
|
|
|
<el-menu :unique-opened="true" class="layout-menu-inner" :collapse="isCollapse" :default-active="menuActive+''">
|
|
<el-menu :unique-opened="true" class="layout-menu-inner" :collapse="isCollapse" :default-active="menuActive+''">
|
|
|
<template v-for="(route,index) in menuRouter">
|
|
<template v-for="(route,index) in menuRouter">
|
|
|
<template v-if="!route.meta.hidden">
|
|
<template v-if="!route.meta.hidden">
|
|
|
- <el-submenu :index="index+''" v-if="route.children" :key="route.path">
|
|
|
|
|
|
|
+ <el-submenu v-if="route.children" :key="route.path" :index="index+''">
|
|
|
<template slot="title">
|
|
<template slot="title">
|
|
|
- <i :class="[route.meta.icon,'icon']"></i>
|
|
|
|
|
|
|
+ <i :class="[route.meta.icon,'icon']" />
|
|
|
<span slot="title">{{ route.meta.title }}</span>
|
|
<span slot="title">{{ route.meta.title }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-for="(item,subIndex) in route.children">
|
|
<template v-for="(item,subIndex) in route.children">
|
|
|
- <el-menu-item v-if="!item.meta.hidden" :index="index+'-'+subIndex" @click="goto(item)" :key="item.path">
|
|
|
|
|
- <i :class="[item.meta.icon,'icon']"></i>
|
|
|
|
|
|
|
+ <el-menu-item v-if="!item.meta.hidden" :key="item.path" :index="index+'-'+subIndex" @click="goto(item)">
|
|
|
|
|
+ <i :class="[item.meta.icon,'icon']" />
|
|
|
<span slot="title">{{ item.meta.title }}</span>
|
|
<span slot="title">{{ item.meta.title }}</span>
|
|
|
</el-menu-item>
|
|
</el-menu-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-submenu>
|
|
</el-submenu>
|
|
|
- <el-menu-item v-else :index="index+''" @click="goto(route)" :key="route.path">
|
|
|
|
|
- <i :class="[route.meta.icon,'icon']"></i>
|
|
|
|
|
|
|
+ <el-menu-item v-else :key="route.path" :index="index+''" @click="goto(route)">
|
|
|
|
|
+ <i :class="[route.meta.icon,'icon']" />
|
|
|
<span slot="title">{{ route.meta.title }}</span>
|
|
<span slot="title">{{ route.meta.title }}</span>
|
|
|
</el-menu-item>
|
|
</el-menu-item>
|
|
|
</template>
|
|
</template>
|
|
@@ -33,9 +33,9 @@
|
|
|
<div class="layout-right">
|
|
<div class="layout-right">
|
|
|
<div class="layout-breadcrumb">
|
|
<div class="layout-breadcrumb">
|
|
|
<div :class="['icon',isCollapse?'collapse':'']" @click="$emit('changeCollapse')">
|
|
<div :class="['icon',isCollapse?'collapse':'']" @click="$emit('changeCollapse')">
|
|
|
- <div class="icon-1"></div>
|
|
|
|
|
- <div class="icon-2"></div>
|
|
|
|
|
- <div class="icon-3"></div>
|
|
|
|
|
|
|
+ <div class="icon-1" />
|
|
|
|
|
+ <div class="icon-2" />
|
|
|
|
|
+ <div class="icon-3" />
|
|
|
</div>
|
|
</div>
|
|
|
<el-breadcrumb class="breadcrumb" separator="/">
|
|
<el-breadcrumb class="breadcrumb" separator="/">
|
|
|
<el-breadcrumb-item v-for="item in breadcrumb" :key="item.path">
|
|
<el-breadcrumb-item v-for="item in breadcrumb" :key="item.path">
|
|
@@ -43,21 +43,21 @@
|
|
|
</el-breadcrumb-item>
|
|
</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
|
<div class="packet">
|
|
<div class="packet">
|
|
|
- <div class="item" @click="$bus.$emit('showPacket',true)" v-if="user.permission.includes('expo_invitation_management')">
|
|
|
|
|
- <span class="el-icon-star-off"></span>
|
|
|
|
|
|
|
+ <div v-if="packetData.invitation" class="item" @click="$bus.$emit('showPacket',true)">
|
|
|
|
|
+ <span class="el-icon-star-off" />
|
|
|
邀请函
|
|
邀请函
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="item lock" @click="$bus.$emit('showPacket',true)" v-else>
|
|
|
|
|
- <span class="el-icon-lock"></span>
|
|
|
|
|
|
|
+ <div v-else class="item lock" @click="$bus.$emit('showPacket',true)">
|
|
|
|
|
+ <span class="el-icon-lock" />
|
|
|
邀请函
|
|
邀请函
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="item" @click="$bus.$emit('showPacket',true)" v-if="user.permission.includes('expo_management')">
|
|
|
|
|
- <span class="el-icon-star-off"></span>
|
|
|
|
|
|
|
+ <div v-if="packetData.expo" class="item" @click="$bus.$emit('showPacket',true)">
|
|
|
|
|
+ <span class="el-icon-star-off" />
|
|
|
预登记
|
|
预登记
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="item lock" @click="$bus.$emit('showPacket',true)" v-else>
|
|
|
|
|
- <span class="el-icon-lock"></span>
|
|
|
|
|
|
|
+ <div v-else class="item lock" @click="$bus.$emit('showPacket',true)">
|
|
|
|
|
+ <span class="el-icon-lock" />
|
|
|
预登记
|
|
预登记
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -69,12 +69,12 @@
|
|
|
<div class="nick-name">
|
|
<div class="nick-name">
|
|
|
{{ this.user.nickname }}
|
|
{{ this.user.nickname }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div @click="goto({name:'systemSetting'})" class="button">
|
|
|
|
|
- <span class="el-icon-setting"></span>
|
|
|
|
|
|
|
+ <div class="button" @click="goto({name:'systemSetting'})">
|
|
|
|
|
+ <span class="el-icon-setting" />
|
|
|
系统设置
|
|
系统设置
|
|
|
</div>
|
|
</div>
|
|
|
- <div @click="logout" class="button">
|
|
|
|
|
- <span class="el-icon-switch-button"></span>
|
|
|
|
|
|
|
+ <div class="button" @click="logout">
|
|
|
|
|
+ <span class="el-icon-switch-button" />
|
|
|
退出登录
|
|
退出登录
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -82,7 +82,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="layout-body">
|
|
<div class="layout-body">
|
|
|
<div class="body-inner" :class="{'animation':isAnimation}">
|
|
<div class="body-inner" :class="{'animation':isAnimation}">
|
|
|
- <router-view @completion-init="$emit('completionInit')" :is-completion-init="isCompletionInit" class="view-inner" />
|
|
|
|
|
|
|
+ <router-view :is-completion-init="isCompletionInit" class="view-inner" @completion-init="$emit('completionInit')" />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="body-inner trans" :class="{'animation':isAnimation}" />
|
|
<div class="body-inner trans" :class="{'animation':isAnimation}" />
|
|
|
</div>
|
|
</div>
|
|
@@ -104,7 +104,11 @@ export default {
|
|
|
],
|
|
],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- packet: {}
|
|
|
|
|
|
|
+ packet: {},
|
|
|
|
|
+ packetData: {
|
|
|
|
|
+ invitation: false,
|
|
|
|
|
+ expo: false
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -115,13 +119,22 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getPacket() {
|
|
getPacket() {
|
|
|
- let appList = this.user.app_list
|
|
|
|
|
- console.log(appList)
|
|
|
|
|
- appList.forEach(item => {
|
|
|
|
|
- if (item.app_code === 'EXPOREG') {
|
|
|
|
|
- this.packet = item
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ const appList = this.user.app_list
|
|
|
|
|
+ appList.forEach(item => {
|
|
|
|
|
+ if (item.app_code === 'EXPOREG') {
|
|
|
|
|
+ this.packet = item
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ const permissions = this.user.permission
|
|
|
|
|
+ if (permissions.includes('expo_invitation_management')) {
|
|
|
|
|
+ this.packetData.invitation = true
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ if (permissions.includes('expo_management')) {
|
|
|
|
|
+ this.packetData.expo = true
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
logout() {
|
|
logout() {
|
|
|
this.$confirm('确定要退出吗?', {
|
|
this.$confirm('确定要退出吗?', {
|