//模板路径mp4_name为参数url链接
var url = encodeURI(encodeURI(mp4_name));
if(url.length==0){FR.Msg.confirm("提示","图片为空")}
else if(url.substring(url.lastIndexOf('.') + 1)=='mp4'){var url = encodeURI(encodeURI(mp4_name));
//窗体
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,
//宽度
height: 640,
//高度
//closable:true, //是否显示关闭按钮,默认true
//confirm:true, //是否添加确认取消按钮,默认false
//draggable:true //是否可拖动,默认true
};
//弹出窗体
FR.showDialog(o.title, o.width, o.height, $iframe, o);}
else{
FR.doHyperlinkByPost({
//报表路径
"url":"/webroot/decision/view/form?viewlet=Form161.frm", //参数
"para":{
"__pi__":false, //是否显示参数面板
"a":mp4_name
},
"target":"_dialog", //对话框方式打开
"feature":{
"width":600,
"height":400,
"isCenter":true, //是否居中显示
"title":"标题"
}
})
}