From 09a49f7cd53acba5261802daf491cf01a10f8d9b Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 13 五月 2025 09:40:06 +0800
Subject: [PATCH] 最新版本541200007
---
admin/src/layouts/AppLayout.vue | 124 ++++++++++++++++++++++++++++++++---------
1 files changed, 96 insertions(+), 28 deletions(-)
diff --git a/admin/src/layouts/AppLayout.vue b/admin/src/layouts/AppLayout.vue
index dc75809..cf6447e 100644
--- a/admin/src/layouts/AppLayout.vue
+++ b/admin/src/layouts/AppLayout.vue
@@ -1,31 +1,52 @@
<template>
- <el-container class="app-layout">
- <el-aside :class="{collapse:menuData.collapse}">
- <Menu/>
- </el-aside>
- <el-main>
- <header>
- <AppHeader/>
- </header>
- <main>
- <transition name="fade">
- <router-view></router-view>
- </transition>
- </main>
- </el-main>
- </el-container>
+ <div>
+ <CommonHeader />
+ <!-- <div style="height:10px; background: #fff"></div> -->
+ <el-container class="app-layout">
+ <el-aside :class="{collapse:menuData.collapse}">
+ <Menu/>
+ </el-aside>
+ <el-main>
+ <header>
+ <AppHeader/>
+ </header>
+ <main ref="containerS">
+ <transition name="fade">
+ <keep-alive :include="cachedViews">
+ <router-view></router-view>
+ </keep-alive>
+ </transition>
+ </main>
+ </el-main>
+ </el-container>
+ </div>
</template>
<script>
import { mapState } from 'vuex'
import Header from '@/components/common/Header'
+import BaseComputHeight from '@/components/base/BaseComputHeight'
+import CommonHeader from '@/components/common/CommonHeader'
import Menu from '@/components/common/Menu'
export default {
+ extends: BaseComputHeight,
name: 'DefaultLayout',
- components: { AppHeader: Header, Menu },
+ components: { AppHeader: Header, Menu, CommonHeader },
+ data() {
+ return {
+ cachedViews:['abccdd'],
+ isFinishData: false,
+ orgBackground: ''
+ }
+ },
computed: {
- ...mapState(['menuData'])
- }
+ ...mapState(['menuData', 'userInfo'])
+ },
+ mounted() {
+
+ },
+ methods: {
+ },
}
</script>
@@ -35,16 +56,25 @@
background: #F7F8F9;
height: 100%;
display: flex;
- overflow: hidden;
+ overflow: hidden;
+ //overflow: scroll;
// 宸﹁竟鑿滃崟
.el-aside {
- width: 250px !important;
+ width: $menu-width !important;
flex-shrink: 0;
- height: 100%;
- overflow-y: auto;
- background: $primary-color;
- color: #fff;
+ // height: 100%;
+ // height: 900px;
+ height: calc(100vh - 60px);
+ overflow-y: scroll;
+ overflow-x: hidden;
+ background: #fff;
+ color: #333333;
transition: width ease .3s;
+ scrollbar-width: none; /* firefox */
+ -ms-overflow-style: none; /* IE 10+ */
+ &::-webkit-scrollbar {
+ display: none; /* Chrome Safari */
+ }
&.collapse {
width: 64px !important;
}
@@ -52,19 +82,28 @@
// 鍙宠竟鍐呭
.el-main {
width: 100%;
- height: 100%;
+ //height: 100%;
+ overflow: hidden;
+ height: calc(100vh - 60px);
padding: 0;
position: relative;
display: flex;
flex-direction: column;
- overflow: hidden;
+ //overflow-y: scroll;
+ overflow-x: hidden;
+ scrollbar-width: none; /* firefox */
+ -ms-overflow-style: none; /* IE 10+ */
+ &::-webkit-scrollbar {
+ display: none; /* Chrome Safari */
+ }
& > header {
- height: $header-height;
+ height: 48px;
flex-shrink: 0;
}
& > main {
height: 100%;
- overflow-y: auto;
+ box-sizing: border-box;
+ /* overflow-y: auto; */
}
}
}
@@ -81,4 +120,33 @@
transition: all .5s;
position: absolute;
}
+.comfirm {
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.3);
+ z-index: 1000;
+ .container {
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ margin: auto;
+ background-color: #fff;
+ width: 500px;
+ height: 120px;
+ padding: 30px;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ .complete {
+ display: flex;
+ flex-direction: row-reverse;
+ }
+ }
+}
</style>
--
Gitblit v1.9.3