charles
2024-06-05 fefe4a3011fb472788abb2e7ffdbbc5a4f58623c
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<template>
    <div class="main-view">
        <div class="view-left">
            <left-nav :isCollapse="isCollapse" @menuChange="menuChange"></left-nav>
        </div>
        <div class="right">
            <div class="top">
                <!--<div class="collapse-trigger" @click="toggleCollapse">
                    <i :class="isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'"></i>
                </div>-->
                <top-nav></top-nav>
            </div>
            <div class="body">
<!--                <el-card style="margin: 20px 0px 0px 20px;min-height: 90vh">-->
                    <router-view></router-view>
<!--                </el-card>-->
            </div>
        </div>
    </div>
</template>
 
<script>
    import TopNav from "./components/topNav.vue";
    import LeftNav from "./components/leftNav.vue";
    export default {
        components: {
            LeftNav,
            TopNav
        },
        data() {
            return {
                isCollapse: false,
                actPage: "guideIndex",
            };
        },
        mounted() {
        },
        methods: {
            markNav() {
                sessionStorage.setItem("actPage", this.actPage);
                this.menuChange(this.actPage);
            },
            toggleCollapse() {
                this.isCollapse = !this.isCollapse;
                //通知当前活动页table(如果有) doLayout
            },
            menuChange(path) {
                if (path == "guideIndex") {
                    // this.$refs.GuideIndex.refreshShoubiNum()
                }
                if (path == "taskscreen") {
                    //window.location.href = window.location.href+'taskscreen/index.html'
                    window.open(window.location.href + "taskscreen/index.html", "_blank");
                } else if (path == "hiddendangerscreen") {
                    //window.location.href = window.location.href+'hiddendangerscreen/index.html'
                    window.open(
                        window.location.href + "hiddendangerscreen/index.html",
                        "_blank"
                    );
                }
                this.actPage = path;
            },
        },
    };
</script>
 
<style lang="scss">
    .flex-box {
        display: flex;
        > label {
            padding-right: 10px;
        }
    }
    .flex-end {
        display: flex;
        justify-content: flex-end;
    }
    .el-button--primary.is-disabled,
    .el-button--primary.is-disabled:hover,
    .el-button--primary.is-disabled:focus,
    .el-button--primary.is-disabled:active {
        color: #ffffff;
        background-color: #9eb4f0 !important;
        border-color: #9eb4f0 !important;
    }
    .table-area {
        margin-bottom: 20px;
        .el-table {
            border: 1px solid #ddd;
            thead {
                color: #111 !important;
                th {
                    background: #f4f4f4;
                }
            }
            .operation {
                span {
                    font-size: 14px;
                    color: #1a99ff;
                    padding-right: 10px;
                }
            }
        }
    }
    .el-table.thbg {
        border: 1px solid #dedede;
        margin: 10px 0;
        th {
            background: #f5f5f5;
            color: #333;
        }
        .operation {
            cursor: pointer;
            display: flex;
            span {
                padding: 0 3px;
                color: #0096fa;
            }
            i[class^="el-icon"] {
                padding: 3px;
                font-size: 16px;
                color: #0096fa;
            }
        }
    }
    .main-view {
        display: flex;
        background: #f0f2f5;
        .view-left {
            margin-top: -15px;
            z-index: 2;
            box-shadow: 4px 0px 8px 0px rgba(0, 0, 0, 0.1);
        }
        .right {
            flex: 1;
            .top {
                background: #fff;
                position: relative;
                .collapse-trigger {
                    position: absolute;
                    left: 20px;
                    top: 23px;
                    font-size: 20px;
                    cursor: pointer;
                }
            }
            .container {
                background: #fff;
                margin: 10px;
                box-sizing: border-box;
                height: calc(100vh - 84px);
                overflow-y: auto;
            }
        }
    }
</style>