<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>
            <permission-setting :visibleApartList="testList" :visibleSpecialLsit="testList" :onlySelfApartList="testList"></permission-setting>
        </div>
        <div class="setting-cell"></div>
    </div>
</template>
<script>
    import permissionSetting from "components/contacts/permissionSet/permissionSetting";
    export default {
        name: "addDepartment",
        components: {
            permissionSetting
        },
        data() {
            return {
                departInfo: {
                    name: ""
                },
                testList: [
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    },
                    {
                        activationStatus: 0,
                        departmentId: "8acdb364b1f649328b99cbac338098ad",
                        departmentName: "无",
                        employeeClerkId: "12a2ef3c642a412b989e8f1a29319231",
                        enterpriseId: "5cfbf45fe35d475ca9a59c41b70b114e",
                        headPic: "https://cdn-images-1.medium.com/max/1600/1*HP8l7LMMt7Sh5UoO1T-yLQ.png",
                        hireDate: null,
                        isManager: 1,
                        isManagerStr: "是",
                        name: "张0",
                        phoneNumber: "13588480000",
                        positionName: "公司老大0",
                        sort: 0,
                        userId: "2d92932d626b4058a11c8fb1b8c53956"
                    }
                ]
            };
        }
    };
</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;
                }
            }
        }
    }
</style>


