是否关键节点增加角标逻辑,代码修复增加遍历逻辑
This commit is contained in:
parent
4e911fc60a
commit
53e7b9c16c
@ -2291,7 +2291,12 @@ function updateAttributeById(objId, va, shapeId) {
|
||||
}
|
||||
|
||||
];
|
||||
shape.dataAttributes[13]["dataShowConfig"].config = dataArray;
|
||||
shape.dataAttributes.forEach(function(attribute) {
|
||||
if(attribute.attributesJsonArray){
|
||||
attribute["dataShowConfig"].config = dataArray;
|
||||
}
|
||||
});
|
||||
|
||||
}else if(isCriticalControlPoint === "否"){
|
||||
var dataArray = [
|
||||
{
|
||||
@ -2302,7 +2307,12 @@ function updateAttributeById(objId, va, shapeId) {
|
||||
}
|
||||
|
||||
];
|
||||
shape.dataAttributes[13]["dataShowConfig"].config = dataArray;
|
||||
shape.dataAttributes.forEach(function(attribute) {
|
||||
if(attribute.attributesJsonArray){
|
||||
attribute["dataShowConfig"].config = dataArray;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
Model.update(shape);
|
||||
}
|
||||
@ -4110,9 +4120,6 @@ function getBooleanSelectOptions(booleanValues, shapeId) {
|
||||
if (selectedData != null && selectedData != '') {
|
||||
$("#attribute_name_input_" + objId).val(selectedData[0]).trigger("change");
|
||||
}
|
||||
$obj.on("select2:select", function (e) {
|
||||
alert(1);
|
||||
});
|
||||
$obj.off("select2:close").on("select2:close", function (e) {
|
||||
// var type = this.id.substring(this.id.lastIndexOf('_')+1);
|
||||
var type = this.id.substr('attribute_name_input_'.length);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user