Commit e9318ce0 by 李长胜

解决商户固定列错位问题,调整列名宽度

1 parent 9b05ed52
......@@ -10,12 +10,16 @@
<meta name="keywords" itemprop="keywords" content="广联,帐户管理,员工管理" />
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<style>
/*
/*
.merchant .layui-table-view {
margin: -5px 20px;
overflow-x: auto;
} */
/* .merchant .layui-table-box{
min-width: 1512px;
} */
.merchant .layui-table {
margin: 0;
width: 100%;
}
.merchant #searchForm .layui-inline {
......@@ -194,6 +198,33 @@
elem: '#merchantTable',
page: false,
skin: 'nob',
done: function () {
$("[data-field='lowerHairPath']").css('display', 'none');
$(".layui-table-main tr").each(function (index, val) {
$($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
$($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
});
//动态监听表头高度变化,冻结行跟着改变高度
$(".layui-table-header tr").resize(function () {
$(".layui-table-header tr").each(function (index, val) {
$($(".layui-table-fixed .layui-table-header table tr")[index]).height($(val).height());
});
});
//初始化高度,使得冻结行表头高度一致
$(".layui-table-header tr").each(function (index, val) {
$($(".layui-table-fixed .layui-table-header table tr")[index]).height($(val).height());
});
//动态监听表体高度变化,冻结行跟着改变高度
$(".layui-table-body tr").resize(function () {
$(".layui-table-body tr").each(function (index, val) {
$($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
});
});
//初始化高度,使得冻结行表体高度一致
$(".layui-table-body tr").each(function (index, val) {
$($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
});
},
cols: [
[{
field: 'index',
......@@ -203,11 +234,13 @@
}, {
field: 'merchantNo',
title: '商户号',
align: 'center'
align: 'center',
width: 80
}, {
field: 'merchantName',
title: '商户名称',
align: 'center'
align: 'center',
width: 90
}, {
field: 'accountTypeNames',
title: '账户类型',
......@@ -222,19 +255,23 @@
}, {
field: 'accountLevelName',
title: '账户等级',
align: 'center'
align: 'center',
width: 90
}, {
field: 'parentMerchant',
title: '上级商户',
align: 'center'
align: 'center',
width: 90
}, {
field: 'statusName',
title: '账户状态',
align: 'center'
align: 'center',
width: 90
}, {
field: 'merchantLegalPerson',
title: '联系人',
align: 'center'
align: 'center',
width: 90
}, {
field: 'merchantLegalPersonPhone',
title: '手机号',
......@@ -254,8 +291,8 @@
align: 'left',
title: '操作',
toolbar: '#merchantBtns',
width: 220
// fixed: 'right'
width: 220,
fixed: 'right'
}]
]
})
......@@ -271,7 +308,7 @@
merchantId: row.id
})
break
// 修改
// 修改
case 'handleEdit':
// editLevel - 1-创建新商户;2-创建子商户;3-修改
// step - 1-基本信息;2-权限树
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!