|
@@ -312,21 +312,21 @@ var relationFlag=false;
|
|
|
|
|
|
//加载关系网
|
|
|
function initRelation(){
|
|
|
- $("#entrelation").height(500);
|
|
|
$.ajax({
|
|
|
url: "/member/getRelation",
|
|
|
method: "post",
|
|
|
data: {regNo:regNo,entName:entName},
|
|
|
success: function(r){
|
|
|
+ console.log(r);
|
|
|
if(!r || !r.flag || !r.relation || !r.relation.links || r.relation.links.length == 0 || !r.relation.nodes || r.relation.nodes.length <= 1){
|
|
|
- alert("没有关系数据!");
|
|
|
+
|
|
|
}else{
|
|
|
$(".entrelation").height($(".ent-tab-content").height());
|
|
|
loadJS(cdn+"/js/d3.v3.min.js",function(){
|
|
|
loadJS(cdn+"/js/geometry.js",function(){
|
|
|
loadJS(cdn+"/js/provinceData.min.js",function(){
|
|
|
loadJS(cdn+"/js/relation.js",function(){
|
|
|
- relationEntity = new Relation(legcerNo,regNo,regCapCurName,r.relation);
|
|
|
+ relationEntity = new Relation(legcerNo,regNo,regCapCurName,r.relation,true);
|
|
|
relationEntity.init();
|
|
|
});
|
|
|
});
|
|
@@ -335,11 +335,7 @@ function initRelation(){
|
|
|
}
|
|
|
},
|
|
|
error: function(){
|
|
|
- alert("没有关系数据!");
|
|
|
+ $("div[data-id=c_relation]").addClass("disabled");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
-function synclist(){
|
|
|
-
|
|
|
-}
|