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

[已解决] vue皮肤下选项卡视图操作跳转按钮获取不到父文档对象

[复制链接]
xmuboso1 发表于 2021-9-3 15:15:01 | 显示全部楼层 |阅读模式
本帖最后由 xmuboso1 于 2021-9-3 15:16 编辑

【myApps/OBPM版本号】:v4.4- sp XX
【浏览器类型】:Chrome/其他
【联系方式-QQ】:1153434640
【问题描述】:vue皮肤下选项卡视图操作跳转按钮获取不到父文档对象
1.跳转脚本
  1. (function(){// 按钮url跳转表单                                                               
  2.             /**                                                               
  3.             * doViewByFormName("表单名",getApplication())                                                               
  4.             * 只需要更新表单名与传递内容即可                                                               
  5.             *                                                                 
  6.             */                                                               
  7.             var formProcess = getFormProcess();                                                                  
  8.             var form = formProcess.doViewByFormName("设备入库",getApplication());                                                               
  9.             var formid  = form.getId();                                                               
  10.             var request = $WEB.getParamsTable().getHttpRequest();                                                               
  11.             var url1 = "http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();                                                               
  12.             //获取appid                                                               
  13.             var appid = getApplication();                                                               
  14.             //地址拼接                                                               
  15.             var url = url1+"/portal/good/html/form.html?appId="+appid+"&formId="+formid;                                                              
  16.             //获取传值字段
  17.                         var doc = getParentDocument();
  18.                         println("doc------------------"+doc);
  19.             var na = encodeURI(doc.getItemValueAsString("name"));//标识号                                                               
  20.             var nu = encodeURI(doc.getItemValueAsString("number"));//模板编号                                                               
  21.             var lo = encodeURI(doc.getItemValueAsString("logo_number"));//设备id                                                                                                               
  22.             //拼接传值字段                 
  23.              var anniu = url+"&na="+na+"&nu="+nu+"&lo="+lo;                                                               
  24.             //println(anniu)   
  25.                         println("anniu>>>>>"+anniu);
  26.             return anniu;                                                                 
  27. })()
复制代码

2.获取传值脚本
  1. (function() { // 获取url传递值      
  2. var rtn = "";
  3. var paran = decodeURIComponent(getParameter("na"));
  4. println("paran------------"+paran)
  5. var doc = getCurrentDocument();   
  6. if (paran.length == 0) {                     
  7.      rtn = doc.getItemValueAsString("name")
  8. } else {               
  9.     rtn = paran;            
  10. }               
  11. return rtn;               
  12. })();
复制代码

3.选项卡勾选父子关系

4.点击跳转

5.vue皮肤下获取不到传值

6.vue-debug

7.good皮肤正常获取

8.good-debug









本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册成为天翎用户

×
cyb 发表于 2021-9-9 18:22:13 | 显示全部楼层
您好,这边已经验证过了,5.0版本没有问题,4.4确实存在这个问题,为功能bug,已提交bug等待修复
回复

使用道具 举报

白日蜜语 发表于 2021-11-1 01:04:22 | 显示全部楼层
vue的跳转地址写成这样

//actionContent-->表单id或者视图id

//视图
(function(){
return "http://localhost/static/portal/vue/index.html#/open?appId=11e4-43d0-d506f90e-a704-f3b708169ba1&actionContent=__K0hSnHX3zaH864VmSh4&opentarget=detail&linkType=01";
})();
//表单
(function(){
    return "http://localhost/static/portal/vue/index.html#/open?appId=11e4-43d0-d506f90e-a704-f3b708169ba1&actionContent=11ea-f3d8-eb6287ee-9265-ebde46080934&opentarget=detail&linkType=00&docid=Jqb2NwIFL4ZhnWAYWBW--__kBf1ySZRWbTQ1";
})();
回复

使用道具 举报

本版积分规则

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

GMT+8, 2026-8-14 17:11

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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