diff options
| author | default <default@DESKTOP-7FEGRP2> | 2018-11-09 10:35:04 +0800 |
|---|---|---|
| committer | default <default@DESKTOP-7FEGRP2> | 2018-11-09 10:35:04 +0800 |
| commit | ffecdf33b1b095d308541a1370dad0e6c925875c (patch) | |
| tree | a4bfd84615985d0047a6fde6cfca49ccfb4187da | |
| parent | b3d1dd3f254777ce74ce85d4a5e9097ae593a385 (diff) | |
优化topo功能 数据库直接动态添加新属性
| -rw-r--r-- | WebRoot/page/show/nodeGroup/newShowTopo.jsp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/WebRoot/page/show/nodeGroup/newShowTopo.jsp b/WebRoot/page/show/nodeGroup/newShowTopo.jsp index d4c20fe..9dee748 100644 --- a/WebRoot/page/show/nodeGroup/newShowTopo.jsp +++ b/WebRoot/page/show/nodeGroup/newShowTopo.jsp @@ -196,9 +196,7 @@ function newFlexionalLink(nodeA, nodeZ, text, dashedPattern,direction){ var classJson=${item.topoNodeInfoClass};
for(var i=0;i<classJson.length;i++){
for(var key in classJson[i]){
- if(key=='textPosition'){
- node${item.id}.textPosition=classJson[i][key];
- }
+ node${item.id}[key]=classJson[i][key];
}
}
</c:if>
@@ -223,7 +221,10 @@ function newFlexionalLink(nodeA, nodeZ, text, dashedPattern,direction){ }else{
var link${item.id} = newLink(node${item.topoNodeInfo1.id},node${item.topoNodeInfo2.id},'${item.text}');
}
- }else if(key=='offsetGap'){
+ }else{
+ link${item.id}[key]=classJson[i][key];
+ }
+ /* else if(key=='offsetGap'){
link${item.id}.offsetGap=classJson[i][key];
}else if(key=='direction'){
link${item.id}.direction=classJson[i][key];
@@ -235,7 +236,7 @@ function newFlexionalLink(nodeA, nodeZ, text, dashedPattern,direction){ link${item.id}.lineWidth=classJson[i][key];
}else if(key='arrowsRadius'){
link${item.id}.arrowsRadius=classJson[i][key];
- }
+ } */
}
}
</c:when>
|
