|
|
@ -1,19 +1,19 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="navbar"> |
|
|
<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" /> |
|
|
<breadcrumb v-if="!settingsStore.topNav" id="breadcrumb-container" class="breadcrumb-container" /> |
|
|
<top-nav v-if="settingsStore.topNav" id="topmenu-container" class="topmenu-container" /> |
|
|
<top-nav v-if="settingsStore.topNav" id="topmenu-container" class="topmenu-container" /> |
|
|
|
|
|
|
|
|
<div class="right-menu flex align-center"> |
|
|
<div class="right-menu flex align-center"> |
|
|
<template v-if="appStore.device !== 'mobile'"> |
|
|
<template v-if="appStore.device !== 'mobile'"> |
|
|
<el-select |
|
|
<el-select v-model="currentSystemCode" class="min-w-160px mr-8px" placeholder="切换菜单组" |
|
|
v-model="currentSystemCode" |
|
|
@change="handleSystemCodeChange"> |
|
|
class="min-w-160px mr-8px" |
|
|
<el-option v-for="item in permissionStore.visibleSystemCodeOptions" :key="item.value" :label="item.label" |
|
|
placeholder="切换菜单组" |
|
|
:value="item.value"> |
|
|
@change="handleSystemCodeChange" |
|
|
<el-icon style="vertical-align: middle; margin-right: 4px;"> |
|
|
> |
|
|
<component :is="item.icon" /> |
|
|
<el-option v-for="item in permissionStore.visibleSystemCodeOptions" :key="item.value" :label="item.label" :value="item.value"> |
|
|
</el-icon> |
|
|
<el-icon style="vertical-align: middle; margin-right: 4px;"><component :is="item.icon" /></el-icon> |
|
|
|
|
|
<span>{{ item.label }}</span> |
|
|
<span>{{ item.label }}</span> |
|
|
</el-option> |
|
|
</el-option> |
|
|
<template #prefix><svg-icon icon-class="tree-table" class="el-input__icon input-icon" /></template> |
|
|
<template #prefix><svg-icon icon-class="tree-table" class="el-input__icon input-icon" /></template> |
|
|
@ -141,8 +141,11 @@ const handleSystemCodeChange = async (systemCode: string) => { |
|
|
await permissionStore.switchSystemCode(systemCode); |
|
|
await permissionStore.switchSystemCode(systemCode); |
|
|
// 非 iframe 模式时跳转到首页并刷新 |
|
|
// 非 iframe 模式时跳转到首页并刷新 |
|
|
if (!permissionStore.iframeMode) { |
|
|
if (!permissionStore.iframeMode) { |
|
|
await proxy?.$router.push('/'); |
|
|
console.log('切换系统编码', systemCode); |
|
|
await proxy?.$tab.refreshPage(); |
|
|
const targetPath = systemCode === 'supervisionCode' |
|
|
|
|
|
? '/statistics/administrative/enterprise-enforcement' |
|
|
|
|
|
: '/'; |
|
|
|
|
|
await proxy?.$router.replace(targetPath); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|