whychw
2020-04-16 8755bc88034dc3c8a8ea7ca06989f5babf0562db
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template>
    <div id="app">
        <div class="page-container">
            <page-header></page-header>
            <page-nav></page-nav>
            <div class="page-content">
                <div class="page-content-container">
                    <div class="page-content-left">
                        <content-box
                        title="站点管理">
                            <my-tree
                            @tree-click="treeClick"></my-tree>
                        </content-box>
                    </div>
                    <div class="page-content-right">
                        <content-box
                        :title-left=true>
                            <div class="whyc-breadcrumb" slot="title">当前位置:{{$store.state.crumb}}</div>
                            <router-view></router-view>
                        </content-box>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
 
<script>
import PageHeader from './components/PageHeader'
import PageNav from './components/PageNav'
import ContentBox from './components/ContentBox'
import MyTree from './components/tree/Index'
 
export default {
    name: 'App',
    components: {
        PageHeader,
        PageNav,
        ContentBox,
        MyTree,
    },
    methods: {
        treeClick: function(res) {
            console.log(res);
        }
    }
}
</script>
 
<style>
    #app {
        font-family: Avenir, Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        background: url('./assets/images/dw_bg.jpg') no-repeat;
        background-size: 100% 100%;
        padding-left: 0.1rem;
        padding-right: 0.1rem;
    }
    .page-container {
        display: flex;
        height: 100vh;
        flex-direction: column;
    }
    .page-content {
        flex: 1;
    }
    .page-content-container {
        height: 100%;
        box-sizing: border-box;
        padding-top: 0.08rem;
        padding-bottom: 0.08rem;
    }
    .page-content-left,
    .page-content-right {
        height: 100%;
    }
    .page-content-left {
        float: left;
        width: 3.8rem;
    }
    .page-content-right {
        float: right;
        width: calc(100vw - 4.06rem);
    }
</style>