<template>
    <div class="page">
        <LayoutTable :data='tableData' :config='tableConfig' />
    </div>
</template>

<script>
    import table from "@/assets/mixins/table";

    export default {
        components: {
        },
        mixins: [table],
        created() {
        },
        methods: {
        },
        data() {
            return {
                config: {
                    search: [

                    ],
                    columns: [
                        {label: "手机号", prop: "phone"},
                        {label: "unionid", prop: "unionid"},
                        {label: "微信openId", prop: "openId"},
                        {label: "头像地址", prop: "picImage"},
                        {label: "昵称", prop: "nickname"},
                        {label: "真实姓名", prop: "realName"},
                        {label: "性别", prop: "gender"},
                        {label: "最后登录时间", prop: "lastLoginTime", formatter: this.formatterDate},
                        {label: "备注", prop: "remark"},
                        {label: "用户状态", prop: "status",formatter:this.formatter},
                        {
                            label: "操作",
                            width: 180,
                            formatter: row => {
                                return (
                                    <div><el-button type="primary" icon="el-icon-edit" round size='mini' onClick={()=>{this.toEdit(row)}}>编辑</el-button></div>
                            );
                            }
                        }
                    ]
                }
            };
        }
    };
</script>