报表设置鼠标悬动变色之后,使用暂存功能,鼠标移动所致行全都变色,怎么解决

报表设置鼠标悬动变色(正常情况下,鼠标触及行变色,换行,颜色也会随之换行)之后,使用暂存功能,鼠标移动所致行全都变色,怎么解决

FineReport 梦溪 发布于 2019-5-18 11:17
1min目标场景问卷 立即参与
回答问题
悬赏:4 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
yuzhimingLv2初级互助
发布于2019-5-18 11:29

清空一下暂存保存的缓存,看是否正常

image.png

  • 梦溪 梦溪(提问者) 不可以 还是会全部变色 不只是暂存之后会出现这种情况 点过提交之后也会出现这种情况
    2019-05-18 11:39 
  • yuzhiming yuzhiming 回复 梦溪(提问者) 光说也看不着,要不把模板导出来看看把
    2019-05-18 12:13 
  • 梦溪 梦溪(提问者) 回复 yuzhiming var background_color = \"rgb(252,200,0)\"; //新背景色 var frozen_back_color = new Array(); var back_color = new Array(); var $last_tr; var i = 6; // 首行除外 $(\'.x-table tr:gt(6)\') .bind(\"mouseenter\", function () { //$(\".x-table tr\") if (typeof($last_tr) != \"undefined\") { if (typeof($(this).attr(\"id\")) != \"undefined\") { if (typeof($(\"#content-container #frozen-west\").attr(\"id\")) != \"undefined\") { $(\"#content-container #\" + $last_tr.attr(\"id\")).each(function () { $(this).children(\"td\").each(function () { $(this).css(\"background-color\", frozen_back_color[$(this).index()]); }); i = i + 1; }); i = 6; } else { $last_tr.children(\"td\").each(function () { $(this).css(\"background-color\", back_color[$(this).index()]); }); } frozen_back_color = []; back_color = []; } } if (typeof($(this).attr(\"id\")) != \"undefined\") { if (typeof($(\"#content-container #frozen-west\").attr(\"id\")) != \"undefined\") { $(\"#content-container #\" + $(this).attr(\"id\")).each(function () { frozen_back_color = new Array(); $(this).children(\"td\").each(function () { frozen_back_color[$(this).index()] = $(this).css(\"background-color\"); $(this).css(\"background-color\", background_color); }); i = i + 1; }); i = 6; } else { $(this).children(\"td\").each(function () { back_color[$(this).index()] = $(this).css(\"background-color\"); $(this).css(\"background-color\", background_color); }); } } }); //首行除外 $(\'.x-table tr:gt(6)\') .bind(\"mouseleave\", function () { if (typeof($(this).attr(\"id\")) != \"undefined\") { $last_tr = $(this); } }); 这是设置的js代码 这个有问题吗
    2019-05-18 13:57 
  • yuzhiming yuzhiming 回复 梦溪(提问者) 这个代码都被转译了啊
    2019-05-18 15:25 
  • 2关注人数
  • 459浏览人数
  • 最后回答于:2019-5-18 11:29
    请选择关闭问题的原因
    确定 取消
    返回顶部