mirror of https://gitee.com/y_project/RuoYi.git
修复表格冻结列错位问题
parent
7c48bc3184
commit
c52ba00f4f
|
@ -224,9 +224,12 @@
|
|||
height: height,
|
||||
top: top + 1
|
||||
}).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) {
|
||||
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;
|
||||
that.$fixedBody.find('tr:eq(' + i + ')').find('td').each(function (j) {
|
||||
$(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', '普通角色');
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue