咨询一下,fvs表格组件中双击这一行高亮显示并且弹出框的js报错咋回事

duchamp.getWidgetByName('表格1_页面1').addEffect('highlightRow', {color: '#ebd863',trigger: 'mousedown',});duchamp.getWidgetByName('表格1_页面1').onMouseMoveInCell(function() {var styles = document.getElementsByClassName('sheet-scrollbar-slider');styles[0].style.width="30px";styles[0].style.height="185px";var styley = document.getElementsByClassName('sheet-scrollbar sheet-scrollbar-y ');styley[0].style.width="25px";styley[0].style.opacity=0.4;})var style = document.getElementsByClassName('sheet-scrollbar sheet-scrollbar-x ');style[0].style.height="25px";style[0].style.opacity=0.4;var styles = document.getElementsByClassName('sheet-scrollbar-slider');styles[1].style.height="25px";styles[0].style.width="30px";styles[0].style.height="185px";styles[0].style.backgroundColor=rgb(78, 146, 223);styles[1].style.backgroundColor=rgb(78, 146, 223);var styley = document.getElementsByClassName('sheet-scrollbar sheet-scrollbar-y ');styley[0].style.width="25px";styley[0].style.opacity=0.4;//模板路径var url = encodeURI(encodeURI("/cwjt/zijinyusuan/汇总数据/二级表单和核减数提交/提交.cpt&op=write"));//窗体var $iframe = $("");//将窗体的src属性设置为模板路径$iframe.attr("src", url);//窗体的属性var o = {title: "对话框", //标题destroyOnClose:true, // 是否在关闭对话框的时候将对话框从dom中移除width: 400, //宽度height: 500, //高度//closable:true, //是否显示关闭按钮,默认true,仅支持cpt普通报表//confirm:true, //是否添加确认取消按钮,默认false,仅支持cpt普通报表//draggable:true //是否可拖动,默认true};//弹出窗体FR.showDialog(o.title, o.width, o.height, $iframe, o);

FineReport 帆软用户Hw32qe7nXw 发布于 2025-2-14 10:02
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
CD20160914Lv8专家互助
发布于2025-2-14 10:09(编辑于 2025-2-14 10:24)

鼠标点击/悬浮时修改单元格背景接口- FineReport帮助文档 - 全面的报表使用教程和学习资料

var url=encodeURI(encodeURI("/webroot/decision/view/report?viewlet=cwjt/zijinyusuan/汇总数据/二级表单和核减数提交/提交.cpt&op=write"));

image.png

  • 2关注人数
  • 46浏览人数
  • 最后回答于:2025-2-14 10:24
    请选择关闭问题的原因
    确定 取消
    返回顶部