|
@@ -429,25 +429,22 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ var tableIns = layui.table.render({
|
|
|
+ elem: '#demo'
|
|
|
+ , height: 312
|
|
|
+ , page: true //开启分页
|
|
|
+ , cols: [[ //表头
|
|
|
+ {type: numbers, title: '排名', width: 80, sort: true, fixed: 'left'}
|
|
|
+ , {field: 'username', title: '部门', width: 80}
|
|
|
+ , {field: 'sex', title: '总分(基础分/加分)', width: 80, sort: true}
|
|
|
+ , {field: 'city', title: '环比上月排名', width: 80}
|
|
|
+ , {field: 'sign', title: '基础分加分', width: 177}
|
|
|
+ ]]
|
|
|
+ });
|
|
|
+
|
|
|
//
|
|
|
function rankingDetails() {
|
|
|
- layui.table.render({
|
|
|
- elem: '#demo'
|
|
|
- , height: 312
|
|
|
- , url: '../../demo/table/user/-page=1&limit=30.js' //数据接口
|
|
|
- , page: true //开启分页
|
|
|
- , cols: [[ //表头
|
|
|
- {field: 'id', title: 'ID', width: 80, sort: true, fixed: 'left'}
|
|
|
- , {field: 'username', title: '用户名', width: 80}
|
|
|
- , {field: 'sex', title: '性别', width: 80, sort: true}
|
|
|
- , {field: 'city', title: '城市', width: 80}
|
|
|
- , {field: 'sign', title: '签名', width: 177}
|
|
|
- , {field: 'experience', title: '积分', width: 80, sort: true}
|
|
|
- , {field: 'score', title: '评分', width: 80, sort: true}
|
|
|
- , {field: 'classify', title: '职业', width: 80}
|
|
|
- , {field: 'wealth', title: '财富', width: 135, sort: true}
|
|
|
- ]]
|
|
|
- });
|
|
|
+ tableIns.reload();
|
|
|
}
|
|
|
|
|
|
//生成相应的部门
|