决策报表弹窗的格式怎么调整

求助,我想去掉这个弹窗上的白边,如何操作呢

image.png

FineReport yzm643053 发布于 2023-12-6 08:46
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
1
snrtuemcLv8专家互助
发布于2023-12-6 09:09

这个隐藏标题,10.0和11.0不一样语句

弹窗需要js语句,然后看最后两个js,隐藏标题的

var a=_g().getWidgetByName("控件名1").getValue();

var b=_g().getWidgetByName("控件名2").getValue();

var url="/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=write&a="+a+"&b="+b;

var url = FR.cjkEncode(url);

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");

$iframe.attr("src", url);

var o = {

    title: "对话框",    

    width: 680,         

    height: 640,        

};

FR.showDialog(o.title, o.width, o.height, $iframe, o);

$(".fr-core-window-header").css("display", "none");//隐藏窗口标题栏

$(".fr-core-window-body").css("top", "0px");//设置高度

===============

11版本隐藏窗口标题

$(".bi-h-tape.bi-message-title.bi-header-background").css("display", "none");//隐藏窗口标题栏

$(".bi-abs").css("top", "0px");//设置高度

最佳回答
1
runnerLv7资深互助
发布于2023-12-6 08:53

看最后的js语句

按钮弹出窗口js代码

var a="1";

var b="2";

var url="/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=write&a="+a+"&b="+b;

var url = FR.cjkEncode(url);

//窗体

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");

//将窗体的src属性设置为模板路径

$iframe.attr("src", url);

//窗体的属性

var o = {

    title: "对话框",    //标题

    width: 680,         //宽度,可以换成w/2,自适应

    height: 640,        //高度

    //closable:true,    //是否显示关闭按钮,默认true

    //confirm:true,     //是否添加确认取消按钮,默认false

    //draggable:true   //是否可拖动,默认true

};

//弹出窗体

FR.showDialog(o.title, o.width, o.height, $iframe, o);

  $('.fr-core-window').css("top","100px");//位置自己改

  $('.fr-core-window').css("left","90px"); //位置自己改

$(".fr-core-panel-title").eq(0).css({"color":"red","font-family":"microsoft yahei","font-size":"14px","text-align":"center"}) ; //窗体标题颜色大小居中

$(".fr-core-window.ui-state-enabled").css("border-radius","0").children().css("border-radius","0"); //标题边框圆角改直角

$(".fr-core-panel-header.fr-core-panel-style-blue.fr-core-window-header").css('background','#159D73');//窗体背景颜色

  • 2关注人数
  • 235浏览人数
  • 最后回答于:2023-12-6 09:09
    请选择关闭问题的原因
    确定 取消
    返回顶部