<template>
    <div class="add-department-container">
        <div class="setting-cell depart-info">
            <p class="title">部门信息</p>
            <el-form
                class="department-info-form"
                label-position="right"
                label-width="100px">
                <el-form-item label="部门名称" required>
                    <el-input v-model="departInfo.name"></el-input>
                </el-form-item>
                <el-form-item label="部门排序调整">
                    <el-input v-model="departInfo.name"></el-input>
                </el-form-item>
            </el-form>
        </div>
        <div class="setting-cell">
            <p class="title">权限设置</p>
            <div class="jurisdiction-setting">
                <div class="only-visivble-there">
                    本部门员工仅可见本部门员工
                    <el-switch
                        v-model="visibleThere"
                        active-color="#409EFF"
                        inactive-color="#DCDFE6">
                    </el-switch>
                </div>
                <div class="particular-setting">
                    <div>
                        <p>个别员工不设置该权限</p>
                        <ul class="particular-list">
                            <li></li>
                            <li></li>
                            <li></li>
                            <div class="add-btn item">
                                <i class="el-icon-plus"></i>
                            </div>
                        </ul>
                        <p>允许指定部门/人员可见</p>
                        <ul class="particular-list">
                            <li class="item person-item">
                                <img src="http://www.vstou.com/upload/image/1/201806/1528248938430018.jpeg" alt="haoban">
                                <p class="name">陈景良</p>
                                <i class="el-icon-circle-close"></i>
                            </li>
                            <li class="item group-item">
                                市场部
                                <i class="el-icon-circle-close"></i>
                            </li>
                            <div class="add-btn item">
                                <i class="el-icon-plus"></i>
                            </div>
                        </ul>
                    </div>
                </div>
                <div class="only-visivble-self">
                    本部门员工仅可见本部门员工
                    <el-switch
                        v-model="visibleThere"
                        active-color="#409EFF"
                        inactive-color="#DCDFE6">
                    </el-switch>
                </div>
            </div>
        </div>
        <div class="setting-cell"></div>
    </div>
</template>
<script>
    export default {
        name: "addDepartment",
        data() {
            return {
                visibleThere: false,
                departInfo: {
                    name: ""
                }
            };
        }
    };
</script>
<style lang="scss">
    .add-department-container {
        .setting-cell {
            background: #fff;
            margin-bottom: 24px;
            .title {
                height: 55px;
                line-height: 55px;
                border-bottom: 1px solid #E4E7ED;
                text-indent: 32px;
                font-size:16px;
                font-weight:500;
                color:#303133;
            }
            .department-info-form {
                padding: 24px 32px;
                .el-input {
                    width: 380px;
                }
            }
            .jurisdiction-setting {
                padding: 36px 32px 55px;
                .particular-setting {
                    width: 480px;
                    min-height: 300px;
                    border-radius: 2px;
                    background: #F5F7FA;
                    margin: 32px 0;
                    padding: 20px;
                    .particular-list {
                        display: flex;
                        flex-wrap: wrap;
                        margin-bottom: 30px;
                        .add-btn {
                            width:40px;
                            height:40px;
                            background:rgba(251,253,255,1);
                            border:1px dashed rgba(192,204,218,1);
                            border-radius:50%;
                            box-sizing: border-box;
                            line-height: 40px;
                            text-align: center;
                            .el-icon-plus {
                                font-size: 16px;
                                color: #8C939D;
                            }
                        }
                        .item {
                            position: relative;
                            margin-right: 24px;
                            margin-top: 30px;
                            .el-icon-circle-close {
                                position: absolute;
                                font-size: 16px;
                                color: #808995;
                                right: -8px;
                                top: -8px;
                            }
                        }
                        .person-item {
                            width:40px;
                            position: relative;
                            img {
                                width: 100%;
                                border-radius:4px;
                            }
                            .name {
                                font-size: 12px;
                                text-align: center;
                                margin-top: 20px;
                            }
                        }
                        .group-item {
                            width:57px;
                            height:30px;
                            background:rgba(236,245,255,1);
                            border:1px solid rgba(217,236,255,1);
                            border-radius:4px;
                            font-size:12px;
                            color:rgba(64,158,255,1);
                            line-height: 32px;
                            text-align: center;
                        }
                    }
                }
            }
        }
    }
</style>


