|
|
|
@ -1,25 +1,25 @@ |
|
|
|
<template> |
|
|
|
<div class="navbar"> |
|
|
|
<hamburger id="hamburger-container" :is-active="appStore.sidebar.opened" class="hamburger-container" @toggle-click="toggleSideBar" /> |
|
|
|
<hamburger id="hamburger-container" :is-active="appStore.sidebar.opened" class="hamburger-container" |
|
|
|
@toggle-click="toggleSideBar" /> |
|
|
|
<breadcrumb v-if="!settingsStore.topNav" id="breadcrumb-container" class="breadcrumb-container" /> |
|
|
|
<top-nav v-if="settingsStore.topNav" id="topmenu-container" class="topmenu-container" /> |
|
|
|
|
|
|
|
<div class="right-menu flex align-center"> |
|
|
|
<template v-if="appStore.device !== 'mobile'"> |
|
|
|
<el-select |
|
|
|
v-model="currentSystemCode" |
|
|
|
class="min-w-160px mr-8px" |
|
|
|
placeholder="切换菜单组" |
|
|
|
@change="handleSystemCodeChange" |
|
|
|
> |
|
|
|
<el-option v-for="item in permissionStore.visibleSystemCodeOptions" :key="item.value" :label="item.label" :value="item.value"> |
|
|
|
<el-icon style="vertical-align: middle; margin-right: 4px;"><component :is="item.icon" /></el-icon> |
|
|
|
<el-select v-model="currentSystemCode" class="min-w-160px mr-8px" placeholder="切换菜单组" |
|
|
|
@change="handleSystemCodeChange"> |
|
|
|
<el-option v-for="item in permissionStore.visibleSystemCodeOptions" :key="item.value" :label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
<el-icon style="vertical-align: middle; margin-right: 4px;"> |
|
|
|
<component :is="item.icon" /> |
|
|
|
</el-icon> |
|
|
|
<span>{{ item.label }}</span> |
|
|
|
</el-option> |
|
|
|
<template #prefix><svg-icon icon-class="tree-table" class="el-input__icon input-icon" /></template> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<!-- <el-select |
|
|
|
<!-- <el-select |
|
|
|
v-if="userId === 1 && tenantEnabled" |
|
|
|
v-model="companyName" |
|
|
|
class="min-w-244px" |
|
|
|
@ -34,14 +34,14 @@ |
|
|
|
<template #prefix><svg-icon icon-class="company" class="el-input__icon input-icon" /></template> |
|
|
|
</el-select>--> |
|
|
|
|
|
|
|
<!-- <search-menu ref="searchMenuRef" /> |
|
|
|
<!-- <search-menu ref="searchMenuRef" /> |
|
|
|
<el-tooltip content="搜索" effect="dark" placement="bottom"> |
|
|
|
<div class="right-menu-item hover-effect" @click="openSearchMenu"> |
|
|
|
<svg-icon class-name="search-icon" icon-class="search" /> |
|
|
|
</div> |
|
|
|
</el-tooltip>--> |
|
|
|
<!-- 消息 --> |
|
|
|
<!-- <el-tooltip :content="proxy.$t('navbar.message')" effect="dark" placement="bottom"> |
|
|
|
<!-- <el-tooltip :content="proxy.$t('navbar.message')" effect="dark" placement="bottom"> |
|
|
|
<div> |
|
|
|
<el-popover placement="bottom" trigger="click" transition="el-zoom-in-top" :width="300" :persistent="false"> |
|
|
|
<template #reference> |
|
|
|
@ -141,8 +141,11 @@ const handleSystemCodeChange = async (systemCode: string) => { |
|
|
|
await permissionStore.switchSystemCode(systemCode); |
|
|
|
// 非 iframe 模式时跳转到首页并刷新 |
|
|
|
if (!permissionStore.iframeMode) { |
|
|
|
await proxy?.$router.push('/'); |
|
|
|
await proxy?.$tab.refreshPage(); |
|
|
|
console.log('切换系统编码', systemCode); |
|
|
|
const targetPath = systemCode === 'supervisionCode' |
|
|
|
? '/statistics/administrative/enterprise-enforcement' |
|
|
|
: '/'; |
|
|
|
await proxy?.$router.replace(targetPath); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|