|
@@ -1,30 +1,43 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-center">
|
|
<div class="app-center">
|
|
|
<div class="container">
|
|
<div class="container">
|
|
|
- <!-- 左侧导航栏 -->
|
|
|
|
|
- <div class="sidebar">
|
|
|
|
|
|
|
+ <!-- 左侧导航栏 -->
|
|
|
|
|
+ <div class="sidebar">
|
|
|
<div class="sidebar-menu">
|
|
<div class="sidebar-menu">
|
|
|
- <div class="menu-item" :class="{'active': menuValue === 1}" @click="handleMenuClick(1)">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="menu-item"
|
|
|
|
|
+ :class="{ active: menuValue === 1 }"
|
|
|
|
|
+ @click="handleMenuClick(1)"
|
|
|
|
|
+ >
|
|
|
<el-icon><Menu /></el-icon>
|
|
<el-icon><Menu /></el-icon>
|
|
|
<span>应用概览</span>
|
|
<span>应用概览</span>
|
|
|
- </div>
|
|
|
|
|
- <div class="menu-item" v-if="userInfo.id != touristUserId" :class="{'active': menuValue === 2}" @click="handleMenuClick(2)">
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="menu-item"
|
|
|
|
|
+ v-if="$getUserType() != 1"
|
|
|
|
|
+ :class="{ active: menuValue === 2 }"
|
|
|
|
|
+ @click="handleMenuClick(2)"
|
|
|
|
|
+ >
|
|
|
<el-icon><Grid /></el-icon>
|
|
<el-icon><Grid /></el-icon>
|
|
|
<span>应用管理</span>
|
|
<span>应用管理</span>
|
|
|
- </div>
|
|
|
|
|
- <div class="menu-item" :class="{'active': menuValue === 3}" @click="handleMenuClick(3)">
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="menu-item"
|
|
|
|
|
+ :class="{ active: menuValue === 3 }"
|
|
|
|
|
+ @click="handleMenuClick(3)"
|
|
|
|
|
+ >
|
|
|
<el-icon><Monitor /></el-icon>
|
|
<el-icon><Monitor /></el-icon>
|
|
|
<span>应用监测</span>
|
|
<span>应用监测</span>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <!-- 右侧主内容区 -->
|
|
|
|
|
- <div class="main-content">
|
|
|
|
|
- <AppOverview v-if="menuValue === 1" />
|
|
|
|
|
- <AppManagement v-if="menuValue === 2" />
|
|
|
|
|
- <AppMonitoring v-if="menuValue === 3" />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- 右侧主内容区 -->
|
|
|
|
|
+ <div class="main-content">
|
|
|
|
|
+ <AppOverview v-if="menuValue === 1" />
|
|
|
|
|
+ <AppManagement v-if="menuValue === 2" />
|
|
|
|
|
+ <AppMonitoring v-if="menuValue === 3" />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -42,25 +55,24 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- touristUserId:systemConfig.touristUserId,
|
|
|
|
|
- userInfo:this.$store.state.userInfo,
|
|
|
|
|
- userState:this.$store.state.userState,
|
|
|
|
|
- menuValue:1
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ userInfo: this.$store.state.userInfo,
|
|
|
|
|
+ userState: this.$store.state.userState,
|
|
|
|
|
+ menuValue: 1,
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
handleMenuClick(value) {
|
|
handleMenuClick(value) {
|
|
|
- console.log(value)
|
|
|
|
|
|
|
+ console.log(value);
|
|
|
this.menuValue = value;
|
|
this.menuValue = value;
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
.app-center {
|
|
.app-center {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
-// min-height: 100vh;
|
|
|
|
|
|
|
+ // min-height: 100vh;
|
|
|
height: calc(100vh - 120px);
|
|
height: calc(100vh - 120px);
|
|
|
background-color: #08224a;
|
|
background-color: #08224a;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
@@ -79,10 +91,10 @@ export default {
|
|
|
width: 200px;
|
|
width: 200px;
|
|
|
background-color: #0a2a5a;
|
|
background-color: #0a2a5a;
|
|
|
border-right: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-right: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.sidebar-menu {
|
|
.sidebar-menu {
|
|
|
padding: 20px 0;
|
|
padding: 20px 0;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.menu-item {
|
|
.menu-item {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -90,17 +102,17 @@ export default {
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
transition: all 0.3s ease;
|
|
transition: all 0.3s ease;
|
|
|
color: rgba(255, 255, 255, 0.8);
|
|
color: rgba(255, 255, 255, 0.8);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
i {
|
|
i {
|
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&:hover {
|
|
&:hover {
|
|
|
background-color: rgba(24, 144, 255, 0.2);
|
|
background-color: rgba(24, 144, 255, 0.2);
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
&.active {
|
|
&.active {
|
|
|
background-color: rgba(24, 144, 255, 0.3);
|
|
background-color: rgba(24, 144, 255, 0.3);
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
@@ -116,5 +128,4 @@ export default {
|
|
|
padding: 20px 30px;
|
|
padding: 20px 30px;
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|