xfrontend/web/srczip/logic/usergroup.js
2021-09-28 18:03:29 +08:00

80 lines
2.7 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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;
});
}
};
})();