修改列宽
This commit is contained in:
1 parent
0a30fb5527
commit
232572dd6a
5 files changed
+14
-44
No files matched your search
@@ -47,15 +47,15 @@
|
||||
options.cols=[[ //表头
|
||||
{type:'checkbox', fixed: 'left'},
|
||||
{field: 'xingming', title: '姓名',sort: true, minWidth:80},
|
||||
{field: 'sex', title: '性别',sort: true},
|
||||
{field: "shengri",title: '生日',sort: true},
|
||||
{field: 'sex', title: '性别', minWidth:100,sort: true},
|
||||
{field: "shengri",title: '生日', minWidth:100,sort: true},
|
||||
{field: 'username', title: '帐号',sort: true} ,
|
||||
{field: 'school', title: '所在单位',sort: true ,templet:function(d){
|
||||
{field: 'school', title: '所在单位', minWidth:100,sort: true ,templet:function(d){
|
||||
if(d.ad_school){
|
||||
return d.ad_school.jiancheng;
|
||||
}
|
||||
}},
|
||||
{title: '用户组',templet:function(d){
|
||||
{title: '用户组', minWidth:140,templet:function(d){
|
||||
var str = '';
|
||||
if(d.gl_group.length>0){
|
||||
for (var k = 0, length = d.gl_group.length; k < length; k++) {
|
||||
@@ -68,10 +68,10 @@
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: 'phone', title: '联系电话', sort: true},
|
||||
{field: 'denglucishu', title: '登录次数', sort: true},
|
||||
{field: 'thistime', title: '最后登录时间', sort: true},
|
||||
{field: 'ip', title: '最后登录地址', sort: true},
|
||||
{field: 'phone', title: '联系电话', minWidth:130, sort: true},
|
||||
{field: 'denglucishu', title: '登录次数', minWidth:100, sort: true},
|
||||
{field: 'thistime', title: '最后登录时间', minWidth:130, sort: true},
|
||||
{field: 'ip', title: '最后登录地址', minWidth:150, sort: true},
|
||||
{field: 'status', title: '状态',templet:'#status', sort: true},
|
||||
{field: 'id', title: '操作',toolbar: '#barDemo',minWidth:140}
|
||||
]];
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: "",title: '参考年级',templet:function(d){
|
||||
{field: "",title: '参考年级', minWidth:160,templet:function(d){
|
||||
var str='';
|
||||
if(d.ks_nianji.length>0)
|
||||
{
|
||||
@@ -74,7 +74,7 @@
|
||||
}
|
||||
return str;
|
||||
}},
|
||||
{field: '', title: '参考学科',templet:function(d){
|
||||
{field: '', title: '参考学科', minWidth:150,templet:function(d){
|
||||
var str='';
|
||||
if(d.ks_subject.length>0)
|
||||
{
|
||||
@@ -88,8 +88,8 @@
|
||||
}
|
||||
return str;
|
||||
}} ,
|
||||
{field: 'bfdate', title: '开始时间',sort: true},
|
||||
{field: 'enddate', title: '结束时间', sort: true},
|
||||
{field: 'bfdate', title: '开始时间', minWidth:100,sort: true},
|
||||
{field: 'enddate', title: '结束时间', minWidth:100, sort: true},
|
||||
{field: 'status', title: '状态',templet:'#status', sort: true},
|
||||
{field: 'id', title: '操作',toolbar: '#barDemo',minWidth:175}
|
||||
]];
|
||||
|
||||
@@ -94,36 +94,6 @@
|
||||
</body>
|
||||
<script>
|
||||
|
||||
|
||||
// 菜单动画
|
||||
function onfont(obj,cz){
|
||||
if(cz == 1)
|
||||
{
|
||||
// 获取当前
|
||||
var mydiv = $(obj);
|
||||
// 更改字体
|
||||
mydiv.css('font-size',150);
|
||||
// 更改样式
|
||||
mydiv.parent().css('padding-top',11);
|
||||
mydiv.parent().addClass('layui-bg-gray');
|
||||
// 更改样式
|
||||
mydiv.next().css('margin-top',11);
|
||||
mydiv.next().addClass('layui-bg-black');
|
||||
}else{
|
||||
// 获取当前
|
||||
var mydiv = $(obj);
|
||||
// 更改字体
|
||||
mydiv.css('font-size',100);
|
||||
// 更改样式
|
||||
mydiv.parent().css('padding-top',38);
|
||||
mydiv.parent().removeClass('layui-bg-gray');
|
||||
// 更改样式
|
||||
mydiv.next().css('margin-top',38);
|
||||
mydiv.next().removeClass('layui-bg-black');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 弹窗
|
||||
function addteb(title,url,is_refresh=true)
|
||||
{
|
||||
|
||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user