v1.9 业务受理没有加入权限控制的bug

This commit is contained in:
wuxw 2025-11-06 19:52:52 +08:00
parent e0626fd044
commit 050d35a0c7

View File

@ -3,11 +3,13 @@
<!-- 顶部导航 --> <!-- 顶部导航 -->
<el-header height="60px" class="app-header"> <el-header height="60px" class="app-header">
<div class="header-left"> <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" <el-menu mode="horizontal" :default-active="activeMenu" class="header-menu" background-color="#1e2132"
text-color="#fff" active-text-color="#409EFF"> text-color="#fff" active-text-color="#409EFF">
<el-menu-item :index="item.caId" v-for="(item, index) in catalogs" :key="index" <template v-for="(item, index) in catalogs">
@click="_changeMenuCatalog(item, true)">{{ item.name }}</el-menu-item> <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> </el-menu>
</div> </div>
<div class="header-right"> <div class="header-right">
@ -19,7 +21,7 @@
<el-dropdown-menu slot="dropdown"> <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="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 command="moreCommunity" class="moreCommunity">{{ $t('layout.moreCommunity')
}}</el-dropdown-item> }}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<el-dropdown @command="handleCommand"> <el-dropdown @command="handleCommand">
@ -31,7 +33,7 @@
<el-dropdown-item command="logout">{{ $t('layout.logout') }}</el-dropdown-item> <el-dropdown-item command="logout">{{ $t('layout.logout') }}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<span class="margin-left">{{systemInfo.version}}</span> <span class="margin-left">{{ systemInfo.version }}</span>
</div> </div>
</el-header> </el-header>
@ -79,13 +81,13 @@
<script> <script>
import { _getMenuCatalog, getMenuTree, jumpToMall, jumpToIot } from '@/api/user/menuApi' import { _getMenuCatalog, getMenuTree, jumpToMall, jumpToIot } from '@/api/user/menuApi'
import { getStoreInfo } from "@/api/user/indexApi" 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 { deepCopy, setCurrentCommunity } from "@/utils/vc"
import { getCommunityName, _loadCommunityInfo } from '@/api/community/communityApi' import { getCommunityName, _loadCommunityInfo } from '@/api/community/communityApi'
import moreCommunity from '@/components/community/moreCommunity.vue' import moreCommunity from '@/components/community/moreCommunity.vue'
import viewMenuUserList from '@/components/system/viewMenuUserList.vue' import viewMenuUserList from '@/components/system/viewMenuUserList.vue'
import searchCommunityDataList from '@/components/system/searchCommunityDataList.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' import config from '@/conf/config'
@ -221,7 +223,7 @@ export default {
} }
setCurrentCommunity(community); setCurrentCommunity(community);
this.curCommunityName = getCommunityName() this.curCommunityName = getCommunityName()
window.location.href="/" window.location.href = "/"
}, },
handleMenuSelect(index) { handleMenuSelect(index) {
// //
@ -313,10 +315,10 @@ export default {
} }
return false; return false;
}, },
_toIndex(){ _toIndex() {
location.href = '/' location.href = '/'
}, },
_closeSubMenu(){ _closeSubMenu() {
this.subMenus = [] this.subMenus = []
this.curMenuName = '' this.curMenuName = ''
} }