美文网首页
OA二开笔记(1)工作流中按钮跳转自定义页面

OA二开笔记(1)工作流中按钮跳转自定义页面

作者: 弗兰克万岁 | 来源:发表于2019-04-14 21:14 被阅读0次

<script>function changyongyu(){
var iWidth=800; //弹出窗口的宽度;
var iHeight=500; //弹出窗口的高度;
var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置;
var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置;
window.open("../../../页面(直接输入general中的文件夹名称就可以了)?FLOW_ID="+g_flow_id+"&RUN_ID="+g_run_id,"newwindow","height=500,width=800,top="+iTop+",left="+iLeft+",toolbar=no,menubar=no,scrollbars=yes, resizable=yes");
}
jQuery(document).ready(function($){
// alert("123123");
if(g_flow_prcs=='2'){
document.getElementById("tongbu").style.display="";
} else {
document.getElementById("tongbu").style.display="none";
}
});</script>

<a id="tongbu" href="javascript:test();" style="height:30px;display:none;background-color: #007dc5;color:white;font-size:15px;height:30px;width:100px;border:1px solid black;">

相关文章

网友评论

      本文标题:OA二开笔记(1)工作流中按钮跳转自定义页面

      本文链接:https://www.haomeiwen.com/subject/yfcewqtx.html