在fvs中,用js弹出对话框,关闭按钮怎样让它不隐藏?

企业微信截图_17151523164384.png在fvs中,用的js弹出对话框,打开另一cpt模板,怎样让关闭按钮默认不隐藏?

js代码如下:

"use document"

const iframe = document.createElement("iframe");

var url = xxx;

var W = document.body.clientWidth; // 获取屏幕宽度  

var H = document.body.clientHeight; // 获取屏幕高度  

var WDia = 550; // 弹窗宽度  

iframe.width = "100%";

iframe.height = "100%";

iframe.scrolling = "no";

iframe.style.border = "0";

iframe.src = url;

duchamp.showDialog({

  title: "附注",

  width: WDia,

  height: H,

  innerContent: iframe,

  //padding: "15px",

  //titleStyle: { fontSize: "24px",color:"white", fontWeight: "bold" },

  //backgroundStyle: { background:"#f5f8fc" },

  //dialogType:"center",

  //line: { type: "color", value: { color: "red" } },

  //coordinate: [300, 240],

});

FineReport Jekyll 发布于 2024-5-8 15:14 (编辑于 2024-5-8 15:31)
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
用户k6280494Lv6资深互助
发布于2024-5-8 15:25(编辑于 2024-5-8 15:26)

//模板路径

var url = encodeURI(encodeURI("/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=view&地区=华北"));

//窗体

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

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

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

//窗体的属性

var o = {

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

   destroyOnClose:true,   // 是否在关闭对话框的时候将对话框从dom中移除

   width: 680,         //宽度

   height: 640,        //高度

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

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

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

};

//弹出窗体

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

---------------------------------closable:true

closable:true这个参数加上

最佳回答
0
Z4u3z1Lv6专家互助
发布于2024-5-8 15:18

默认就不隐藏啊 你的JS怎么写的(把它隐藏了)

  • Jekyll Jekyll(提问者) \"use document\" const iframe = document.createElement(\"iframe\"); var url = xxx; var W = document.body.clientWidth; // 获取屏幕宽度 var H = document.body.clientHeight; // 获取屏幕高度 var WDia = 550; // 弹窗宽度 iframe.width = \"100%\"; iframe.height = \"100%\"; iframe.scrolling = \"no\"; iframe.style.border = \"0\"; iframe.src = url; duchamp.showDialog({ title: \"附注\", width: WDia, height: H, innerContent: iframe, //padding: \"15px\", //titleStyle: { fontSize: \"24px\",color:\"white\", fontWeight: \"bold\" }, //backgroundStyle: { background:\"#f5f8fc\" }, //dialogType:\"center\", //line: { type: \"color\", value: { color: \"red\" } }, //coordinate: [300, 240], });
    2024-05-08 15:23 
  • 2关注人数
  • 421浏览人数
  • 最后回答于:2024-5-8 15:31
    请选择关闭问题的原因
    确定 取消
    返回顶部