From cd2b9a0f2f2f0a1b62a617b3a56d3e424d2383bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E6=9E=97=E5=B8=86?= Date: Mon, 25 Jul 2022 15:51:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=87=AA=E5=AE=9A=E4=B9=89=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=20=20=20=E6=B7=BB=E5=8A=A0sid=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/js/designer.extend.link.js | 193 +++++++++--------- 1 file changed, 95 insertions(+), 98 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js index a044ab47..6969d304 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js @@ -495,7 +495,6 @@ function openLinkUrl(type, url, target, uuid, obj) { } function openLinkUrlRewrite(type, url, target, uuid, obj, fileName, inspected) { - var sid = $("#sid").val(); if (target == "0") { target = $(obj).attr("target"); } @@ -509,7 +508,7 @@ function openLinkUrlRewrite(type, url, target, uuid, obj, fileName, inspected) { } window.location.href = url; } else { - window.open(url+sid, target); + window.open(url, target); } } else { if (inspected) { //已经进行过权限判断,不需要再判断 @@ -3518,85 +3517,85 @@ function openRelationDig(obj,value) { }] }); }else{ - $("#attr_dialog_normal_relevance_shapes_div").dialog({ - buttons : [ - { - text : '刷新', - cls : "yellow", - handler : function() { - // 刷新页面 - document.getElementById("attr_content_iframe_relevance_shapes").contentWindow.location.reload(true); - } - },{ - text : "新建角色模型", - cls : "green", - handler : function() { - //根据角色 - $.ajax({ - type : "POST", - url : "./jd?sid=" - + CLB.sid - + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_find_same_role", - data : { - uuid:ruuid, - methodId:methodId - }, - success : function(msg) { - if (msg.data.result == "ok") { - window.top.$.simpleAlert("请勿重复新建角色模型!!!"); - }else{ - //跳转角色 - $.ajax({ - type : "POST", - url : "./jd?sid=" - + CLB.sid - + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_shape_createDialogModel", - data : { - uuid:ruuid, - methodId:methodId, - wsId:wsId - }, - success : function(msg) { - if (msg.result == "ok") { - window.open("./w?uuid=" + msg.data.uuid+"&teamId" - + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val())); + $("#attr_dialog_normal_relevance_shapes_div").dialog({ + buttons : [ + { + text : '刷新', + cls : "yellow", + handler : function() { + // 刷新页面 + document.getElementById("attr_content_iframe_relevance_shapes").contentWindow.location.reload(true); + } + },{ + text : "新建角色模型", + cls : "green", + handler : function() { + //根据角色 + $.ajax({ + type : "POST", + url : "./jd?sid=" + + CLB.sid + + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_find_same_role", + data : { + uuid:ruuid, + methodId:methodId + }, + success : function(msg) { + if (msg.data.result == "ok") { + window.top.$.simpleAlert("请勿重复新建角色模型!!!"); + }else{ + //跳转角色 + $.ajax({ + type : "POST", + url : "./jd?sid=" + + CLB.sid + + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_shape_createDialogModel", + data : { + uuid:ruuid, + methodId:methodId, + wsId:wsId + }, + success : function(msg) { + if (msg.result == "ok") { + window.open("./w?uuid=" + msg.data.uuid+"&teamId" + + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val())); + } + } - - } - }); + }); + } } - } - }); + }); - } - }, { - text : '确定', - cls : "blue", - handler : function() { - var tmpObjId = $(obj).attr("objid"); - getRelevanceShapes(tmpObjId,value); - var tmpShape = Utils.getSelected()[0]; - var tmpTitle = tmpShape.title; - if (tmpShape.name == "linker") { - return; } - if (tmpTitle.indexOf("泳道") > -1 || tmpTitle.indexOf("泳池") > -1 || tmpTitle.indexOf("分隔") > -1) { - return; + }, { + text : '确定', + cls : "blue", + handler : function() { + var tmpObjId = $(obj).attr("objid"); + getRelevanceShapes(tmpObjId,value); + var tmpShape = Utils.getSelected()[0]; + var tmpTitle = tmpShape.title; + if (tmpShape.name == "linker") { + return; + } + if (tmpTitle.indexOf("泳道") > -1 || tmpTitle.indexOf("泳池") > -1 || tmpTitle.indexOf("分隔") > -1) { + return; + } + if (isForceShowError && tmpAttrIdValue.indexOf(tmpObjId) > -1) { + $.simpleAlert("已设置不允许修改,请在应用参数中设置", 'error'); + isForceShowError = false; + } + tmpAttrIdValue = []; } - if (isForceShowError && tmpAttrIdValue.indexOf(tmpObjId) > -1) { - $.simpleAlert("已设置不允许修改,请在应用参数中设置", 'error'); - isForceShowError = false; + }, { + text : '关闭', + handler : function() { + $("#attr_dialog_normal_relevance_shapes_div").dialog('close'); } - tmpAttrIdValue = []; - } - }, { - text : '关闭', - handler : function() { - $("#attr_dialog_normal_relevance_shapes_div").dialog('close'); - } - }] - }); - } + }] + }); + } } }); }else{ @@ -3726,27 +3725,25 @@ function saveRelevanceShapesTODB(shapesObj, shapeId, shapeName, fileName, } } //by bzp 校验角色和岗位不能同时选择 - if(shape.category!="org_role") { - if (objId == 'role' || objId == 'post') { - if (objId == 'role') { - //判断岗位 - var tmp = $("input[objid='post']").val(); - if (tmp.length > 0) { - $.simpleAlert("不能同时选择岗位和角色"); - return; - } - } - if (objId == 'post') { - //判断角色 - var tmp = $("input[objid='role']").val(); - if (tmp.length > 0) { - $.simpleAlert("不能同时选择岗位和角色"); - return; - } - } - } - } - //by bzp end + if(objId == 'role' || objId == 'post'){ + if(objId == 'role'){ + //判断岗位 + var tmp = $("input[objid='post']").val(); + if(tmp.length > 0){ + $.simpleAlert("不能同时选择岗位和角色"); + return; + } + } + if(objId == 'post'){ + //判断角色 + var tmp = $("input[objid='role']").val(); + if(tmp.length > 0){ + $.simpleAlert("不能同时选择岗位和角色"); + return; + } + } + } + //by bzp end var ref = $("input[objid_shapeId='" + objId + "']").attr("ref"); $.ajax({ type : "POST", @@ -4398,8 +4395,8 @@ function delPolicyFile(obj) { data : { sid: sid, appId: "com.actionsoft.apps.coe.pal.datamigration", - repositoryName: "migration", - groupValue:"policyFile", + repositoryName: "migration", + groupValue:"policyFile", ruuid:ruuid, fileName:name },