From e7f17b0230a5600c99bcd75b023a2328e5a0e3d1 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Thu, 25 Aug 2022 15:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A9=E6=95=88=E5=9B=9E=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/js/designer.extend.core.js | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.core.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.core.js index d68ae4d2..222e849a 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.core.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.core.js @@ -351,8 +351,9 @@ Model.create = function(l, h, j) { var i = o.dataAttributes[k]; i.id = Utils.newId(); if (i.attributesJsonArray) { - var propertyInfoArray = new Array(); + if (methodId == "control.kpi") { + var propertyInfoArray = new Array(); //判断如果为流程跳转绩效模型,填充相应数据 $.ajax({ type: "POST", @@ -375,20 +376,23 @@ Model.create = function(l, h, j) { } if (Model.define.localAttribute != undefined && Model.define.localAttribute[o.name] != undefined && Model.define.localAttribute[o.name] != null && Model.define.localAttribute[o.name].length > 0) { for (var n in Model.define.localAttribute[o.name]) { - if(propertyInfoArray.length>0){ - if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L1'){ - Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L1; - } - if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L2'){ - Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L2; - } - if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L3'){ - Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L3; - } - if(Model.define.localAttribute[o.name][n].id=='Associated_process_name'){ - Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Associated_process_name; + if (methodId == "control.kpi") { + if(propertyInfoArray.length>0){ + if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L1'){ + Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L1; + } + if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L2'){ + Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L2; + } + if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L3'){ + Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L3; + } + if(Model.define.localAttribute[o.name][n].id=='Associated_process_name'){ + Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Associated_process_name; + } } } + i.attributesJsonArray.push(Utils.copy(Model.define.localAttribute[o.name][n])); } }