xieb
2023-09-13 3667807a7b7418efc090ee3fa6a6b734bc3080bf
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>
    <div class="project_list">
        <div class="left_content">
            <router-view />
        </div>
        <div class="right_content">
            <div class="map">
                <Map />
            </div>
            <div class="media-wrapper" v-if="root.$route.name === ERouterName.MEDIA">
                <MediaPanel />
            </div>
            <div class="task-wrapper" v-if="root.$route.name === ERouterName.TASK">
                <TaskPanel />
            </div>
        </div>
    </div>
</template>
 
<script setup lang="ts">
import Map from '/@/components/cesiumMap/cesium.vue'
import MediaPanel from '/@/components/MediaPanel.vue'
import TaskPanel from '/@/components/task/TaskPanel.vue'
import { EBizCode, ERouterName } from '/@/types'
import { getRoot } from '/@/root'
const root = getRoot()
</script>
 
<style scoped lang="scss">
.project_list {
    display: flex;
    transition: width 0.2s ease;
    height: 100%;
    width: 100%;
 
    .left_content {
        width: 370px;
        max-height: 100vh;
        background-color: black;
        color: $text-white-basic;
    }
 
    .right_content {
        position: relative;
        flex: 1;
 
        .map {
            width: 100%;
            height: 100%;
        }
 
        .media-wrapper,
        .task-wrapper {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background: #f6f8fa;
        }
    }
}
</style>