|
@@ -30,12 +30,11 @@
|
|
|
<div class="menu-content">
|
|
|
<div v-for="(item, index) in menuData[menuState.activeIndex]?.children" :key="index" class="content-box">
|
|
|
<div class="box-header">
|
|
|
- <div v-if="item.name === '防风防汛'" class="icon1" style="width: 79px; height: 87px"></div>
|
|
|
- <div v-if="item.name === '危化品安全监测' || item.name === '危险化工品'" class="icon2"
|
|
|
- style="width: 71px; height: 80px"></div>
|
|
|
- <div v-if="item.name === '其他'" class="icon3" style="width: 71px; height: 80px"></div>
|
|
|
- <div v-if="item.name === '水情监测'" class="icon4" style="width: 71px; height: 80px"></div>
|
|
|
- <div v-if="item.name === '自然灾害监测'" class="icon5" style="width: 71px; height: 80px"></div>
|
|
|
+ <div v-if="item.name === '防风防汛'" class="icon1" style="width: 24px; height: 26px"></div>
|
|
|
+ <div v-if="item.name === '危化品安全监测' || item.name === '危险化工品'" class="icon2" style="width: 23px; height: 26px"></div>
|
|
|
+ <div v-if="item.name === '其他'" class="icon3" style="width: 26px; height: 26px"></div>
|
|
|
+ <div v-if="item.name === '水情监测'" class="icon4" style="width: 29px; height: 26px"></div>
|
|
|
+ <div v-if="item.name === '自然灾害监测'" class="icon5" style="width: 25px; height: 26px"></div>
|
|
|
<div>{{ item.name }}</div>
|
|
|
<div :class="item.show ? 'expand-icon down-icon' : 'expand-icon up-icon'"
|
|
|
@click="changeBoxShow(item)"></div>
|
|
@@ -63,7 +62,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { getPointInfoComprehensiveSearch } from '@/api/globalMap';
|
|
|
-import { listMenu } from '@/api/system/menu';
|
|
|
+import { listMenu, listMenu2 } from '@/api/system/menu';
|
|
|
|
|
|
const emits = defineEmits(['switchMap', 'clickMenu', 'selectSearchMarker']);
|
|
|
// 左侧菜单
|
|
@@ -125,7 +124,7 @@ const handleClick = (item) => {
|
|
|
};
|
|
|
|
|
|
const initData = () => {
|
|
|
- listMenu().then((res: any) => {
|
|
|
+ listMenu2().then((res: any) => {
|
|
|
const data = res.data ? res.data[0]?.children : [];
|
|
|
data.forEach((item) => {
|
|
|
item.show = true;
|
|
@@ -182,8 +181,8 @@ defineExpose({ setMenuChange });
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.search-box {
|
|
|
- width: 815px;
|
|
|
- height: 104px;
|
|
|
+ width: 260px;
|
|
|
+ height: 27px;
|
|
|
padding: 0 10px;
|
|
|
background: url('@/assets/images/menu/search.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
@@ -193,30 +192,29 @@ defineExpose({ setMenuChange });
|
|
|
border: none;
|
|
|
outline: none;
|
|
|
color: #fff;
|
|
|
- width: calc(100% - 85px);
|
|
|
- margin-left: 85px;
|
|
|
- height: 90px;
|
|
|
- font-size: 46px;
|
|
|
+ width: calc(100% - 20px);
|
|
|
+ margin-left: 22px;
|
|
|
+ height: 22px;
|
|
|
+ font-size: 14px;
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.search-list {
|
|
|
position: absolute;
|
|
|
- top: 100px;
|
|
|
+ top: 30px;
|
|
|
left: 0;
|
|
|
background-color: #0d1d4e;
|
|
|
- border: 1px solid #2C81FF;
|
|
|
- width: 815px;
|
|
|
- color: #000;
|
|
|
- font-size: 46px;
|
|
|
+ border: 1px solid #2c81ff;
|
|
|
+ width: 260px;
|
|
|
+ color: #00e8ff;
|
|
|
+ font-size: 24px;
|
|
|
z-index: 9;
|
|
|
|
|
|
.list-item {
|
|
|
display: block;
|
|
|
- font-size: 38px;
|
|
|
- min-height: 80px;
|
|
|
+ font-size: 14px;
|
|
|
cursor: pointer;
|
|
|
- padding: 10px;
|
|
|
+ padding: 5px;
|
|
|
color: #ffffff;
|
|
|
&:hover {
|
|
|
background-color: #0a6ebd;
|
|
@@ -226,18 +224,18 @@ defineExpose({ setMenuChange });
|
|
|
}
|
|
|
|
|
|
.menu-box {
|
|
|
- width: 871px;
|
|
|
- height: 1732px;
|
|
|
+ width: 280px;
|
|
|
+ height: 551px;
|
|
|
margin-top: 10px;
|
|
|
color: #fff;
|
|
|
position: relative;
|
|
|
|
|
|
.menu-box2 {
|
|
|
- width: 871px;
|
|
|
- height: 1732px;
|
|
|
+ width: 280px;
|
|
|
+ height: 551px;
|
|
|
background: url('@/assets/images/menu/menu.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
- padding: 10px 20px;
|
|
|
+ padding: 10px 20px 10px 24px;
|
|
|
}
|
|
|
|
|
|
.menu-btn {
|
|
@@ -246,10 +244,10 @@ defineExpose({ setMenuChange });
|
|
|
left: 50%;
|
|
|
transform: translateX(-50%);
|
|
|
letter-spacing: 5px;
|
|
|
- font-size: 48px;
|
|
|
+ font-size: 16px;
|
|
|
cursor: pointer;
|
|
|
- width: 379px;
|
|
|
- height: 60px;
|
|
|
+ width: 125px;
|
|
|
+ height: 20px;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
@@ -259,58 +257,51 @@ defineExpose({ setMenuChange });
|
|
|
|
|
|
.menu-header {
|
|
|
display: flex;
|
|
|
- margin-top: 65px;
|
|
|
- height: 78px;
|
|
|
+ margin-top: 15px;
|
|
|
+ height: 28px;
|
|
|
|
|
|
.menu-item {
|
|
|
- width: 339px;
|
|
|
- height: 78px;
|
|
|
+ width: 87px;
|
|
|
+ height: 20px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
cursor: pointer;
|
|
|
- letter-spacing: 5px;
|
|
|
&:hover {
|
|
|
position: relative;
|
|
|
- background: url('@/assets/images/menu/menuActive.png') no-repeat;
|
|
|
+ background: url('@/assets/images/menu/menuActive.png') no-repeat bottom center;
|
|
|
background-size: 100% 100%;
|
|
|
- background-position: bottom center;
|
|
|
}
|
|
|
.text {
|
|
|
- font-size: 46px;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.active {
|
|
|
- width: 339px;
|
|
|
- height: 78px;
|
|
|
- background: url('@/assets/images/menu/menuActive.png') no-repeat;
|
|
|
+ background: url('@/assets/images/menu/menuActive.png') no-repeat bottom center;
|
|
|
background-size: 100% 100%;
|
|
|
- background-position: bottom center;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.menu-content {
|
|
|
- margin: 0 35px 0 28px;
|
|
|
- height: 1540px;
|
|
|
+ margin: 0 0 0 -6px;
|
|
|
+ height: 488px;
|
|
|
overflow-y: auto;
|
|
|
overflow-x: hidden;
|
|
|
.content-box {
|
|
|
padding: 0 10px;
|
|
|
- margin-top: 10px;
|
|
|
- width: 779px;
|
|
|
+ width: 250px;
|
|
|
background: url('@/assets/images/menu/menuContent.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
.box-header {
|
|
|
- height: 103px;
|
|
|
+ height: 36px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
position: relative;
|
|
|
- font-size: 40px;
|
|
|
+ font-size: 14px;
|
|
|
font-weight: 500;
|
|
|
- margin-bottom: 3px;
|
|
|
position: relative;
|
|
|
&::after {
|
|
|
position: absolute;
|
|
@@ -323,29 +314,34 @@ defineExpose({ setMenuChange });
|
|
|
}
|
|
|
.icon1 {
|
|
|
background-image: url('@/assets/images/menu/icon1.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
|
|
|
|
.icon2 {
|
|
|
background-image: url('@/assets/images/menu/icon2.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
|
.icon3 {
|
|
|
background-image: url('@/assets/images/menu/icon3.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
|
.icon4 {
|
|
|
background-image: url('@/assets/images/menu/icon4.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
|
.icon5 {
|
|
|
background-image: url('@/assets/images/menu/icon5.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
|
|
|
|
.expand-icon {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
- right: 79px;
|
|
|
+ right: 30px;
|
|
|
transform: translateY(-50%);
|
|
|
cursor: pointer;
|
|
|
- width: 33px;
|
|
|
- height: 18px;
|
|
|
+ width: 11px;
|
|
|
+ height: 6px;
|
|
|
}
|
|
|
|
|
|
.down-icon {
|
|
@@ -363,18 +359,17 @@ defineExpose({ setMenuChange });
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
flex-wrap: wrap;
|
|
|
- margin-top: 5px;
|
|
|
- padding: 19px 15px;
|
|
|
+ padding: 5px 3px;
|
|
|
overflow: hidden;
|
|
|
|
|
|
.box-item-active {
|
|
|
- text-shadow: 0px 0px 8px #0766d6;
|
|
|
+ text-shadow: 0px 0px 4px #0766d6;
|
|
|
}
|
|
|
|
|
|
.box-item {
|
|
|
- padding: 20px 15px;
|
|
|
+ padding: 7px 5px;
|
|
|
cursor: pointer;
|
|
|
- font-size: 38px;
|
|
|
+ font-size: 14px;
|
|
|
font-family: 'PingFang SC', sans-serif;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -384,11 +379,11 @@ defineExpose({ setMenuChange });
|
|
|
}
|
|
|
|
|
|
.checked-box {
|
|
|
- width: 32px;
|
|
|
- height: 32px;
|
|
|
+ width: 10px;
|
|
|
+ height: 10px;
|
|
|
background: url('@/assets/images/menu/checked-box.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
- margin-right: 12px;
|
|
|
+ margin-right: 4px;
|
|
|
}
|
|
|
|
|
|
.checked {
|