修复表格冻结列错位问题

master
RuoYi 4 years ago committed by Limy
parent b5a08de8c7
commit c0eb6b665c

@ -224,9 +224,12 @@
height: height, height: height,
top: top + 1 top: top + 1
}).show(); }).show();
var bsHeight = $("#" + table.options.id).find("tr").eq(1).height();
var fixedHeight = $("#" + table.options.id).parent().prev().find("tr").eq(1).height();
var resizeHeight = bsHeight > fixedHeight ? bsHeight: fixedHeight;
this.$body.find('> tr').each(function (i) { this.$body.find('> tr').each(function (i) {
that.$fixedBody.find('tr:eq(' + i + ')').height($(this).height() - 0.5); that.$fixedBody.find('tr:eq(' + i + ')').height(i == 0 ? resizeHeight - 1 : resizeHeight);
var thattds = this; var thattds = this;
that.$fixedBody.find('tr:eq(' + i + ')').find('td').each(function (j) { that.$fixedBody.find('tr:eq(' + i + ')').find('td').each(function (j) {
$(this).width($($(thattds).find('td')[j]).width() + 1); $(this).width($($(thattds).find('td')[j]).width() + 1);

@ -121,7 +121,7 @@ create table sys_role (
-- ---------------------------- -- ----------------------------
-- 初始化-角色信息表数据 -- 初始化-角色信息表数据
-- ---------------------------- -- ----------------------------
insert into sys_role values('1', '系统管理员', 'admin', 1, 1, '0', '0', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '系统管理员'); insert into sys_role values('1', '超级管理员', 'admin', 1, 1, '0', '0', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '超级管理员');
insert into sys_role values('2', '普通角色', 'common', 2, 2, '0', '0', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '普通角色'); insert into sys_role values('2', '普通角色', 'common', 2, 2, '0', '0', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '普通角色');

Loading…
Cancel
Save