yirongjin
2025-07-23 c2da0b81321e66e3c3706d6833ad4c92c62d0935
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<template>
    <el-container class="main-layout">
        <el-aside :width="asideWidth"><left-aside /></el-aside>
        <el-container>
            <el-header height="50px">
                <main-header />
            </el-header>
            <el-main class="subpage-containter-box">
                <main-tabs />
                <main-title />
                <main-sub-containter />
            </el-main>
        </el-container>
    </el-container>
</template>
 
<script>
import LeftAside from './compontents/LeftAside.vue'
import MainHeader from './compontents/Header.vue'
import MainTabs from './compontents/Tabs.vue'
import MainTitle from './compontents/Title.vue'
import MainSubContainter from './compontents/SubContainter.vue'
export default {
    name:'layoutIndexPage',
    components:{
        LeftAside,MainHeader,MainTabs,MainTitle,MainSubContainter
    },
    computed:{
        asideWidth(){
            let f = this.$store.getters['system/getCollapse'];
            if (f) {
                return '64px';
            } else {
                return '200px';
            }
        }
    },
    provide(){
        return {
            subpageQuery:()=>this.$route.query
        }
    },
    mounted(){
        this.$loading().close();
    }
}
</script>
 
<style scoped lang="scss">
.main-layout{
    height: 100%;
    min-width: 1200px;
    min-height: 800px;
    .el-aside{
        transition: width 300ms; 
    }
    .subpage-containter-box{
        background-color: #f0f2f5;
        position: relative;
        padding-top: 88px !important;
        box-sizing: border-box;
    }
}
</style>