<template>
    <div class="form">
        <div class="header">
            <p style="text-align: left;margin-top: 10px;margin-left: 20px;">用户详情</p><span><i
                    class="el-icon-close"></i></span>
        </div>
        <el-form :model="form" label-position="left" label-width="80px">
            <el-form-item style="width: 350px;" :model="form.username" label="用户名：">
                <el-input placeholder="test" type="text"></el-input>
            </el-form-item>
            <el-form-item style="width: 350px;" :model="form.password" label="密码：">
                <el-input placeholder="test" show-password></el-input>
            </el-form-item>
            <el-form-item style="width: 350px;" :model="form.name" label="姓名：">
                <el-input placeholder="test"></el-input>
            </el-form-item>
            <el-form-item style="width: 500px;" :model="form.phone" label="电话：">
                <el-select style="width: 100px;">
                    <el-option label="CN +86"></el-option>
                </el-select><span><el-input style="width: 280px;" placeholder="test"></el-input></span>
            </el-form-item>
            <el-form-item :model="form.email" label="邮箱：">
                <el-input style="width: 380px;" placeholder="test"></el-input>
            </el-form-item>
            <el-form-item :model="form.corporation" label="公司：">
                <el-input style="width: 380px;" placeholder="test"></el-input>
            </el-form-item>
            <el-form-item :model="form.department" label="部门：">
                <el-input style="width: 380px;" placeholder="test"></el-input>
            </el-form-item>
            <div style="display: flex;">
                <el-form-item :model="form.role" label="角色：">
                    <el-select style="width: 130px;">
                        <el-option label="CN +86"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item :model="form.permission" label="权限：">
                    <el-select style="width: 130px;">
                        <el-option label="CN +86"></el-option>
                    </el-select>
                </el-form-item>
            </div>
            <div style="display: flex;">
                <el-form-item :model="form.working_status" label="在职状态：">
                    <el-select style="width: 130px;">
                        <el-option label="CN +86"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item :model="form.post" label="职务：">
                    <el-select style="width: 130px;">
                        <el-option label="CN +86"></el-option>
                    </el-select>
                </el-form-item>
            </div>
            <div style="display: flex;">
                <el-form-item :model="form.account_status" label="账户状态：">
                    <el-select style="width: 130px;">
                        <el-option label="CN +86"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item :model="form.nationality" label="国籍：">
                    <el-select style="width: 130px;">
                        <el-option label="CN +86"></el-option>
                    </el-select>
                </el-form-item>
            </div>
            <div>
                <el-button>下一个</el-button>
                <el-button>重置</el-button>
                <el-button>更新</el-button>
            </div>
            <el-avatar :size="122" :src="testUrl"></el-avatar>
        </el-form>
    </div>
</template>

<script>
export default {
    data() {
        return {
            form: {

            },
            testUrl: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
        }
    }

}
</script>
<style lang="less" scoped>
.form {
    position: absolute;
    left: 500px;
    width: 586px;
    height: 700px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
}

.el-form {
    margin: 40px 0 0 0;

    .el-form-item {
        padding-top: 20px;
        margin-inline: 20px;
        margin-bottom: 0;
    }
    /deep/.el-form-item__label{
        padding: 0;
    }
    /deep/.el-form-item__content{
        display: flex;
    }
}

.header {
    position: absolute;
    top: 0;
    width: 586px;
    height: 40px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);

    .el-icon-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}


.el-button {
    width: 80px;
    height: 30px;
    text-align: center;
    margin: 20px;
    padding: 5px;
}
.el-avatar {
    position: absolute;
    right: 60px;
    top: 80px;
}
</style>