define(["jquery", "easy-admin"], function ($, ea) {

    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'app.memberloginlog/index',
        add_url: 'app.memberloginlog/add',
        edit_url: 'app.memberloginlog/edit',
        delete_url: 'app.memberloginlog/delete',
        export_url: 'app.memberloginlog/export',
        modify_url: 'app.memberloginlog/modify',
    };

    var Controller = {

        index: function () {
            ea.table.render({
                init: init,
                toolbar: ['refresh'],
                cols: [[
                    {type: 'checkbox'},
                    {field: 'id', title: 'id',search:false},
                    {field: 'uid', title: 'uid'},
                    {field: 'uname', title: '用户名称'},
                    {field: 'reg_ver', title: '注册渠道标识'},
                    {field: 'reg_time', title: '注册时间', search: 'range'},
                    {field: 'appid', title: '登录游戏'},
                    {field: 'login_ver', title: '登录渠道标识'},
                    {field: 'login_time', title: '登录时间', search: 'range'},
                    {field: 'login_ip', title: '登录IP',search:false},
                ]],
            });

            ea.listen();
        },
        add: function () {
            ea.listen();
        },
        edit: function () {
            ea.listen();
        },
    };
    return Controller;
});
