天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 2913|回复: 0

[微信端] 微信企业号-在手机微信,视图跳转到另外视图(视图 列 跳转 )

[复制链接]
karrman 发表于 2016-9-5 10:58:24 | 显示全部楼层 |阅读模式
A:在视图列中,点击某个列-脚本,放如下脚本,




  1. (function(){
  2. var doc = getCurrentDocument();
  3. var docid = doc.getId();
  4. var value = doc.getItemValueAsString("activity_appno");
  5. var valuename="查看关联号码";
  6. var application = getApplication();
  7. var request = $WEB.getParamsTable().getHttpRequest();//获取当前request
  8. var user = getWebUser();
  9. request.getSession().setAttribute("act_no",value);
  10. var url1 = "http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
  11. var oldUrl=url1+"/portal/dynaform/view/displayViewWithPermission.action?_viewid=11e6-b092-18df4ce2-96db-a1e3457c09a6&clearTemp=true&application="+application+"&_resourceid=11e6-b092-ea052c5e-96db-a1e3457c09a6&act_no="+value+"&_backURL=../../../portal/cool/closeTab.jsp";        

  12. if(user.getEquipment()==1){//用手机设备访问

  13. var wetchat=request.getContextPath()+"/portal/dynaform/view/displayViewWithPermission.action?_viewid=11e6-b092-18df4ce2-96db-a1e3457c09a6&clearTemp=true&application="+application+"&_resourceid=11e6-b092-ea052c5e-96db-a1e3457c09a6&act_no="+value+"&_backURL=../../../portal/cool/closeTab.jsp";      
  14. oldUrl=url1+"/portal/phone/main.jsp?application="+application+"&action=null&jumpToUrl="+encodeURIComponent(wetchat);
  15. println("test11111111111111111111111="+oldUrl);
  16. }
  17. println("test======"+oldUrl);

  18. 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'});;">"+value+"</a>";
  19. return rnt;
  20. })()
复制代码

2.gif

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 04:46

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表