超链接js: //获取tab页的值 用于弹窗后指定页面展示 var aa=FR.IndexNum=_g().getWidgetByName("tabpane1").getShowIndex(); //模板路径 var url = encodeURI(encodeURI("/webroot/decision/view/report?viewlet=sz.frm&drug_code=" + drug_code + "&drug_name=" + drug_name + "&war_value=" + war_value + "&area_code=" + area_code + "&hosp_code=" + hosp_code+ "&aa=" + aa)); //窗体 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); |