|
@@ -93,7 +93,7 @@ define([ "require", "backbone", "hbs!tmpl/graph/RelationshipLayoutView_tmpl", "c
|
|
|
obj.color), name = obj.name, relationship = (options.typeName, obj.relationship || !1), icon = (obj.entity || !1,
|
|
|
'<i class="fa fa-trash"></i>'), title = "Deleted";
|
|
|
return relationship && (icon = '<i class="fa fa-long-arrow-right"></i>', status = Enums.entityStateReadOnly[options.relationshipStatus || options.status] ? "deleted-relation" : "",
|
|
|
- title = "Relationship Deleted"), "<li class=" + status + "><a style='color:" + entityColor + "' href=#!/detailPage/" + options.guid + "?tabActive=relationship>" + _.escape(name) + " (" + options.typeName + ')</a><button type="button" title="' + title + '" class="btn btn-sm deleteBtn deletedTableBtn btn-action ">' + icon + "</button></li>";
|
|
|
+ title = "关系已删除"), "<li class=" + status + "><a style='color:" + entityColor + "' href=#!/detailPage/" + options.guid + "?tabActive=relationship>" + _.escape(name) + " (" + options.typeName + ')</a><button type="button" title="' + title + '" class="btn btn-sm deleteBtn deletedTableBtn btn-action ">' + icon + "</button></li>";
|
|
|
}, name = options.entityName ? options.entityName : Utils.getName(options, "displayText");
|
|
|
return "ACTIVE" == options.entityStatus ? "ACTIVE" == options.relationshipStatus ? entityTypeHtml = getdefault({
|
|
|
color: activeEntityColor,
|
|
@@ -115,7 +115,7 @@ define([ "require", "backbone", "hbs!tmpl/graph/RelationshipLayoutView_tmpl", "c
|
|
|
name: name
|
|
|
}), entityTypeHtml + "</pre>";
|
|
|
};
|
|
|
- this.ui.searchNode.hide(), this.$("[data-id='typeName']").text(typeName);
|
|
|
+ this.ui.searchNode.hide(), this.$("[data-id='typeName']").text(Utils.toChinese(typeName) );
|
|
|
var getElement = function(options) {
|
|
|
var entityTypeButton = (options.entityName ? options.entityName : Utils.getName(options, "displayText"),
|
|
|
getEntityTypelist(options));
|
|
@@ -183,7 +183,7 @@ define([ "require", "backbone", "hbs!tmpl/graph/RelationshipLayoutView_tmpl", "c
|
|
|
}), countBox.append("text").attr("dx", 18).attr("dy", -16).attr("text-anchor", "middle").attr("fill", defaultEntityColor).text(function(d) {
|
|
|
if (_.isArray(d.value) && d.value.length > 1) return d.value.length;
|
|
|
}), node.append("text").attr("x", -15).attr("y", "35").text(function(d) {
|
|
|
- return d.name;
|
|
|
+ return Utils.toChinese(d.name);
|
|
|
}), simulation.nodes(nodes).on("tick", ticked), simulation.force("link").links(links);
|
|
|
}
|
|
|
function ticked() {
|