<template>
    <layout-view>
        <el-descriptions  :title="title" :column="column" :size="size" :colon="false" border>
            <template slot="title">
                <i class="el-icon-tickets"></i>
                基本详细信息
            </template>
            <template slot="extra">
                <el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
            </template>
                                    <el-descriptions-item label="登录名" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.loginName}}
                        </el-descriptions-item>
                        <el-descriptions-item label="登录密码，使用md5双次加密" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.loginPwd}}
                        </el-descriptions-item>
                        <el-descriptions-item label="登录限制地址，多个IP地址用逗号分隔，可以使用IP段匹配，如：172.17.*非空：则只能该值内的IP可以登录" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.loginLimitAddress}}
                        </el-descriptions-item>
                        <el-descriptions-item label="用户名" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.realName}}
                        </el-descriptions-item>
                        <el-descriptions-item label="用户手机号" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.mobile}}
                        </el-descriptions-item>
                        <el-descriptions-item label="用户联系电话" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.phone}}
                        </el-descriptions-item>
                        <el-descriptions-item label="用户邮箱" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.email}}
                        </el-descriptions-item>
                        <el-descriptions-item label="QQ号码" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.qq}}
                        </el-descriptions-item>
                        <el-descriptions-item label="用户类型，0：系统用户 1:普通用户 2:工作人员，默认2" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.userType}}
                        </el-descriptions-item>
                        <el-descriptions-item label="用户状态，0：停用，1：正常，2：冻结，3：销户，4：离职，默认1" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.status}}
                        </el-descriptions-item>
                        <el-descriptions-item label="客户ID" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.customerId}}
                        </el-descriptions-item>
                        <el-descriptions-item label="创建用户名称" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.createUserName}}
                        </el-descriptions-item>
                        <el-descriptions-item label="最后一次登录时间" label-class-name="labelClass" content-class-name="contentClass">
                            {{ util_formatterDate(form.lastLoginTime)}}
                        </el-descriptions-item>
                        <el-descriptions-item label="最后一次登录地址" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.lastLoginAddress}}
                        </el-descriptions-item>
                        <el-descriptions-item label="用户所属部门id" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.deptId}}
                        </el-descriptions-item>
                        <el-descriptions-item label="所属部门名称" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.deptName}}
                        </el-descriptions-item>
                        <el-descriptions-item label="所属站点id,多个逗号分隔" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.siteIds}}
                        </el-descriptions-item>
                        <el-descriptions-item label="所属区域code,多个逗号分隔" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.areaCodes}}
                        </el-descriptions-item>
                        <el-descriptions-item label="员工Id，关联用户员工表" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.staffId}}
                        </el-descriptions-item>
                        <el-descriptions-item label="微信openId" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.openId}}
                        </el-descriptions-item>
        </el-descriptions>

    </layout-view>
</template>

<script>
    import view from "@/assets/mixins/view";
    export default {
        mixins: [view],
        components: {
        },
        methods: {

        },
        data() {
            return {
                size:"small",
                column:2,
                toString:[
                    "userType",
                    "status",
                ],
                toArrays: [

                ],
                toDate: [

                ]
            }
        }
    }
</script>
<style lang="less">
    .labelClass{
        width: 200px;
    }
    .el-descriptions__body{
        margin-left: 5px;
        margin-right: 5px;
        color: #606266;
        background-color: #FFF;
    }
    .contentClass{
        width: 600px;
    }
</style>