mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 业务受理没有加入权限控制的bug
This commit is contained in:
parent
e0626fd044
commit
050d35a0c7
@ -3,11 +3,13 @@
|
||||
<!-- 顶部导航 -->
|
||||
<el-header height="60px" class="app-header">
|
||||
<div class="header-left">
|
||||
<div class="logo" @click="_toIndex">{{systemInfo.systemSimpleTitle}}</div>
|
||||
<div class="logo" @click="_toIndex">{{ systemInfo.systemSimpleTitle }}</div>
|
||||
<el-menu mode="horizontal" :default-active="activeMenu" class="header-menu" background-color="#1e2132"
|
||||
text-color="#fff" active-text-color="#409EFF">
|
||||
<el-menu-item :index="item.caId" v-for="(item, index) in catalogs" :key="index"
|
||||
@click="_changeMenuCatalog(item, true)">{{ item.name }}</el-menu-item>
|
||||
<template v-for="(item, index) in catalogs">
|
||||
<el-menu-item :index="item.caId" v-if="!item.privId || hasPrivilege(item.privId)" :key="index"
|
||||
@click="_changeMenuCatalog(item, true)">{{ item.name }}</el-menu-item>
|
||||
</template>
|
||||
</el-menu>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
@ -19,7 +21,7 @@
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="c" v-for="(c, index) in communitys" :key="index">{{ c.name }}</el-dropdown-item>
|
||||
<el-dropdown-item command="moreCommunity" class="moreCommunity">{{ $t('layout.moreCommunity')
|
||||
}}</el-dropdown-item>
|
||||
}}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<el-dropdown @command="handleCommand">
|
||||
@ -31,7 +33,7 @@
|
||||
<el-dropdown-item command="logout">{{ $t('layout.logout') }}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<span class="margin-left">{{systemInfo.version}}</span>
|
||||
<span class="margin-left">{{ systemInfo.version }}</span>
|
||||
|
||||
</div>
|
||||
</el-header>
|
||||
@ -79,13 +81,13 @@
|
||||
<script>
|
||||
import { _getMenuCatalog, getMenuTree, jumpToMall, jumpToIot } from '@/api/user/menuApi'
|
||||
import { getStoreInfo } from "@/api/user/indexApi"
|
||||
import {listSystemInfo} from '@/api/system/systemInfoManageApi'
|
||||
import { listSystemInfo } from '@/api/system/systemInfoManageApi'
|
||||
import { deepCopy, setCurrentCommunity } from "@/utils/vc"
|
||||
import { getCommunityName, _loadCommunityInfo } from '@/api/community/communityApi'
|
||||
import moreCommunity from '@/components/community/moreCommunity.vue'
|
||||
import viewMenuUserList from '@/components/system/viewMenuUserList.vue'
|
||||
import searchCommunityDataList from '@/components/system/searchCommunityDataList.vue'
|
||||
import {initSystem} from '@/api/util/vcApi'
|
||||
import { initSystem } from '@/api/util/vcApi'
|
||||
import config from '@/conf/config'
|
||||
|
||||
|
||||
@ -221,7 +223,7 @@ export default {
|
||||
}
|
||||
setCurrentCommunity(community);
|
||||
this.curCommunityName = getCommunityName()
|
||||
window.location.href="/"
|
||||
window.location.href = "/"
|
||||
},
|
||||
handleMenuSelect(index) {
|
||||
// 处理菜单选择
|
||||
@ -313,10 +315,10 @@ export default {
|
||||
}
|
||||
return false;
|
||||
},
|
||||
_toIndex(){
|
||||
_toIndex() {
|
||||
location.href = '/'
|
||||
},
|
||||
_closeSubMenu(){
|
||||
_closeSubMenu() {
|
||||
this.subMenus = []
|
||||
this.curMenuName = ''
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user