获取teamid/绩效模型增加跳转模型

This commit is contained in:
zhal 2022-08-15 14:42:08 +08:00
parent 7f524f1894
commit 8d1b7ffd5c
3 changed files with 31 additions and 3 deletions

View File

@ -986,7 +986,7 @@ function openRelationDialog(obj, callback) {
methodName="新建绩效模型";
}
var getteamId=$('#teamId').val()==undefined?"":$('#teamId').val();
var getteamId=parent.$("#teamId").val()==undefined?"":parent.$('#teamId').val();
if(method=="control.kpi") {
//根据角色
@ -1021,6 +1021,21 @@ function openRelationDialog(obj, callback) {
id: "relationDialog",
buttons: [
{
text : '跳转模型',
cls : "blue",
handler : function() {
var clickNodeId=parent.document.getElementById("id-awsui-win-frm-2013-frmrelationDialog").contentWindow.getClickNodeId();
if(clickNodeId==''){
$.simpleAlert("请选择需要打开的流程", 'warning');
}else{
var url="./w?uuid=" +clickNodeId+"&teamId="+getteamId
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val());
window.open(url);
}
}
},
{
text: '确定', cls: "blue", handler: function () {
var attrId = obj.attr("id");
@ -1094,6 +1109,20 @@ function openRelationDialog(obj, callback) {
// 刷新页面
parent.document.getElementById("id-awsui-win-frm-2013-frmrelationDialog").contentWindow.location.reload(true);
}
},{
text : '跳转模型',
cls : "blue",
handler : function() {
var clickNodeId=parent.document.getElementById("id-awsui-win-frm-2013-frmrelationDialog").contentWindow.getClickNodeId();
if(clickNodeId==''){
$.simpleAlert("请选择需要打开的流程", 'warning');
}else{
var url="./w?uuid=" +clickNodeId+"&teamId="+getteamId
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val());
window.open(url);
}
}
}, {
text: methodName,
cls: "green",

View File

@ -1381,7 +1381,6 @@ function attributeShowTabContent(currentShape) {
var tableObj = {}
var curTableId = ''
function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
debugger;
// 属性排序
var defaultMoreAttr = $('#defaultMoreAttrSort').val();
if (shape.category != undefined) {
@ -3468,7 +3467,7 @@ function openRelationDig(obj,value) {
var str = '<iframe width="100%" id="attr_content_iframe_relevance_shapes" name="attr_content_iframe_relevance_shapes" frameBorder="0" style="width: 100%; height: 318px;"></iframe>';
conObj.append(str);
var getteamId=$('#teamId').val()==undefined?"":$('#teamId').val();
var getteamId=parent.$('#teamId').val()==undefined?"":parent.$('#teamId').val();
$("#attr_dialog_normal_relevance_shapes_div").attr("title", title);
$('#attr_content_iframe_relevance_shapes').attr(