(function(){
    X.pageLogic['usergroup'] = {
        init : function(parms){
            
            var fixedTable = new FixedTable({
                wrap: document.getElementById("eventattradmin-table"),//生成的表格需要放到哪里
                type: "row-col-fixed",//表格类型，有：head-fixed、col-fixed、row-col-fixed
                extraClass: "",//需要添加到表格中的额外class
                maxHeight: true,
                fields: [//表格的列
                    {
                        width: "100px",
                        field: "日期",
                        fixed: true,
                    },
                    {
                        width: "100px",
                        field: "姓名",
                    },
                    {
                        width: "100px",
                        field: "省份",
                        //fixed: true,

                    },
                    {
                        width: "100px",
                        field: "市区"
                    },
                    {
                        width: "100px",
                        field: "地址",
                       // fixed: true,

                    },
                    {
                        width: "100px",
                        field: "邮编",
                    
                    },
                    {
                        width: "100px",
                        field: "邮编",
                        
                    },
                    {
                        width: "100px",
                        field: "邮编",
                        
                    },
                    {
                        width: "100px",
                        field: "邮编",
                        
                    }
                ],
                tableDefaultContent: "<div>我是一个默认的div</div>"
            });

            fixedTable.addRow(function (){
               var dataarr = [
                   ['2016-05-03','王小虎','上海','普陀区','上海市普','200333','200333','200333','200333'],
                   ['2016-05-03','王小虎','上海','普陀区','上海市普','200333','200333','200333','200333'],
                   ['2016-05-03','王小虎','上海','普陀区','上海市普','200333','200333','200333','200333'],
               ]
                var html = '';
                for(let i in dataarr){
                    html += '<tr>';
                    for(let j in dataarr[i]){
                        html += '    <td class="ws-100"><div class="table-cell">'+ dataarr[i][j] +'</div></td>';
                    }
                    html += '</tr>';
                }
                return html;
            });


        }
    };
})();