绩效回填

This commit is contained in:
zhal 2022-08-25 15:38:45 +08:00
parent b74ba2be7d
commit e7f17b0230

View File

@ -351,8 +351,9 @@ Model.create = function(l, h, j) {
var i = o.dataAttributes[k]; var i = o.dataAttributes[k];
i.id = Utils.newId(); i.id = Utils.newId();
if (i.attributesJsonArray) { if (i.attributesJsonArray) {
var propertyInfoArray = new Array();
if (methodId == "control.kpi") { if (methodId == "control.kpi") {
var propertyInfoArray = new Array();
//判断如果为流程跳转绩效模型,填充相应数据 //判断如果为流程跳转绩效模型,填充相应数据
$.ajax({ $.ajax({
type: "POST", type: "POST",
@ -375,6 +376,7 @@ 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) { 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]) { for (var n in Model.define.localAttribute[o.name]) {
if (methodId == "control.kpi") {
if(propertyInfoArray.length>0){ if(propertyInfoArray.length>0){
if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L1'){ if(Model.define.localAttribute[o.name][n].id=='Process_Architecture_L1'){
Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L1; Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].Process_Architecture_L1;
@ -389,6 +391,8 @@ Model.create = function(l, h, j) {
Model.define.localAttribute[o.name][n].value=propertyInfoArray[0].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])); i.attributesJsonArray.push(Utils.copy(Model.define.localAttribute[o.name][n]));
} }
} }