luobisheng
2022-11-09 f7bdedf1f3f7600c73f6d5beb46c1d1f4d518822
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
<template>
    <div class="aside">
        <div class="title">组织机构</div>
        <div class="input">
            <el-input placeholder="输入组织机构名称" v-model="searchArea"></el-input>
        </div>
        <div class="menu">
            <el-tree :data="areaData" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
        </div>
    </div>
</template>
<script>
 
export default {
    data() {
        return {
          searchArea: null,
          areaData: [],
          defaultProps: {
              children: 'children',
              label: 'label'
          }
        };
    },
 
    created() {
    },
 
  methods: {
        handleNodeClick(data) {
        }
    }
};
</script>
<style lang="scss" scoped>
.aside {
    width: 200px;
    height: calc(100vh - 102px);
    background-color: #09152f;
    padding: 10px;
    display: flex;
    flex-direction: column;
    .title {
        line-height: 60px;
    }
 
    .input {
        line-height: 30px;
 
        &::v-deep .el-input__inner {
            background-color: #09152f;
            border: 1px solid #17324c;
        }
    }
 
    .menu {
        margin-top: 20px;
        flex: 1;
        .el-tree{
            height: 100%;
            background-color: #09152f;
            &::v-deep .el-tree-node:focus>.el-tree-node__content{
                background-color: #092c4a;
            }
            &::v-deep .el-tree-node__content:hover{
                background-color: #092c4a;
            }
        }
    }
}
</style>