本帖最后由 six 于 2017-4-18 16:36 编辑
参考一下:
(function(){
var request = $WEB.getParamsTable().getHttpRequest();//获取当前request
var curr= getCurrentDocument();
var numbereds=curr.getId();
var url1="http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
var view_id="11de-a1d8-03df0a0e-a188-7710f5ef0f5e"; //视图id
var oldUrl = url1+ "/portal/dynaform/view/displayView.action?numbereds="+numbereds+"&_viewid="+view_id+"&clearTemp=true&application="+getApplication();
var rnt = "<a style='background-color:#ff8400;border:0px;color:white;height: 31px;width: 100px' onMouseOver=\"this.style.backgroundColor='blue';this.style.cursor='hand';this.style.color='#fff';\" onMouseOut=\"this.style.backgroundColor='#ff8400';this.style.color='#fff';\" onclick=\"event.stopPropagation();OBPM.dialog.show({width:1200,height:500,url:'" + oldUrl + "',title:'跳转到加班视图',maximization:false,maximized:true,position:'center'});;\">跳转到加班视图</a>";
return rnt;
})(); |