Authored by ‘superliu’

拓扑优化弹框

@@ -1262,9 +1262,18 @@ layui.define(['xmSelect', 'md5'], function (exports) { @@ -1262,9 +1262,18 @@ layui.define(['xmSelect', 'md5'], function (exports) {
1262 param = "=" + encodeURIComponent(layHref.split('=')[1]); 1262 param = "=" + encodeURIComponent(layHref.split('=')[1]);
1263 } 1263 }
1264 alink.setAttribute("lay-href",layHref.split('=')[0] + param); 1264 alink.setAttribute("lay-href",layHref.split('=')[0] + param);
1265 - document.body.appendChild(alink);  
1266 - alink.click();  
1267 - document.body.removeChild(alink); 1265 +
  1266 + //console.log("************",window.location.origin+'/#'+layHref.split('=')[0] + param)
  1267 + //LH 修改 弹框展示子拓扑
  1268 + layer.open({
  1269 + title:'子拓扑',
  1270 + type: 2,
  1271 + area:['70%','90%'],
  1272 + content: obj.graphEditorOrigin + "/jgraph/grapheditor/viewer.html?access_token=" + localStorage.getItem('access_token') + '&id='+layHref.split('=')[2] + "&layout=organic",
  1273 + })
  1274 + // document.body.appendChild(alink);
  1275 + // alink.click();
  1276 + // document.body.removeChild(alink);
1268 }, 1277 },
1269 1278
1270 /** 1279 /**